Sync ACPICA with Intel's version 20180508 (from previously 20170831).
[dragonfly.git] / sys / contrib / dev / acpica / source / components / debugger / dbstats.c
blob4f0f4736b3b5517339ae3a6fe0f4e1af7110d228
1 /*******************************************************************************
3 * Module Name: dbstats - Generation and display of ACPI table statistics
5 ******************************************************************************/
7 /******************************************************************************
9 * 1. Copyright Notice
11 * Some or all of this work - Copyright (c) 1999 - 2018, Intel Corp.
12 * All rights reserved.
14 * 2. License
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
19 * property rights.
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
38 * conditions are met:
40 * 3. Conditions
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
64 * make.
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
70 * distribution.
72 * 3.4. Intel retains all right, title, and interest in and to the Original
73 * Intel Code.
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88 * PARTICULAR PURPOSE.
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97 * LIMITED REMEDY.
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
117 * following license:
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
121 * are met:
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
152 #include "acpi.h"
153 #include "accommon.h"
154 #include "acdebug.h"
155 #include "acnamesp.h"
157 #ifdef ACPI_DEBUGGER
159 #define _COMPONENT ACPI_CA_DEBUGGER
160 ACPI_MODULE_NAME ("dbstats")
163 /* Local prototypes */
165 static void
166 AcpiDbCountNamespaceObjects (
167 void);
169 static void
170 AcpiDbEnumerateObject (
171 ACPI_OPERAND_OBJECT *ObjDesc);
173 static ACPI_STATUS
174 AcpiDbClassifyOneObject (
175 ACPI_HANDLE ObjHandle,
176 UINT32 NestingLevel,
177 void *Context,
178 void **ReturnValue);
180 #if defined ACPI_DBG_TRACK_ALLOCATIONS || defined ACPI_USE_LOCAL_CACHE
181 static void
182 AcpiDbListInfo (
183 ACPI_MEMORY_LIST *List);
184 #endif
188 * Statistics subcommands
190 static ACPI_DB_ARGUMENT_INFO AcpiDbStatTypes [] =
192 {"ALLOCATIONS"},
193 {"OBJECTS"},
194 {"MEMORY"},
195 {"MISC"},
196 {"TABLES"},
197 {"SIZES"},
198 {"STACK"},
199 {NULL} /* Must be null terminated */
202 #define CMD_STAT_ALLOCATIONS 0
203 #define CMD_STAT_OBJECTS 1
204 #define CMD_STAT_MEMORY 2
205 #define CMD_STAT_MISC 3
206 #define CMD_STAT_TABLES 4
207 #define CMD_STAT_SIZES 5
208 #define CMD_STAT_STACK 6
211 #if defined ACPI_DBG_TRACK_ALLOCATIONS || defined ACPI_USE_LOCAL_CACHE
212 /*******************************************************************************
214 * FUNCTION: AcpiDbListInfo
216 * PARAMETERS: List - Memory list/cache to be displayed
218 * RETURN: None
220 * DESCRIPTION: Display information about the input memory list or cache.
222 ******************************************************************************/
224 static void
225 AcpiDbListInfo (
226 ACPI_MEMORY_LIST *List)
228 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
229 UINT32 Outstanding;
230 #endif
232 AcpiOsPrintf ("\n%s\n", List->ListName);
234 /* MaxDepth > 0 indicates a cache object */
236 if (List->MaxDepth > 0)
238 AcpiOsPrintf (
239 " Cache: [Depth MaxD Avail Size] "
240 "%8.2X %8.2X %8.2X %8.2X\n",
241 List->CurrentDepth,
242 List->MaxDepth,
243 List->MaxDepth - List->CurrentDepth,
244 (List->CurrentDepth * List->ObjectSize));
247 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
248 if (List->MaxDepth > 0)
250 AcpiOsPrintf (
251 " Cache: [Requests Hits Misses ObjSize] "
252 "%8.2X %8.2X %8.2X %8.2X\n",
253 List->Requests,
254 List->Hits,
255 List->Requests - List->Hits,
256 List->ObjectSize);
259 Outstanding = AcpiDbGetCacheInfo (List);
261 if (List->ObjectSize)
263 AcpiOsPrintf (
264 " Mem: [Alloc Free Max CurSize Outstanding] "
265 "%8.2X %8.2X %8.2X %8.2X %8.2X\n",
266 List->TotalAllocated,
267 List->TotalFreed,
268 List->MaxOccupied,
269 Outstanding * List->ObjectSize,
270 Outstanding);
272 else
274 AcpiOsPrintf (
275 " Mem: [Alloc Free Max CurSize Outstanding Total] "
276 "%8.2X %8.2X %8.2X %8.2X %8.2X %8.2X\n",
277 List->TotalAllocated,
278 List->TotalFreed,
279 List->MaxOccupied,
280 List->CurrentTotalSize,
281 Outstanding,
282 List->TotalSize);
284 #endif
286 #endif
289 /*******************************************************************************
291 * FUNCTION: AcpiDbEnumerateObject
293 * PARAMETERS: ObjDesc - Object to be counted
295 * RETURN: None
297 * DESCRIPTION: Add this object to the global counts, by object type.
298 * Limited recursion handles subobjects and packages, and this
299 * is probably acceptable within the AML debugger only.
301 ******************************************************************************/
303 static void
304 AcpiDbEnumerateObject (
305 ACPI_OPERAND_OBJECT *ObjDesc)
307 UINT32 i;
310 if (!ObjDesc)
312 return;
315 /* Enumerate this object first */
317 AcpiGbl_NumObjects++;
319 if (ObjDesc->Common.Type > ACPI_TYPE_NS_NODE_MAX)
321 AcpiGbl_ObjTypeCountMisc++;
323 else
325 AcpiGbl_ObjTypeCount [ObjDesc->Common.Type]++;
328 /* Count the sub-objects */
330 switch (ObjDesc->Common.Type)
332 case ACPI_TYPE_PACKAGE:
334 for (i = 0; i < ObjDesc->Package.Count; i++)
336 AcpiDbEnumerateObject (ObjDesc->Package.Elements[i]);
338 break;
340 case ACPI_TYPE_DEVICE:
342 AcpiDbEnumerateObject (ObjDesc->Device.NotifyList[0]);
343 AcpiDbEnumerateObject (ObjDesc->Device.NotifyList[1]);
344 AcpiDbEnumerateObject (ObjDesc->Device.Handler);
345 break;
347 case ACPI_TYPE_BUFFER_FIELD:
349 if (AcpiNsGetSecondaryObject (ObjDesc))
351 AcpiGbl_ObjTypeCount [ACPI_TYPE_BUFFER_FIELD]++;
353 break;
355 case ACPI_TYPE_REGION:
357 AcpiGbl_ObjTypeCount [ACPI_TYPE_LOCAL_REGION_FIELD ]++;
358 AcpiDbEnumerateObject (ObjDesc->Region.Handler);
359 break;
361 case ACPI_TYPE_POWER:
363 AcpiDbEnumerateObject (ObjDesc->PowerResource.NotifyList[0]);
364 AcpiDbEnumerateObject (ObjDesc->PowerResource.NotifyList[1]);
365 break;
367 case ACPI_TYPE_PROCESSOR:
369 AcpiDbEnumerateObject (ObjDesc->Processor.NotifyList[0]);
370 AcpiDbEnumerateObject (ObjDesc->Processor.NotifyList[1]);
371 AcpiDbEnumerateObject (ObjDesc->Processor.Handler);
372 break;
374 case ACPI_TYPE_THERMAL:
376 AcpiDbEnumerateObject (ObjDesc->ThermalZone.NotifyList[0]);
377 AcpiDbEnumerateObject (ObjDesc->ThermalZone.NotifyList[1]);
378 AcpiDbEnumerateObject (ObjDesc->ThermalZone.Handler);
379 break;
381 default:
383 break;
388 /*******************************************************************************
390 * FUNCTION: AcpiDbClassifyOneObject
392 * PARAMETERS: Callback for WalkNamespace
394 * RETURN: Status
396 * DESCRIPTION: Enumerate both the object descriptor (including subobjects) and
397 * the parent namespace node.
399 ******************************************************************************/
401 static ACPI_STATUS
402 AcpiDbClassifyOneObject (
403 ACPI_HANDLE ObjHandle,
404 UINT32 NestingLevel,
405 void *Context,
406 void **ReturnValue)
408 ACPI_NAMESPACE_NODE *Node;
409 ACPI_OPERAND_OBJECT *ObjDesc;
410 UINT32 Type;
413 AcpiGbl_NumNodes++;
415 Node = (ACPI_NAMESPACE_NODE *) ObjHandle;
416 ObjDesc = AcpiNsGetAttachedObject (Node);
418 AcpiDbEnumerateObject (ObjDesc);
420 Type = Node->Type;
421 if (Type > ACPI_TYPE_NS_NODE_MAX)
423 AcpiGbl_NodeTypeCountMisc++;
425 else
427 AcpiGbl_NodeTypeCount [Type]++;
430 return (AE_OK);
433 #ifdef ACPI_FUTURE_IMPLEMENTATION
435 /* TBD: These need to be counted during the initial parsing phase */
437 if (AcpiPsIsNamedOp (Op->Opcode))
439 NumNodes++;
442 if (IsMethod)
444 NumMethodElements++;
447 NumGrammarElements++;
448 Op = AcpiPsGetDepthNext (Root, Op);
450 SizeOfParseTree = (NumGrammarElements - NumMethodElements) *
451 (UINT32) sizeof (ACPI_PARSE_OBJECT);
452 SizeOfMethodTrees = NumMethodElements * (UINT32) sizeof (ACPI_PARSE_OBJECT);
453 SizeOfNodeEntries = NumNodes * (UINT32) sizeof (ACPI_NAMESPACE_NODE);
454 SizeOfAcpiObjects = NumNodes * (UINT32) sizeof (ACPI_OPERAND_OBJECT);
455 #endif
459 /*******************************************************************************
461 * FUNCTION: AcpiDbCountNamespaceObjects
463 * PARAMETERS: None
465 * RETURN: None
467 * DESCRIPTION: Count and classify the entire namespace, including all
468 * namespace nodes and attached objects.
470 ******************************************************************************/
472 static void
473 AcpiDbCountNamespaceObjects (
474 void)
476 UINT32 i;
479 AcpiGbl_NumNodes = 0;
480 AcpiGbl_NumObjects = 0;
482 AcpiGbl_ObjTypeCountMisc = 0;
483 for (i = 0; i < (ACPI_TYPE_NS_NODE_MAX -1); i++)
485 AcpiGbl_ObjTypeCount [i] = 0;
486 AcpiGbl_NodeTypeCount [i] = 0;
489 (void) AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT,
490 ACPI_UINT32_MAX, FALSE, AcpiDbClassifyOneObject, NULL, NULL, NULL);
494 /*******************************************************************************
496 * FUNCTION: AcpiDbDisplayStatistics
498 * PARAMETERS: TypeArg - Subcommand
500 * RETURN: Status
502 * DESCRIPTION: Display various statistics
504 ******************************************************************************/
506 ACPI_STATUS
507 AcpiDbDisplayStatistics (
508 char *TypeArg)
510 UINT32 i;
511 UINT32 Temp;
514 AcpiUtStrupr (TypeArg);
515 Temp = AcpiDbMatchArgument (TypeArg, AcpiDbStatTypes);
516 if (Temp == ACPI_TYPE_NOT_FOUND)
518 AcpiOsPrintf ("Invalid or unsupported argument\n");
519 return (AE_OK);
523 switch (Temp)
525 case CMD_STAT_ALLOCATIONS:
527 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
528 AcpiUtDumpAllocationInfo ();
529 #endif
530 break;
532 case CMD_STAT_TABLES:
534 AcpiOsPrintf ("ACPI Table Information (not implemented):\n\n");
535 break;
537 case CMD_STAT_OBJECTS:
539 AcpiDbCountNamespaceObjects ();
541 AcpiOsPrintf ("\nObjects defined in the current namespace:\n\n");
543 AcpiOsPrintf ("%16.16s %10.10s %10.10s\n",
544 "ACPI_TYPE", "NODES", "OBJECTS");
546 for (i = 0; i < ACPI_TYPE_NS_NODE_MAX; i++)
548 AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", AcpiUtGetTypeName (i),
549 AcpiGbl_NodeTypeCount [i], AcpiGbl_ObjTypeCount [i]);
552 AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", "Misc/Unknown",
553 AcpiGbl_NodeTypeCountMisc, AcpiGbl_ObjTypeCountMisc);
555 AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", "TOTALS:",
556 AcpiGbl_NumNodes, AcpiGbl_NumObjects);
557 break;
559 case CMD_STAT_MEMORY:
561 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
562 AcpiOsPrintf ("\n----Object Statistics (all in hex)---------\n");
564 AcpiDbListInfo (AcpiGbl_GlobalList);
565 AcpiDbListInfo (AcpiGbl_NsNodeList);
566 #endif
568 #ifdef ACPI_USE_LOCAL_CACHE
569 AcpiOsPrintf ("\n----Cache Statistics (all in hex)---------\n");
570 AcpiDbListInfo (AcpiGbl_OperandCache);
571 AcpiDbListInfo (AcpiGbl_PsNodeCache);
572 AcpiDbListInfo (AcpiGbl_PsNodeExtCache);
573 AcpiDbListInfo (AcpiGbl_StateCache);
574 #endif
576 break;
578 case CMD_STAT_MISC:
580 AcpiOsPrintf ("\nMiscellaneous Statistics:\n\n");
581 AcpiOsPrintf ("Calls to AcpiPsFind:.. ........% 7ld\n",
582 AcpiGbl_PsFindCount);
583 AcpiOsPrintf ("Calls to AcpiNsLookup:..........% 7ld\n",
584 AcpiGbl_NsLookupCount);
586 AcpiOsPrintf ("\n");
588 AcpiOsPrintf ("Mutex usage:\n\n");
589 for (i = 0; i < ACPI_NUM_MUTEX; i++)
591 AcpiOsPrintf ("%-28s: % 7ld\n",
592 AcpiUtGetMutexName (i), AcpiGbl_MutexInfo[i].UseCount);
594 break;
596 case CMD_STAT_SIZES:
598 AcpiOsPrintf ("\nInternal object sizes:\n\n");
600 AcpiOsPrintf ("Common %3d\n", sizeof (ACPI_OBJECT_COMMON));
601 AcpiOsPrintf ("Number %3d\n", sizeof (ACPI_OBJECT_INTEGER));
602 AcpiOsPrintf ("String %3d\n", sizeof (ACPI_OBJECT_STRING));
603 AcpiOsPrintf ("Buffer %3d\n", sizeof (ACPI_OBJECT_BUFFER));
604 AcpiOsPrintf ("Package %3d\n", sizeof (ACPI_OBJECT_PACKAGE));
605 AcpiOsPrintf ("BufferField %3d\n", sizeof (ACPI_OBJECT_BUFFER_FIELD));
606 AcpiOsPrintf ("Device %3d\n", sizeof (ACPI_OBJECT_DEVICE));
607 AcpiOsPrintf ("Event %3d\n", sizeof (ACPI_OBJECT_EVENT));
608 AcpiOsPrintf ("Method %3d\n", sizeof (ACPI_OBJECT_METHOD));
609 AcpiOsPrintf ("Mutex %3d\n", sizeof (ACPI_OBJECT_MUTEX));
610 AcpiOsPrintf ("Region %3d\n", sizeof (ACPI_OBJECT_REGION));
611 AcpiOsPrintf ("PowerResource %3d\n", sizeof (ACPI_OBJECT_POWER_RESOURCE));
612 AcpiOsPrintf ("Processor %3d\n", sizeof (ACPI_OBJECT_PROCESSOR));
613 AcpiOsPrintf ("ThermalZone %3d\n", sizeof (ACPI_OBJECT_THERMAL_ZONE));
614 AcpiOsPrintf ("RegionField %3d\n", sizeof (ACPI_OBJECT_REGION_FIELD));
615 AcpiOsPrintf ("BankField %3d\n", sizeof (ACPI_OBJECT_BANK_FIELD));
616 AcpiOsPrintf ("IndexField %3d\n", sizeof (ACPI_OBJECT_INDEX_FIELD));
617 AcpiOsPrintf ("Reference %3d\n", sizeof (ACPI_OBJECT_REFERENCE));
618 AcpiOsPrintf ("Notify %3d\n", sizeof (ACPI_OBJECT_NOTIFY_HANDLER));
619 AcpiOsPrintf ("AddressSpace %3d\n", sizeof (ACPI_OBJECT_ADDR_HANDLER));
620 AcpiOsPrintf ("Extra %3d\n", sizeof (ACPI_OBJECT_EXTRA));
621 AcpiOsPrintf ("Data %3d\n", sizeof (ACPI_OBJECT_DATA));
623 AcpiOsPrintf ("\n");
625 AcpiOsPrintf ("ParseObject %3d\n", sizeof (ACPI_PARSE_OBJ_COMMON));
626 AcpiOsPrintf ("ParseObjectNamed %3d\n", sizeof (ACPI_PARSE_OBJ_NAMED));
627 AcpiOsPrintf ("ParseObjectAsl %3d\n", sizeof (ACPI_PARSE_OBJ_ASL));
628 AcpiOsPrintf ("OperandObject %3d\n", sizeof (ACPI_OPERAND_OBJECT));
629 AcpiOsPrintf ("NamespaceNode %3d\n", sizeof (ACPI_NAMESPACE_NODE));
630 AcpiOsPrintf ("AcpiObject %3d\n", sizeof (ACPI_OBJECT));
632 AcpiOsPrintf ("\n");
634 AcpiOsPrintf ("Generic State %3d\n", sizeof (ACPI_GENERIC_STATE));
635 AcpiOsPrintf ("Common State %3d\n", sizeof (ACPI_COMMON_STATE));
636 AcpiOsPrintf ("Control State %3d\n", sizeof (ACPI_CONTROL_STATE));
637 AcpiOsPrintf ("Update State %3d\n", sizeof (ACPI_UPDATE_STATE));
638 AcpiOsPrintf ("Scope State %3d\n", sizeof (ACPI_SCOPE_STATE));
639 AcpiOsPrintf ("Parse Scope %3d\n", sizeof (ACPI_PSCOPE_STATE));
640 AcpiOsPrintf ("Package State %3d\n", sizeof (ACPI_PKG_STATE));
641 AcpiOsPrintf ("Thread State %3d\n", sizeof (ACPI_THREAD_STATE));
642 AcpiOsPrintf ("Result Values %3d\n", sizeof (ACPI_RESULT_VALUES));
643 AcpiOsPrintf ("Notify Info %3d\n", sizeof (ACPI_NOTIFY_INFO));
644 break;
646 case CMD_STAT_STACK:
647 #if defined(ACPI_DEBUG_OUTPUT)
649 Temp = (UINT32) ACPI_PTR_DIFF (
650 AcpiGbl_EntryStackPointer, AcpiGbl_LowestStackPointer);
652 AcpiOsPrintf ("\nSubsystem Stack Usage:\n\n");
653 AcpiOsPrintf ("Entry Stack Pointer %p\n", AcpiGbl_EntryStackPointer);
654 AcpiOsPrintf ("Lowest Stack Pointer %p\n", AcpiGbl_LowestStackPointer);
655 AcpiOsPrintf ("Stack Use %X (%u)\n", Temp, Temp);
656 AcpiOsPrintf ("Deepest Procedure Nesting %u\n", AcpiGbl_DeepestNesting);
657 #endif
658 break;
660 default:
662 break;
665 AcpiOsPrintf ("\n");
666 return (AE_OK);
669 #endif /* ACPI_DEBUGGER */