]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/contrib/dev/acpica/dbstats.c
This commit was generated by cvs2svn to compensate for changes in r165071,
[FreeBSD/FreeBSD.git] / sys / contrib / dev / acpica / dbstats.c
1 /*******************************************************************************
2  *
3  * Module Name: dbstats - Generation and display of ACPI table statistics
4  *              $Revision: 1.79 $
5  *
6  ******************************************************************************/
7
8 /******************************************************************************
9  *
10  * 1. Copyright Notice
11  *
12  * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
13  * All rights reserved.
14  *
15  * 2. License
16  *
17  * 2.1. This is your license from Intel Corp. under its intellectual property
18  * rights.  You may have additional license terms from the party that provided
19  * you this software, covering your right to use that party's intellectual
20  * property rights.
21  *
22  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23  * copy of the source code appearing in this file ("Covered Code") an
24  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25  * base code distributed originally by Intel ("Original Intel Code") to copy,
26  * make derivatives, distribute, use and display any portion of the Covered
27  * Code in any form, with the right to sublicense such rights; and
28  *
29  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30  * license (with the right to sublicense), under only those claims of Intel
31  * patents that are infringed by the Original Intel Code, to make, use, sell,
32  * offer to sell, and import the Covered Code and derivative works thereof
33  * solely to the minimum extent necessary to exercise the above copyright
34  * license, and in no event shall the patent license extend to any additions
35  * to or modifications of the Original Intel Code.  No other license or right
36  * is granted directly or by implication, estoppel or otherwise;
37  *
38  * The above copyright and patent license is granted only if the following
39  * conditions are met:
40  *
41  * 3. Conditions
42  *
43  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44  * Redistribution of source code of any substantial portion of the Covered
45  * Code or modification with rights to further distribute source must include
46  * the above Copyright Notice, the above License, this list of Conditions,
47  * and the following Disclaimer and Export Compliance provision.  In addition,
48  * Licensee must cause all Covered Code to which Licensee contributes to
49  * contain a file documenting the changes Licensee made to create that Covered
50  * Code and the date of any change.  Licensee must include in that file the
51  * documentation of any changes made by any predecessor Licensee.  Licensee
52  * must include a prominent statement that the modification is derived,
53  * directly or indirectly, from Original Intel Code.
54  *
55  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56  * Redistribution of source code of any substantial portion of the Covered
57  * Code or modification without rights to further distribute source must
58  * include the following Disclaimer and Export Compliance provision in the
59  * documentation and/or other materials provided with distribution.  In
60  * addition, Licensee may not authorize further sublicense of source of any
61  * portion of the Covered Code, and must include terms to the effect that the
62  * license from Licensee to its licensee is limited to the intellectual
63  * property embodied in the software Licensee provides to its licensee, and
64  * not to intellectual property embodied in modifications its licensee may
65  * make.
66  *
67  * 3.3. Redistribution of Executable. Redistribution in executable form of any
68  * substantial portion of the Covered Code or modification must reproduce the
69  * above Copyright Notice, and the following Disclaimer and Export Compliance
70  * provision in the documentation and/or other materials provided with the
71  * distribution.
72  *
73  * 3.4. Intel retains all right, title, and interest in and to the Original
74  * Intel Code.
75  *
76  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77  * Intel shall be used in advertising or otherwise to promote the sale, use or
78  * other dealings in products derived from or relating to the Covered Code
79  * without prior written authorization from Intel.
80  *
81  * 4. Disclaimer and Export Compliance
82  *
83  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84  * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86  * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87  * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89  * PARTICULAR PURPOSE.
90  *
91  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98  * LIMITED REMEDY.
99  *
100  * 4.3. Licensee shall not export, either directly or indirectly, any of this
101  * software or system incorporating such software without first obtaining any
102  * required license or other approval from the U. S. Department of Commerce or
103  * any other agency or department of the United States Government.  In the
104  * event Licensee exports any such software from the United States or
105  * re-exports any such software from a foreign destination, Licensee shall
106  * ensure that the distribution and export/re-export of the software is in
107  * compliance with all laws, regulations, orders, or other restrictions of the
108  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109  * any of its subsidiaries will export/re-export any technical data, process,
110  * software, or service, directly or indirectly, to any country for which the
111  * United States government or any agency thereof requires an export license,
112  * other governmental approval, or letter of assurance, without first obtaining
113  * such license, approval or letter.
114  *
115  *****************************************************************************/
116
117
118 #include <contrib/dev/acpica/acpi.h>
119 #include <contrib/dev/acpica/acdebug.h>
120 #include <contrib/dev/acpica/acnamesp.h>
121
122 #ifdef ACPI_DEBUGGER
123
124 #define _COMPONENT          ACPI_CA_DEBUGGER
125         ACPI_MODULE_NAME    ("dbstats")
126
127 /* Local prototypes */
128
129 static void
130 AcpiDbCountNamespaceObjects (
131     void);
132
133 static void
134 AcpiDbEnumerateObject (
135     ACPI_OPERAND_OBJECT     *ObjDesc);
136
137 static ACPI_STATUS
138 AcpiDbClassifyOneObject (
139     ACPI_HANDLE             ObjHandle,
140     UINT32                  NestingLevel,
141     void                    *Context,
142     void                    **ReturnValue);
143
144 static void
145 AcpiDbListInfo (
146     ACPI_MEMORY_LIST        *List);
147
148
149 /*
150  * Statistics subcommands
151  */
152 static ARGUMENT_INFO        AcpiDbStatTypes [] =
153 {
154     {"ALLOCATIONS"},
155     {"OBJECTS"},
156     {"MEMORY"},
157     {"MISC"},
158     {"TABLES"},
159     {"SIZES"},
160     {"STACK"},
161     {NULL}           /* Must be null terminated */
162 };
163
164 #define CMD_STAT_ALLOCATIONS     0
165 #define CMD_STAT_OBJECTS         1
166 #define CMD_STAT_MEMORY          2
167 #define CMD_STAT_MISC            3
168 #define CMD_STAT_TABLES          4
169 #define CMD_STAT_SIZES           5
170 #define CMD_STAT_STACK           6
171
172
173 /*******************************************************************************
174  *
175  * FUNCTION:    AcpiDbListInfo
176  *
177  * PARAMETERS:  List            - Memory list/cache to be displayed
178  *
179  * RETURN:      None
180  *
181  * DESCRIPTION: Display information about the input memory list or cache.
182  *
183  ******************************************************************************/
184
185 static void
186 AcpiDbListInfo (
187     ACPI_MEMORY_LIST        *List)
188 {
189 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
190     UINT32                  Outstanding;
191     UINT32                  Temp;
192 #endif
193
194     AcpiOsPrintf ("\n%s\n", List->ListName);
195
196     /* MaxDepth > 0 indicates a cache object */
197
198     if (List->MaxDepth > 0)
199     {
200         AcpiOsPrintf (
201             "    Cache: [Depth Max Avail Size]         % 7d % 7d % 7d % 7d B\n",
202             List->CurrentDepth,
203             List->MaxDepth,
204             List->MaxDepth - List->CurrentDepth,
205             (List->CurrentDepth * List->ObjectSize));
206     }
207
208 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
209     if (List->MaxDepth > 0)
210     {
211         AcpiOsPrintf (
212             "    Cache: [Requests Hits Misses ObjSize] % 7d % 7d % 7d % 7d B\n",
213             List->Requests,
214             List->Hits,
215             List->Requests - List->Hits,
216             List->ObjectSize);
217     }
218
219     Outstanding = List->TotalAllocated -
220                     List->TotalFreed -
221                     List->CurrentDepth;
222
223     if (List->ObjectSize)
224     {
225         Temp = ACPI_ROUND_UP_TO_1K (Outstanding * List->ObjectSize);
226     }
227     else
228     {
229         Temp = ACPI_ROUND_UP_TO_1K (List->CurrentTotalSize);
230     }
231
232     AcpiOsPrintf (
233         "    Mem:   [Alloc Free Outstanding Size]  % 7d % 7d % 7d % 7d Kb\n",
234         List->TotalAllocated,
235         List->TotalFreed,
236         Outstanding, Temp);
237 #endif
238 }
239
240
241 /*******************************************************************************
242  *
243  * FUNCTION:    AcpiDbEnumerateObject
244  *
245  * PARAMETERS:  ObjDesc             - Object to be counted
246  *
247  * RETURN:      None
248  *
249  * DESCRIPTION: Add this object to the global counts, by object type.
250  *              Limited recursion handles subobjects and packages, and this
251  *              is probably acceptable within the AML debugger only.
252  *
253  ******************************************************************************/
254
255 static void
256 AcpiDbEnumerateObject (
257     ACPI_OPERAND_OBJECT     *ObjDesc)
258 {
259     UINT32                  i;
260
261
262     if (!ObjDesc)
263     {
264         return;
265     }
266
267     /* Enumerate this object first */
268
269     AcpiGbl_NumObjects++;
270
271     if (ACPI_GET_OBJECT_TYPE (ObjDesc) > ACPI_TYPE_NS_NODE_MAX)
272     {
273         AcpiGbl_ObjTypeCountMisc++;
274     }
275     else
276     {
277         AcpiGbl_ObjTypeCount [ACPI_GET_OBJECT_TYPE (ObjDesc)]++;
278     }
279
280     /* Count the sub-objects */
281
282     switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
283     {
284     case ACPI_TYPE_PACKAGE:
285
286         for (i = 0; i < ObjDesc->Package.Count; i++)
287         {
288             AcpiDbEnumerateObject (ObjDesc->Package.Elements[i]);
289         }
290         break;
291
292     case ACPI_TYPE_DEVICE:
293
294         AcpiDbEnumerateObject (ObjDesc->Device.SystemNotify);
295         AcpiDbEnumerateObject (ObjDesc->Device.DeviceNotify);
296         AcpiDbEnumerateObject (ObjDesc->Device.Handler);
297         break;
298
299     case ACPI_TYPE_BUFFER_FIELD:
300
301         if (AcpiNsGetSecondaryObject (ObjDesc))
302         {
303             AcpiGbl_ObjTypeCount [ACPI_TYPE_BUFFER_FIELD]++;
304         }
305         break;
306
307     case ACPI_TYPE_REGION:
308
309         AcpiGbl_ObjTypeCount [ACPI_TYPE_LOCAL_REGION_FIELD ]++;
310         AcpiDbEnumerateObject (ObjDesc->Region.Handler);
311         break;
312
313     case ACPI_TYPE_POWER:
314
315         AcpiDbEnumerateObject (ObjDesc->PowerResource.SystemNotify);
316         AcpiDbEnumerateObject (ObjDesc->PowerResource.DeviceNotify);
317         break;
318
319     case ACPI_TYPE_PROCESSOR:
320
321         AcpiDbEnumerateObject (ObjDesc->Processor.SystemNotify);
322         AcpiDbEnumerateObject (ObjDesc->Processor.DeviceNotify);
323         AcpiDbEnumerateObject (ObjDesc->Processor.Handler);
324         break;
325
326     case ACPI_TYPE_THERMAL:
327
328         AcpiDbEnumerateObject (ObjDesc->ThermalZone.SystemNotify);
329         AcpiDbEnumerateObject (ObjDesc->ThermalZone.DeviceNotify);
330         AcpiDbEnumerateObject (ObjDesc->ThermalZone.Handler);
331         break;
332
333     default:
334         break;
335     }
336 }
337
338
339 /*******************************************************************************
340  *
341  * FUNCTION:    AcpiDbClassifyOneObject
342  *
343  * PARAMETERS:  Callback for WalkNamespace
344  *
345  * RETURN:      Status
346  *
347  * DESCRIPTION: Enumerate both the object descriptor (including subobjects) and
348  *              the parent namespace node.
349  *
350  ******************************************************************************/
351
352 static ACPI_STATUS
353 AcpiDbClassifyOneObject (
354     ACPI_HANDLE             ObjHandle,
355     UINT32                  NestingLevel,
356     void                    *Context,
357     void                    **ReturnValue)
358 {
359     ACPI_NAMESPACE_NODE     *Node;
360     ACPI_OPERAND_OBJECT     *ObjDesc;
361     UINT32                  Type;
362
363
364     AcpiGbl_NumNodes++;
365
366     Node = (ACPI_NAMESPACE_NODE *) ObjHandle;
367     ObjDesc = AcpiNsGetAttachedObject (Node);
368
369     AcpiDbEnumerateObject (ObjDesc);
370
371     Type = Node->Type;
372     if (Type > ACPI_TYPE_NS_NODE_MAX)
373     {
374         AcpiGbl_NodeTypeCountMisc++;
375     }
376     else
377     {
378         AcpiGbl_NodeTypeCount [Type]++;
379     }
380
381     return AE_OK;
382
383
384 #ifdef ACPI_FUTURE_IMPLEMENTATION
385
386     /* TBD: These need to be counted during the initial parsing phase */
387
388     if (AcpiPsIsNamedOp (Op->Opcode))
389     {
390         NumNodes++;
391     }
392
393     if (IsMethod)
394     {
395         NumMethodElements++;
396     }
397
398     NumGrammarElements++;
399     Op = AcpiPsGetDepthNext (Root, Op);
400
401     SizeOfParseTree   = (NumGrammarElements - NumMethodElements) *
402                             (UINT32) sizeof (ACPI_PARSE_OBJECT);
403     SizeOfMethodTrees = NumMethodElements * (UINT32) sizeof (ACPI_PARSE_OBJECT);
404     SizeOfNodeEntries = NumNodes * (UINT32) sizeof (ACPI_NAMESPACE_NODE);
405     SizeOfAcpiObjects = NumNodes * (UINT32) sizeof (ACPI_OPERAND_OBJECT);
406 #endif
407 }
408
409
410 /*******************************************************************************
411  *
412  * FUNCTION:    AcpiDbCountNamespaceObjects
413  *
414  * PARAMETERS:  None
415  *
416  * RETURN:      None
417  *
418  * DESCRIPTION: Count and classify the entire namespace, including all
419  *              namespace nodes and attached objects.
420  *
421  ******************************************************************************/
422
423 static void
424 AcpiDbCountNamespaceObjects (
425     void)
426 {
427     UINT32                  i;
428
429
430     AcpiGbl_NumNodes = 0;
431     AcpiGbl_NumObjects = 0;
432
433     AcpiGbl_ObjTypeCountMisc = 0;
434     for (i = 0; i < (ACPI_TYPE_NS_NODE_MAX -1); i++)
435     {
436         AcpiGbl_ObjTypeCount [i] = 0;
437         AcpiGbl_NodeTypeCount [i] = 0;
438     }
439
440     (void) AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT,
441                 ACPI_UINT32_MAX, FALSE, AcpiDbClassifyOneObject, NULL, NULL);
442 }
443
444
445 /*******************************************************************************
446  *
447  * FUNCTION:    AcpiDbDisplayStatistics
448  *
449  * PARAMETERS:  TypeArg         - Subcommand
450  *
451  * RETURN:      Status
452  *
453  * DESCRIPTION: Display various statistics
454  *
455  ******************************************************************************/
456
457 ACPI_STATUS
458 AcpiDbDisplayStatistics (
459     char                    *TypeArg)
460 {
461     UINT32                  i;
462     UINT32                  Temp;
463
464
465     if (!AcpiGbl_DSDT)
466     {
467         AcpiOsPrintf ("*** Warning:  There is no DSDT loaded\n");
468     }
469
470     if (!TypeArg)
471     {
472         AcpiOsPrintf ("The following subcommands are available:\n    ALLOCATIONS, OBJECTS, MEMORY, MISC, SIZES, TABLES\n");
473         return (AE_OK);
474     }
475
476     AcpiUtStrupr (TypeArg);
477     Temp = AcpiDbMatchArgument (TypeArg, AcpiDbStatTypes);
478     if (Temp == (UINT32) -1)
479     {
480         AcpiOsPrintf ("Invalid or unsupported argument\n");
481         return (AE_OK);
482     }
483
484
485     switch (Temp)
486     {
487     case CMD_STAT_ALLOCATIONS:
488
489 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
490         AcpiUtDumpAllocationInfo ();
491 #endif
492         break;
493
494     case CMD_STAT_TABLES:
495
496         AcpiOsPrintf ("ACPI Table Information:\n\n");
497         if (AcpiGbl_DSDT)
498         {
499             AcpiOsPrintf ("DSDT Length:................% 7ld (%X)\n",
500                 AcpiGbl_DSDT->Length, AcpiGbl_DSDT->Length);
501         }
502         break;
503
504     case CMD_STAT_OBJECTS:
505
506         AcpiDbCountNamespaceObjects ();
507
508         AcpiOsPrintf ("\nObjects defined in the current namespace:\n\n");
509
510         AcpiOsPrintf ("%16.16s %10.10s %10.10s\n",
511             "ACPI_TYPE", "NODES", "OBJECTS");
512
513         for (i = 0; i < ACPI_TYPE_NS_NODE_MAX; i++)
514         {
515             AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", AcpiUtGetTypeName (i),
516                 AcpiGbl_NodeTypeCount [i], AcpiGbl_ObjTypeCount [i]);
517         }
518         AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", "Misc/Unknown",
519             AcpiGbl_NodeTypeCountMisc, AcpiGbl_ObjTypeCountMisc);
520
521         AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", "TOTALS:",
522             AcpiGbl_NumNodes, AcpiGbl_NumObjects);
523         break;
524
525     case CMD_STAT_MEMORY:
526
527 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
528         AcpiOsPrintf ("\n----Object and Cache Statistics---------------------------------------------\n");
529
530         AcpiDbListInfo (AcpiGbl_GlobalList);
531         AcpiDbListInfo (AcpiGbl_NsNodeList);
532
533 #ifdef ACPI_USE_LOCAL_CACHE
534         AcpiDbListInfo (AcpiGbl_OperandCache);
535         AcpiDbListInfo (AcpiGbl_PsNodeCache);
536         AcpiDbListInfo (AcpiGbl_PsNodeExtCache);
537         AcpiDbListInfo (AcpiGbl_StateCache);
538 #endif
539 #endif
540
541         break;
542
543     case CMD_STAT_MISC:
544
545         AcpiOsPrintf ("\nMiscellaneous Statistics:\n\n");
546         AcpiOsPrintf ("Calls to AcpiPsFind:..  ........% 7ld\n",
547             AcpiGbl_PsFindCount);
548         AcpiOsPrintf ("Calls to AcpiNsLookup:..........% 7ld\n",
549             AcpiGbl_NsLookupCount);
550
551         AcpiOsPrintf ("\n");
552
553         AcpiOsPrintf ("Mutex usage:\n\n");
554         for (i = 0; i < NUM_MUTEX; i++)
555         {
556             AcpiOsPrintf ("%-28s:       % 7ld\n",
557                 AcpiUtGetMutexName (i), AcpiGbl_MutexInfo[i].UseCount);
558         }
559         break;
560
561
562     case CMD_STAT_SIZES:
563
564         AcpiOsPrintf ("\nInternal object sizes:\n\n");
565
566         AcpiOsPrintf ("Common           %3d\n", sizeof (ACPI_OBJECT_COMMON));
567         AcpiOsPrintf ("Number           %3d\n", sizeof (ACPI_OBJECT_INTEGER));
568         AcpiOsPrintf ("String           %3d\n", sizeof (ACPI_OBJECT_STRING));
569         AcpiOsPrintf ("Buffer           %3d\n", sizeof (ACPI_OBJECT_BUFFER));
570         AcpiOsPrintf ("Package          %3d\n", sizeof (ACPI_OBJECT_PACKAGE));
571         AcpiOsPrintf ("BufferField      %3d\n", sizeof (ACPI_OBJECT_BUFFER_FIELD));
572         AcpiOsPrintf ("Device           %3d\n", sizeof (ACPI_OBJECT_DEVICE));
573         AcpiOsPrintf ("Event            %3d\n", sizeof (ACPI_OBJECT_EVENT));
574         AcpiOsPrintf ("Method           %3d\n", sizeof (ACPI_OBJECT_METHOD));
575         AcpiOsPrintf ("Mutex            %3d\n", sizeof (ACPI_OBJECT_MUTEX));
576         AcpiOsPrintf ("Region           %3d\n", sizeof (ACPI_OBJECT_REGION));
577         AcpiOsPrintf ("PowerResource    %3d\n", sizeof (ACPI_OBJECT_POWER_RESOURCE));
578         AcpiOsPrintf ("Processor        %3d\n", sizeof (ACPI_OBJECT_PROCESSOR));
579         AcpiOsPrintf ("ThermalZone      %3d\n", sizeof (ACPI_OBJECT_THERMAL_ZONE));
580         AcpiOsPrintf ("RegionField      %3d\n", sizeof (ACPI_OBJECT_REGION_FIELD));
581         AcpiOsPrintf ("BankField        %3d\n", sizeof (ACPI_OBJECT_BANK_FIELD));
582         AcpiOsPrintf ("IndexField       %3d\n", sizeof (ACPI_OBJECT_INDEX_FIELD));
583         AcpiOsPrintf ("Reference        %3d\n", sizeof (ACPI_OBJECT_REFERENCE));
584         AcpiOsPrintf ("Notify           %3d\n", sizeof (ACPI_OBJECT_NOTIFY_HANDLER));
585         AcpiOsPrintf ("AddressSpace     %3d\n", sizeof (ACPI_OBJECT_ADDR_HANDLER));
586         AcpiOsPrintf ("Extra            %3d\n", sizeof (ACPI_OBJECT_EXTRA));
587         AcpiOsPrintf ("Data             %3d\n", sizeof (ACPI_OBJECT_DATA));
588
589         AcpiOsPrintf ("\n");
590
591         AcpiOsPrintf ("ParseObject      %3d\n", sizeof (ACPI_PARSE_OBJ_COMMON));
592         AcpiOsPrintf ("ParseObjectNamed %3d\n", sizeof (ACPI_PARSE_OBJ_NAMED));
593         AcpiOsPrintf ("ParseObjectAsl   %3d\n", sizeof (ACPI_PARSE_OBJ_ASL));
594         AcpiOsPrintf ("OperandObject    %3d\n", sizeof (ACPI_OPERAND_OBJECT));
595         AcpiOsPrintf ("NamespaceNode    %3d\n", sizeof (ACPI_NAMESPACE_NODE));
596
597         break;
598
599
600     case CMD_STAT_STACK:
601 #if defined(ACPI_DEBUG_OUTPUT)
602
603         Temp = (UINT32) (AcpiGbl_EntryStackPointer - AcpiGbl_LowestStackPointer);
604
605         AcpiOsPrintf ("\nSubsystem Stack Usage:\n\n");
606         AcpiOsPrintf ("Entry Stack Pointer          %X\n", AcpiGbl_EntryStackPointer);
607         AcpiOsPrintf ("Lowest Stack Pointer         %X\n", AcpiGbl_LowestStackPointer);
608         AcpiOsPrintf ("Stack Use                    %X (%d)\n", Temp, Temp);
609         AcpiOsPrintf ("Deepest Procedure Nesting    %d\n", AcpiGbl_DeepestNesting);
610 #endif
611         break;
612
613     default:
614         break;
615     }
616
617     AcpiOsPrintf ("\n");
618     return (AE_OK);
619 }
620
621 #endif /* ACPI_DEBUGGER  */