nsdump.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. /******************************************************************************
  2. *
  3. * Module Name: nsdump - table dumping routines for debug
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2006, R. Byron Moore
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #include <acpi/acpi.h>
  43. #include <acpi/acnamesp.h>
  44. #include <acpi/acparser.h>
  45. #define _COMPONENT ACPI_NAMESPACE
  46. ACPI_MODULE_NAME("nsdump")
  47. /* Local prototypes */
  48. #ifdef ACPI_OBSOLETE_FUNCTIONS
  49. void acpi_ns_dump_root_devices(void);
  50. static acpi_status
  51. acpi_ns_dump_one_device(acpi_handle obj_handle,
  52. u32 level, void *context, void **return_value);
  53. #endif
  54. #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
  55. /*******************************************************************************
  56. *
  57. * FUNCTION: acpi_ns_print_pathname
  58. *
  59. * PARAMETERS: num_segments - Number of ACPI name segments
  60. * Pathname - The compressed (internal) path
  61. *
  62. * RETURN: None
  63. *
  64. * DESCRIPTION: Print an object's full namespace pathname
  65. *
  66. ******************************************************************************/
  67. void acpi_ns_print_pathname(u32 num_segments, char *pathname)
  68. {
  69. acpi_native_uint i;
  70. ACPI_FUNCTION_NAME("ns_print_pathname");
  71. if (!(acpi_dbg_level & ACPI_LV_NAMES)
  72. || !(acpi_dbg_layer & ACPI_NAMESPACE)) {
  73. return;
  74. }
  75. /* Print the entire name */
  76. ACPI_DEBUG_PRINT((ACPI_DB_NAMES, "["));
  77. while (num_segments) {
  78. for (i = 0; i < 4; i++) {
  79. ACPI_IS_PRINT(pathname[i]) ?
  80. acpi_os_printf("%c", pathname[i]) :
  81. acpi_os_printf("?");
  82. }
  83. pathname += ACPI_NAME_SIZE;
  84. num_segments--;
  85. if (num_segments) {
  86. acpi_os_printf(".");
  87. }
  88. }
  89. acpi_os_printf("]\n");
  90. }
  91. /*******************************************************************************
  92. *
  93. * FUNCTION: acpi_ns_dump_pathname
  94. *
  95. * PARAMETERS: Handle - Object
  96. * Msg - Prefix message
  97. * Level - Desired debug level
  98. * Component - Caller's component ID
  99. *
  100. * RETURN: None
  101. *
  102. * DESCRIPTION: Print an object's full namespace pathname
  103. * Manages allocation/freeing of a pathname buffer
  104. *
  105. ******************************************************************************/
  106. void
  107. acpi_ns_dump_pathname(acpi_handle handle, char *msg, u32 level, u32 component)
  108. {
  109. ACPI_FUNCTION_TRACE("ns_dump_pathname");
  110. /* Do this only if the requested debug level and component are enabled */
  111. if (!(acpi_dbg_level & level) || !(acpi_dbg_layer & component)) {
  112. return_VOID;
  113. }
  114. /* Convert handle to a full pathname and print it (with supplied message) */
  115. acpi_ns_print_node_pathname(handle, msg);
  116. acpi_os_printf("\n");
  117. return_VOID;
  118. }
  119. /*******************************************************************************
  120. *
  121. * FUNCTION: acpi_ns_dump_one_object
  122. *
  123. * PARAMETERS: obj_handle - Node to be dumped
  124. * Level - Nesting level of the handle
  125. * Context - Passed into walk_namespace
  126. * return_value - Not used
  127. *
  128. * RETURN: Status
  129. *
  130. * DESCRIPTION: Dump a single Node
  131. * This procedure is a user_function called by acpi_ns_walk_namespace.
  132. *
  133. ******************************************************************************/
  134. acpi_status
  135. acpi_ns_dump_one_object(acpi_handle obj_handle,
  136. u32 level, void *context, void **return_value)
  137. {
  138. struct acpi_walk_info *info = (struct acpi_walk_info *)context;
  139. struct acpi_namespace_node *this_node;
  140. union acpi_operand_object *obj_desc = NULL;
  141. acpi_object_type obj_type;
  142. acpi_object_type type;
  143. u32 bytes_to_dump;
  144. u32 dbg_level;
  145. u32 i;
  146. ACPI_FUNCTION_NAME("ns_dump_one_object");
  147. /* Is output enabled? */
  148. if (!(acpi_dbg_level & info->debug_level)) {
  149. return (AE_OK);
  150. }
  151. if (!obj_handle) {
  152. ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Null object handle\n"));
  153. return (AE_OK);
  154. }
  155. this_node = acpi_ns_map_handle_to_node(obj_handle);
  156. type = this_node->type;
  157. /* Check if the owner matches */
  158. if ((info->owner_id != ACPI_OWNER_ID_MAX) &&
  159. (info->owner_id != this_node->owner_id)) {
  160. return (AE_OK);
  161. }
  162. if (!(info->display_type & ACPI_DISPLAY_SHORT)) {
  163. /* Indent the object according to the level */
  164. acpi_os_printf("%2d%*s", (u32) level - 1, (int)level * 2, " ");
  165. /* Check the node type and name */
  166. if (type > ACPI_TYPE_LOCAL_MAX) {
  167. ACPI_WARNING((AE_INFO, "Invalid ACPI Object Type %08X",
  168. type));
  169. }
  170. if (!acpi_ut_valid_acpi_name(this_node->name.integer)) {
  171. ACPI_WARNING((AE_INFO, "Invalid ACPI Name %08X",
  172. this_node->name.integer));
  173. }
  174. acpi_os_printf("%4.4s", acpi_ut_get_node_name(this_node));
  175. }
  176. /*
  177. * Now we can print out the pertinent information
  178. */
  179. acpi_os_printf(" %-12s %p %2.2X ",
  180. acpi_ut_get_type_name(type), this_node,
  181. this_node->owner_id);
  182. dbg_level = acpi_dbg_level;
  183. acpi_dbg_level = 0;
  184. obj_desc = acpi_ns_get_attached_object(this_node);
  185. acpi_dbg_level = dbg_level;
  186. switch (info->display_type & ACPI_DISPLAY_MASK) {
  187. case ACPI_DISPLAY_SUMMARY:
  188. if (!obj_desc) {
  189. /* No attached object, we are done */
  190. acpi_os_printf("\n");
  191. return (AE_OK);
  192. }
  193. switch (type) {
  194. case ACPI_TYPE_PROCESSOR:
  195. acpi_os_printf("ID %X Len %.4X Addr %p\n",
  196. obj_desc->processor.proc_id,
  197. obj_desc->processor.length,
  198. (char *)obj_desc->processor.address);
  199. break;
  200. case ACPI_TYPE_DEVICE:
  201. acpi_os_printf("Notify Object: %p\n", obj_desc);
  202. break;
  203. case ACPI_TYPE_METHOD:
  204. acpi_os_printf("Args %X Len %.4X Aml %p\n",
  205. (u32) obj_desc->method.param_count,
  206. obj_desc->method.aml_length,
  207. obj_desc->method.aml_start);
  208. break;
  209. case ACPI_TYPE_INTEGER:
  210. acpi_os_printf("= %8.8X%8.8X\n",
  211. ACPI_FORMAT_UINT64(obj_desc->integer.
  212. value));
  213. break;
  214. case ACPI_TYPE_PACKAGE:
  215. if (obj_desc->common.flags & AOPOBJ_DATA_VALID) {
  216. acpi_os_printf("Elements %.2X\n",
  217. obj_desc->package.count);
  218. } else {
  219. acpi_os_printf("[Length not yet evaluated]\n");
  220. }
  221. break;
  222. case ACPI_TYPE_BUFFER:
  223. if (obj_desc->common.flags & AOPOBJ_DATA_VALID) {
  224. acpi_os_printf("Len %.2X",
  225. obj_desc->buffer.length);
  226. /* Dump some of the buffer */
  227. if (obj_desc->buffer.length > 0) {
  228. acpi_os_printf(" =");
  229. for (i = 0;
  230. (i < obj_desc->buffer.length
  231. && i < 12); i++) {
  232. acpi_os_printf(" %.2hX",
  233. obj_desc->buffer.
  234. pointer[i]);
  235. }
  236. }
  237. acpi_os_printf("\n");
  238. } else {
  239. acpi_os_printf("[Length not yet evaluated]\n");
  240. }
  241. break;
  242. case ACPI_TYPE_STRING:
  243. acpi_os_printf("Len %.2X ", obj_desc->string.length);
  244. acpi_ut_print_string(obj_desc->string.pointer, 32);
  245. acpi_os_printf("\n");
  246. break;
  247. case ACPI_TYPE_REGION:
  248. acpi_os_printf("[%s]",
  249. acpi_ut_get_region_name(obj_desc->region.
  250. space_id));
  251. if (obj_desc->region.flags & AOPOBJ_DATA_VALID) {
  252. acpi_os_printf(" Addr %8.8X%8.8X Len %.4X\n",
  253. ACPI_FORMAT_UINT64(obj_desc->
  254. region.
  255. address),
  256. obj_desc->region.length);
  257. } else {
  258. acpi_os_printf
  259. (" [Address/Length not yet evaluated]\n");
  260. }
  261. break;
  262. case ACPI_TYPE_LOCAL_REFERENCE:
  263. acpi_os_printf("[%s]\n",
  264. acpi_ps_get_opcode_name(obj_desc->
  265. reference.
  266. opcode));
  267. break;
  268. case ACPI_TYPE_BUFFER_FIELD:
  269. if (obj_desc->buffer_field.buffer_obj &&
  270. obj_desc->buffer_field.buffer_obj->buffer.node) {
  271. acpi_os_printf("Buf [%4.4s]",
  272. acpi_ut_get_node_name(obj_desc->
  273. buffer_field.
  274. buffer_obj->
  275. buffer.
  276. node));
  277. }
  278. break;
  279. case ACPI_TYPE_LOCAL_REGION_FIELD:
  280. acpi_os_printf("Rgn [%4.4s]",
  281. acpi_ut_get_node_name(obj_desc->
  282. common_field.
  283. region_obj->region.
  284. node));
  285. break;
  286. case ACPI_TYPE_LOCAL_BANK_FIELD:
  287. acpi_os_printf("Rgn [%4.4s] Bnk [%4.4s]",
  288. acpi_ut_get_node_name(obj_desc->
  289. common_field.
  290. region_obj->region.
  291. node),
  292. acpi_ut_get_node_name(obj_desc->
  293. bank_field.
  294. bank_obj->
  295. common_field.
  296. node));
  297. break;
  298. case ACPI_TYPE_LOCAL_INDEX_FIELD:
  299. acpi_os_printf("Idx [%4.4s] Dat [%4.4s]",
  300. acpi_ut_get_node_name(obj_desc->
  301. index_field.
  302. index_obj->
  303. common_field.node),
  304. acpi_ut_get_node_name(obj_desc->
  305. index_field.
  306. data_obj->
  307. common_field.
  308. node));
  309. break;
  310. case ACPI_TYPE_LOCAL_ALIAS:
  311. case ACPI_TYPE_LOCAL_METHOD_ALIAS:
  312. acpi_os_printf("Target %4.4s (%p)\n",
  313. acpi_ut_get_node_name(obj_desc),
  314. obj_desc);
  315. break;
  316. default:
  317. acpi_os_printf("Object %p\n", obj_desc);
  318. break;
  319. }
  320. /* Common field handling */
  321. switch (type) {
  322. case ACPI_TYPE_BUFFER_FIELD:
  323. case ACPI_TYPE_LOCAL_REGION_FIELD:
  324. case ACPI_TYPE_LOCAL_BANK_FIELD:
  325. case ACPI_TYPE_LOCAL_INDEX_FIELD:
  326. acpi_os_printf(" Off %.3X Len %.2X Acc %.2hd\n",
  327. (obj_desc->common_field.
  328. base_byte_offset * 8)
  329. +
  330. obj_desc->common_field.
  331. start_field_bit_offset,
  332. obj_desc->common_field.bit_length,
  333. obj_desc->common_field.
  334. access_byte_width);
  335. break;
  336. default:
  337. break;
  338. }
  339. break;
  340. case ACPI_DISPLAY_OBJECTS:
  341. acpi_os_printf("O:%p", obj_desc);
  342. if (!obj_desc) {
  343. /* No attached object, we are done */
  344. acpi_os_printf("\n");
  345. return (AE_OK);
  346. }
  347. acpi_os_printf("(R%d)", obj_desc->common.reference_count);
  348. switch (type) {
  349. case ACPI_TYPE_METHOD:
  350. /* Name is a Method and its AML offset/length are set */
  351. acpi_os_printf(" M:%p-%X\n", obj_desc->method.aml_start,
  352. obj_desc->method.aml_length);
  353. break;
  354. case ACPI_TYPE_INTEGER:
  355. acpi_os_printf(" I:%8.8X8.8%X\n",
  356. ACPI_FORMAT_UINT64(obj_desc->integer.
  357. value));
  358. break;
  359. case ACPI_TYPE_STRING:
  360. acpi_os_printf(" S:%p-%X\n", obj_desc->string.pointer,
  361. obj_desc->string.length);
  362. break;
  363. case ACPI_TYPE_BUFFER:
  364. acpi_os_printf(" B:%p-%X\n", obj_desc->buffer.pointer,
  365. obj_desc->buffer.length);
  366. break;
  367. default:
  368. acpi_os_printf("\n");
  369. break;
  370. }
  371. break;
  372. default:
  373. acpi_os_printf("\n");
  374. break;
  375. }
  376. /* If debug turned off, done */
  377. if (!(acpi_dbg_level & ACPI_LV_VALUES)) {
  378. return (AE_OK);
  379. }
  380. /* If there is an attached object, display it */
  381. dbg_level = acpi_dbg_level;
  382. acpi_dbg_level = 0;
  383. obj_desc = acpi_ns_get_attached_object(this_node);
  384. acpi_dbg_level = dbg_level;
  385. /* Dump attached objects */
  386. while (obj_desc) {
  387. obj_type = ACPI_TYPE_INVALID;
  388. acpi_os_printf("Attached Object %p: ", obj_desc);
  389. /* Decode the type of attached object and dump the contents */
  390. switch (ACPI_GET_DESCRIPTOR_TYPE(obj_desc)) {
  391. case ACPI_DESC_TYPE_NAMED:
  392. acpi_os_printf("(Ptr to Node)\n");
  393. bytes_to_dump = sizeof(struct acpi_namespace_node);
  394. ACPI_DUMP_BUFFER(obj_desc, bytes_to_dump);
  395. break;
  396. case ACPI_DESC_TYPE_OPERAND:
  397. obj_type = ACPI_GET_OBJECT_TYPE(obj_desc);
  398. if (obj_type > ACPI_TYPE_LOCAL_MAX) {
  399. acpi_os_printf
  400. ("(Ptr to ACPI Object type %X [UNKNOWN])\n",
  401. obj_type);
  402. bytes_to_dump = 32;
  403. } else {
  404. acpi_os_printf
  405. ("(Ptr to ACPI Object type %X [%s])\n",
  406. obj_type, acpi_ut_get_type_name(obj_type));
  407. bytes_to_dump =
  408. sizeof(union acpi_operand_object);
  409. }
  410. ACPI_DUMP_BUFFER(obj_desc, bytes_to_dump);
  411. break;
  412. default:
  413. break;
  414. }
  415. /* If value is NOT an internal object, we are done */
  416. if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) !=
  417. ACPI_DESC_TYPE_OPERAND) {
  418. goto cleanup;
  419. }
  420. /*
  421. * Valid object, get the pointer to next level, if any
  422. */
  423. switch (obj_type) {
  424. case ACPI_TYPE_BUFFER:
  425. case ACPI_TYPE_STRING:
  426. /*
  427. * NOTE: takes advantage of common fields between string/buffer
  428. */
  429. bytes_to_dump = obj_desc->string.length;
  430. obj_desc = (void *)obj_desc->string.pointer;
  431. acpi_os_printf("(Buffer/String pointer %p length %X)\n",
  432. obj_desc, bytes_to_dump);
  433. ACPI_DUMP_BUFFER(obj_desc, bytes_to_dump);
  434. goto cleanup;
  435. case ACPI_TYPE_BUFFER_FIELD:
  436. obj_desc =
  437. (union acpi_operand_object *)obj_desc->buffer_field.
  438. buffer_obj;
  439. break;
  440. case ACPI_TYPE_PACKAGE:
  441. obj_desc = (void *)obj_desc->package.elements;
  442. break;
  443. case ACPI_TYPE_METHOD:
  444. obj_desc = (void *)obj_desc->method.aml_start;
  445. break;
  446. case ACPI_TYPE_LOCAL_REGION_FIELD:
  447. obj_desc = (void *)obj_desc->field.region_obj;
  448. break;
  449. case ACPI_TYPE_LOCAL_BANK_FIELD:
  450. obj_desc = (void *)obj_desc->bank_field.region_obj;
  451. break;
  452. case ACPI_TYPE_LOCAL_INDEX_FIELD:
  453. obj_desc = (void *)obj_desc->index_field.index_obj;
  454. break;
  455. default:
  456. goto cleanup;
  457. }
  458. obj_type = ACPI_TYPE_INVALID; /* Terminate loop after next pass */
  459. }
  460. cleanup:
  461. acpi_os_printf("\n");
  462. return (AE_OK);
  463. }
  464. #ifdef ACPI_FUTURE_USAGE
  465. /*******************************************************************************
  466. *
  467. * FUNCTION: acpi_ns_dump_objects
  468. *
  469. * PARAMETERS: Type - Object type to be dumped
  470. * display_type - 0 or ACPI_DISPLAY_SUMMARY
  471. * max_depth - Maximum depth of dump. Use ACPI_UINT32_MAX
  472. * for an effectively unlimited depth.
  473. * owner_id - Dump only objects owned by this ID. Use
  474. * ACPI_UINT32_MAX to match all owners.
  475. * start_handle - Where in namespace to start/end search
  476. *
  477. * RETURN: None
  478. *
  479. * DESCRIPTION: Dump typed objects within the loaded namespace.
  480. * Uses acpi_ns_walk_namespace in conjunction with acpi_ns_dump_one_object.
  481. *
  482. ******************************************************************************/
  483. void
  484. acpi_ns_dump_objects(acpi_object_type type,
  485. u8 display_type,
  486. u32 max_depth,
  487. acpi_owner_id owner_id, acpi_handle start_handle)
  488. {
  489. struct acpi_walk_info info;
  490. ACPI_FUNCTION_ENTRY();
  491. info.debug_level = ACPI_LV_TABLES;
  492. info.owner_id = owner_id;
  493. info.display_type = display_type;
  494. (void)acpi_ns_walk_namespace(type, start_handle, max_depth,
  495. ACPI_NS_WALK_NO_UNLOCK,
  496. acpi_ns_dump_one_object, (void *)&info,
  497. NULL);
  498. }
  499. #endif /* ACPI_FUTURE_USAGE */
  500. /*******************************************************************************
  501. *
  502. * FUNCTION: acpi_ns_dump_entry
  503. *
  504. * PARAMETERS: Handle - Node to be dumped
  505. * debug_level - Output level
  506. *
  507. * RETURN: None
  508. *
  509. * DESCRIPTION: Dump a single Node
  510. *
  511. ******************************************************************************/
  512. void acpi_ns_dump_entry(acpi_handle handle, u32 debug_level)
  513. {
  514. struct acpi_walk_info info;
  515. ACPI_FUNCTION_ENTRY();
  516. info.debug_level = debug_level;
  517. info.owner_id = ACPI_OWNER_ID_MAX;
  518. info.display_type = ACPI_DISPLAY_SUMMARY;
  519. (void)acpi_ns_dump_one_object(handle, 1, &info, NULL);
  520. }
  521. #ifdef ACPI_ASL_COMPILER
  522. /*******************************************************************************
  523. *
  524. * FUNCTION: acpi_ns_dump_tables
  525. *
  526. * PARAMETERS: search_base - Root of subtree to be dumped, or
  527. * NS_ALL to dump the entire namespace
  528. * max_depth - Maximum depth of dump. Use INT_MAX
  529. * for an effectively unlimited depth.
  530. *
  531. * RETURN: None
  532. *
  533. * DESCRIPTION: Dump the name space, or a portion of it.
  534. *
  535. ******************************************************************************/
  536. void acpi_ns_dump_tables(acpi_handle search_base, u32 max_depth)
  537. {
  538. acpi_handle search_handle = search_base;
  539. ACPI_FUNCTION_TRACE("ns_dump_tables");
  540. if (!acpi_gbl_root_node) {
  541. /*
  542. * If the name space has not been initialized,
  543. * there is nothing to dump.
  544. */
  545. ACPI_DEBUG_PRINT((ACPI_DB_TABLES,
  546. "namespace not initialized!\n"));
  547. return_VOID;
  548. }
  549. if (ACPI_NS_ALL == search_base) {
  550. /* Entire namespace */
  551. search_handle = acpi_gbl_root_node;
  552. ACPI_DEBUG_PRINT((ACPI_DB_TABLES, "\\\n"));
  553. }
  554. acpi_ns_dump_objects(ACPI_TYPE_ANY, ACPI_DISPLAY_OBJECTS, max_depth,
  555. ACPI_OWNER_ID_MAX, search_handle);
  556. return_VOID;
  557. }
  558. #endif /* _ACPI_ASL_COMPILER */
  559. #endif /* defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) */