dbstats.c revision 167802
1/******************************************************************************* 2 * 3 * Module Name: dbstats - Generation and display of ACPI table statistics 4 * $Revision: 1.87 $ 5 * 6 ******************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999 - 2007, 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 129static void 130AcpiDbCountNamespaceObjects ( 131 void); 132 133static void 134AcpiDbEnumerateObject ( 135 ACPI_OPERAND_OBJECT *ObjDesc); 136 137static ACPI_STATUS 138AcpiDbClassifyOneObject ( 139 ACPI_HANDLE ObjHandle, 140 UINT32 NestingLevel, 141 void *Context, 142 void **ReturnValue); 143 144static void 145AcpiDbListInfo ( 146 ACPI_MEMORY_LIST *List); 147 148 149/* 150 * Statistics subcommands 151 */ 152static 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#if defined ACPI_DBG_TRACK_ALLOCATIONS || defined ACPI_USE_LOCAL_CACHE 174 175/******************************************************************************* 176 * 177 * FUNCTION: AcpiDbListInfo 178 * 179 * PARAMETERS: List - Memory list/cache to be displayed 180 * 181 * RETURN: None 182 * 183 * DESCRIPTION: Display information about the input memory list or cache. 184 * 185 ******************************************************************************/ 186 187static void 188AcpiDbListInfo ( 189 ACPI_MEMORY_LIST *List) 190{ 191#ifdef ACPI_DBG_TRACK_ALLOCATIONS 192 UINT32 Outstanding; 193#endif 194 195 AcpiOsPrintf ("\n%s\n", List->ListName); 196 197 /* MaxDepth > 0 indicates a cache object */ 198 199 if (List->MaxDepth > 0) 200 { 201 AcpiOsPrintf ( 202 " Cache: [Depth MaxD Avail Size] %8.2X %8.2X %8.2X %8.2X\n", 203 List->CurrentDepth, 204 List->MaxDepth, 205 List->MaxDepth - List->CurrentDepth, 206 (List->CurrentDepth * List->ObjectSize)); 207 } 208 209#ifdef ACPI_DBG_TRACK_ALLOCATIONS 210 if (List->MaxDepth > 0) 211 { 212 AcpiOsPrintf ( 213 " Cache: [Requests Hits Misses ObjSize] %8.2X %8.2X %8.2X %8.2X\n", 214 List->Requests, 215 List->Hits, 216 List->Requests - List->Hits, 217 List->ObjectSize); 218 } 219 220 Outstanding = AcpiDbGetCacheInfo (List); 221 222 if (List->ObjectSize) 223 { 224 AcpiOsPrintf ( 225 " Mem: [Alloc Free Max CurSize Outstanding] %8.2X %8.2X %8.2X %8.2X %8.2X\n", 226 List->TotalAllocated, 227 List->TotalFreed, 228 List->MaxOccupied, 229 Outstanding * List->ObjectSize, 230 Outstanding); 231 } 232 else 233 { 234 AcpiOsPrintf ( 235 " Mem: [Alloc Free Max CurSize Outstanding Total] %8.2X %8.2X %8.2X %8.2X %8.2X %8.2X\n", 236 List->TotalAllocated, 237 List->TotalFreed, 238 List->MaxOccupied, 239 List->CurrentTotalSize, 240 Outstanding, 241 List->TotalSize); 242 } 243#endif 244} 245#endif 246 247 248/******************************************************************************* 249 * 250 * FUNCTION: AcpiDbEnumerateObject 251 * 252 * PARAMETERS: ObjDesc - Object to be counted 253 * 254 * RETURN: None 255 * 256 * DESCRIPTION: Add this object to the global counts, by object type. 257 * Limited recursion handles subobjects and packages, and this 258 * is probably acceptable within the AML debugger only. 259 * 260 ******************************************************************************/ 261 262static void 263AcpiDbEnumerateObject ( 264 ACPI_OPERAND_OBJECT *ObjDesc) 265{ 266 UINT32 i; 267 268 269 if (!ObjDesc) 270 { 271 return; 272 } 273 274 /* Enumerate this object first */ 275 276 AcpiGbl_NumObjects++; 277 278 if (ACPI_GET_OBJECT_TYPE (ObjDesc) > ACPI_TYPE_NS_NODE_MAX) 279 { 280 AcpiGbl_ObjTypeCountMisc++; 281 } 282 else 283 { 284 AcpiGbl_ObjTypeCount [ACPI_GET_OBJECT_TYPE (ObjDesc)]++; 285 } 286 287 /* Count the sub-objects */ 288 289 switch (ACPI_GET_OBJECT_TYPE (ObjDesc)) 290 { 291 case ACPI_TYPE_PACKAGE: 292 293 for (i = 0; i < ObjDesc->Package.Count; i++) 294 { 295 AcpiDbEnumerateObject (ObjDesc->Package.Elements[i]); 296 } 297 break; 298 299 case ACPI_TYPE_DEVICE: 300 301 AcpiDbEnumerateObject (ObjDesc->Device.SystemNotify); 302 AcpiDbEnumerateObject (ObjDesc->Device.DeviceNotify); 303 AcpiDbEnumerateObject (ObjDesc->Device.Handler); 304 break; 305 306 case ACPI_TYPE_BUFFER_FIELD: 307 308 if (AcpiNsGetSecondaryObject (ObjDesc)) 309 { 310 AcpiGbl_ObjTypeCount [ACPI_TYPE_BUFFER_FIELD]++; 311 } 312 break; 313 314 case ACPI_TYPE_REGION: 315 316 AcpiGbl_ObjTypeCount [ACPI_TYPE_LOCAL_REGION_FIELD ]++; 317 AcpiDbEnumerateObject (ObjDesc->Region.Handler); 318 break; 319 320 case ACPI_TYPE_POWER: 321 322 AcpiDbEnumerateObject (ObjDesc->PowerResource.SystemNotify); 323 AcpiDbEnumerateObject (ObjDesc->PowerResource.DeviceNotify); 324 break; 325 326 case ACPI_TYPE_PROCESSOR: 327 328 AcpiDbEnumerateObject (ObjDesc->Processor.SystemNotify); 329 AcpiDbEnumerateObject (ObjDesc->Processor.DeviceNotify); 330 AcpiDbEnumerateObject (ObjDesc->Processor.Handler); 331 break; 332 333 case ACPI_TYPE_THERMAL: 334 335 AcpiDbEnumerateObject (ObjDesc->ThermalZone.SystemNotify); 336 AcpiDbEnumerateObject (ObjDesc->ThermalZone.DeviceNotify); 337 AcpiDbEnumerateObject (ObjDesc->ThermalZone.Handler); 338 break; 339 340 default: 341 break; 342 } 343} 344 345 346/******************************************************************************* 347 * 348 * FUNCTION: AcpiDbClassifyOneObject 349 * 350 * PARAMETERS: Callback for WalkNamespace 351 * 352 * RETURN: Status 353 * 354 * DESCRIPTION: Enumerate both the object descriptor (including subobjects) and 355 * the parent namespace node. 356 * 357 ******************************************************************************/ 358 359static ACPI_STATUS 360AcpiDbClassifyOneObject ( 361 ACPI_HANDLE ObjHandle, 362 UINT32 NestingLevel, 363 void *Context, 364 void **ReturnValue) 365{ 366 ACPI_NAMESPACE_NODE *Node; 367 ACPI_OPERAND_OBJECT *ObjDesc; 368 UINT32 Type; 369 370 371 AcpiGbl_NumNodes++; 372 373 Node = (ACPI_NAMESPACE_NODE *) ObjHandle; 374 ObjDesc = AcpiNsGetAttachedObject (Node); 375 376 AcpiDbEnumerateObject (ObjDesc); 377 378 Type = Node->Type; 379 if (Type > ACPI_TYPE_NS_NODE_MAX) 380 { 381 AcpiGbl_NodeTypeCountMisc++; 382 } 383 else 384 { 385 AcpiGbl_NodeTypeCount [Type]++; 386 } 387 388 return AE_OK; 389 390 391#ifdef ACPI_FUTURE_IMPLEMENTATION 392 393 /* TBD: These need to be counted during the initial parsing phase */ 394 395 if (AcpiPsIsNamedOp (Op->Opcode)) 396 { 397 NumNodes++; 398 } 399 400 if (IsMethod) 401 { 402 NumMethodElements++; 403 } 404 405 NumGrammarElements++; 406 Op = AcpiPsGetDepthNext (Root, Op); 407 408 SizeOfParseTree = (NumGrammarElements - NumMethodElements) * 409 (UINT32) sizeof (ACPI_PARSE_OBJECT); 410 SizeOfMethodTrees = NumMethodElements * (UINT32) sizeof (ACPI_PARSE_OBJECT); 411 SizeOfNodeEntries = NumNodes * (UINT32) sizeof (ACPI_NAMESPACE_NODE); 412 SizeOfAcpiObjects = NumNodes * (UINT32) sizeof (ACPI_OPERAND_OBJECT); 413#endif 414} 415 416 417/******************************************************************************* 418 * 419 * FUNCTION: AcpiDbCountNamespaceObjects 420 * 421 * PARAMETERS: None 422 * 423 * RETURN: None 424 * 425 * DESCRIPTION: Count and classify the entire namespace, including all 426 * namespace nodes and attached objects. 427 * 428 ******************************************************************************/ 429 430static void 431AcpiDbCountNamespaceObjects ( 432 void) 433{ 434 UINT32 i; 435 436 437 AcpiGbl_NumNodes = 0; 438 AcpiGbl_NumObjects = 0; 439 440 AcpiGbl_ObjTypeCountMisc = 0; 441 for (i = 0; i < (ACPI_TYPE_NS_NODE_MAX -1); i++) 442 { 443 AcpiGbl_ObjTypeCount [i] = 0; 444 AcpiGbl_NodeTypeCount [i] = 0; 445 } 446 447 (void) AcpiNsWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, 448 ACPI_UINT32_MAX, FALSE, AcpiDbClassifyOneObject, NULL, NULL); 449} 450 451 452/******************************************************************************* 453 * 454 * FUNCTION: AcpiDbDisplayStatistics 455 * 456 * PARAMETERS: TypeArg - Subcommand 457 * 458 * RETURN: Status 459 * 460 * DESCRIPTION: Display various statistics 461 * 462 ******************************************************************************/ 463 464ACPI_STATUS 465AcpiDbDisplayStatistics ( 466 char *TypeArg) 467{ 468 UINT32 i; 469 UINT32 Temp; 470 471 472 if (!TypeArg) 473 { 474 AcpiOsPrintf ("The following subcommands are available:\n ALLOCATIONS, OBJECTS, MEMORY, MISC, SIZES, TABLES\n"); 475 return (AE_OK); 476 } 477 478 AcpiUtStrupr (TypeArg); 479 Temp = AcpiDbMatchArgument (TypeArg, AcpiDbStatTypes); 480 if (Temp == (UINT32) -1) 481 { 482 AcpiOsPrintf ("Invalid or unsupported argument\n"); 483 return (AE_OK); 484 } 485 486 487 switch (Temp) 488 { 489 case CMD_STAT_ALLOCATIONS: 490 491#ifdef ACPI_DBG_TRACK_ALLOCATIONS 492 AcpiUtDumpAllocationInfo (); 493#endif 494 break; 495 496 case CMD_STAT_TABLES: 497 498 AcpiOsPrintf ("ACPI Table Information (not implemented):\n\n"); 499 break; 500 501 case CMD_STAT_OBJECTS: 502 503 AcpiDbCountNamespaceObjects (); 504 505 AcpiOsPrintf ("\nObjects defined in the current namespace:\n\n"); 506 507 AcpiOsPrintf ("%16.16s %10.10s %10.10s\n", 508 "ACPI_TYPE", "NODES", "OBJECTS"); 509 510 for (i = 0; i < ACPI_TYPE_NS_NODE_MAX; i++) 511 { 512 AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", AcpiUtGetTypeName (i), 513 AcpiGbl_NodeTypeCount [i], AcpiGbl_ObjTypeCount [i]); 514 } 515 AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", "Misc/Unknown", 516 AcpiGbl_NodeTypeCountMisc, AcpiGbl_ObjTypeCountMisc); 517 518 AcpiOsPrintf ("%16.16s % 10ld% 10ld\n", "TOTALS:", 519 AcpiGbl_NumNodes, AcpiGbl_NumObjects); 520 break; 521 522 case CMD_STAT_MEMORY: 523 524#ifdef ACPI_DBG_TRACK_ALLOCATIONS 525 AcpiOsPrintf ("\n----Object and Cache Statistics (all in hex)---------\n"); 526 527 AcpiDbListInfo (AcpiGbl_GlobalList); 528 AcpiDbListInfo (AcpiGbl_NsNodeList); 529 530#ifdef ACPI_USE_LOCAL_CACHE 531 AcpiDbListInfo (AcpiGbl_OperandCache); 532 AcpiDbListInfo (AcpiGbl_PsNodeCache); 533 AcpiDbListInfo (AcpiGbl_PsNodeExtCache); 534 AcpiDbListInfo (AcpiGbl_StateCache); 535#endif 536#endif 537 538 break; 539 540 case CMD_STAT_MISC: 541 542 AcpiOsPrintf ("\nMiscellaneous Statistics:\n\n"); 543 AcpiOsPrintf ("Calls to AcpiPsFind:.. ........% 7ld\n", 544 AcpiGbl_PsFindCount); 545 AcpiOsPrintf ("Calls to AcpiNsLookup:..........% 7ld\n", 546 AcpiGbl_NsLookupCount); 547 548 AcpiOsPrintf ("\n"); 549 550 AcpiOsPrintf ("Mutex usage:\n\n"); 551 for (i = 0; i < ACPI_NUM_MUTEX; i++) 552 { 553 AcpiOsPrintf ("%-28s: % 7ld\n", 554 AcpiUtGetMutexName (i), AcpiGbl_MutexInfo[i].UseCount); 555 } 556 break; 557 558 559 case CMD_STAT_SIZES: 560 561 AcpiOsPrintf ("\nInternal object sizes:\n\n"); 562 563 AcpiOsPrintf ("Common %3d\n", sizeof (ACPI_OBJECT_COMMON)); 564 AcpiOsPrintf ("Number %3d\n", sizeof (ACPI_OBJECT_INTEGER)); 565 AcpiOsPrintf ("String %3d\n", sizeof (ACPI_OBJECT_STRING)); 566 AcpiOsPrintf ("Buffer %3d\n", sizeof (ACPI_OBJECT_BUFFER)); 567 AcpiOsPrintf ("Package %3d\n", sizeof (ACPI_OBJECT_PACKAGE)); 568 AcpiOsPrintf ("BufferField %3d\n", sizeof (ACPI_OBJECT_BUFFER_FIELD)); 569 AcpiOsPrintf ("Device %3d\n", sizeof (ACPI_OBJECT_DEVICE)); 570 AcpiOsPrintf ("Event %3d\n", sizeof (ACPI_OBJECT_EVENT)); 571 AcpiOsPrintf ("Method %3d\n", sizeof (ACPI_OBJECT_METHOD)); 572 AcpiOsPrintf ("Mutex %3d\n", sizeof (ACPI_OBJECT_MUTEX)); 573 AcpiOsPrintf ("Region %3d\n", sizeof (ACPI_OBJECT_REGION)); 574 AcpiOsPrintf ("PowerResource %3d\n", sizeof (ACPI_OBJECT_POWER_RESOURCE)); 575 AcpiOsPrintf ("Processor %3d\n", sizeof (ACPI_OBJECT_PROCESSOR)); 576 AcpiOsPrintf ("ThermalZone %3d\n", sizeof (ACPI_OBJECT_THERMAL_ZONE)); 577 AcpiOsPrintf ("RegionField %3d\n", sizeof (ACPI_OBJECT_REGION_FIELD)); 578 AcpiOsPrintf ("BankField %3d\n", sizeof (ACPI_OBJECT_BANK_FIELD)); 579 AcpiOsPrintf ("IndexField %3d\n", sizeof (ACPI_OBJECT_INDEX_FIELD)); 580 AcpiOsPrintf ("Reference %3d\n", sizeof (ACPI_OBJECT_REFERENCE)); 581 AcpiOsPrintf ("Notify %3d\n", sizeof (ACPI_OBJECT_NOTIFY_HANDLER)); 582 AcpiOsPrintf ("AddressSpace %3d\n", sizeof (ACPI_OBJECT_ADDR_HANDLER)); 583 AcpiOsPrintf ("Extra %3d\n", sizeof (ACPI_OBJECT_EXTRA)); 584 AcpiOsPrintf ("Data %3d\n", sizeof (ACPI_OBJECT_DATA)); 585 586 AcpiOsPrintf ("\n"); 587 588 AcpiOsPrintf ("ParseObject %3d\n", sizeof (ACPI_PARSE_OBJ_COMMON)); 589 AcpiOsPrintf ("ParseObjectNamed %3d\n", sizeof (ACPI_PARSE_OBJ_NAMED)); 590 AcpiOsPrintf ("ParseObjectAsl %3d\n", sizeof (ACPI_PARSE_OBJ_ASL)); 591 AcpiOsPrintf ("OperandObject %3d\n", sizeof (ACPI_OPERAND_OBJECT)); 592 AcpiOsPrintf ("NamespaceNode %3d\n", sizeof (ACPI_NAMESPACE_NODE)); 593 594 break; 595 596 597 case CMD_STAT_STACK: 598#if defined(ACPI_DEBUG_OUTPUT) 599 600 Temp = (UINT32) (AcpiGbl_EntryStackPointer - AcpiGbl_LowestStackPointer); 601 602 AcpiOsPrintf ("\nSubsystem Stack Usage:\n\n"); 603 AcpiOsPrintf ("Entry Stack Pointer %X\n", AcpiGbl_EntryStackPointer); 604 AcpiOsPrintf ("Lowest Stack Pointer %X\n", AcpiGbl_LowestStackPointer); 605 AcpiOsPrintf ("Stack Use %X (%d)\n", Temp, Temp); 606 AcpiOsPrintf ("Deepest Procedure Nesting %d\n", AcpiGbl_DeepestNesting); 607#endif 608 break; 609 610 default: 611 break; 612 } 613 614 AcpiOsPrintf ("\n"); 615 return (AE_OK); 616} 617 618#endif /* ACPI_DEBUGGER */ 619