Skip to content

Commit 894b5cc

Browse files
acpibobrafaeljw
authored andcommitted
ACPICA: acpiexec: Add option to dump extra info for memory leaks
ACPICA commit f77565e28b90ee7e06f53a474183ef72300c3574 Dump entire object/buffer for any memory leaks detected by the object/cache tracking mechanism. Link: acpica/acpica@f77565e2 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f13c274 commit 894b5cc

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

drivers/acpi/acpica/acglobal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ ACPI_GLOBAL(struct acpi_memory_list *, acpi_gbl_global_list);
164164
ACPI_GLOBAL(struct acpi_memory_list *, acpi_gbl_ns_node_list);
165165
ACPI_GLOBAL(u8, acpi_gbl_display_final_mem_stats);
166166
ACPI_GLOBAL(u8, acpi_gbl_disable_mem_tracking);
167+
ACPI_GLOBAL(u8, acpi_gbl_verbose_leak_dump);
167168
#endif
168169

169170
/*****************************************************************************

drivers/acpi/acpica/utdecode.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const char *acpi_ut_get_node_name(void *object)
284284

285285
static const char *acpi_gbl_desc_type_names[] = {
286286
/* 00 */ "Not a Descriptor",
287-
/* 01 */ "Cached",
287+
/* 01 */ "Cached Object",
288288
/* 02 */ "State-Generic",
289289
/* 03 */ "State-Update",
290290
/* 04 */ "State-Package",
@@ -295,10 +295,10 @@ static const char *acpi_gbl_desc_type_names[] = {
295295
/* 09 */ "State-Result",
296296
/* 10 */ "State-Notify",
297297
/* 11 */ "State-Thread",
298-
/* 12 */ "Walk",
299-
/* 13 */ "Parser",
300-
/* 14 */ "Operand",
301-
/* 15 */ "Node"
298+
/* 12 */ "Tree Walk State",
299+
/* 13 */ "Parse Tree Op",
300+
/* 14 */ "Operand Object",
301+
/* 15 */ "Namespace Node"
302302
};
303303

304304
const char *acpi_ut_get_descriptor_name(void *object)

drivers/acpi/acpica/uttrack.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,18 @@ void acpi_ut_dump_allocations(u32 component, const char *module)
588588
acpi_ut_get_descriptor_name
589589
(descriptor));
590590

591+
/* Optional object hex dump */
592+
593+
if (acpi_gbl_verbose_leak_dump) {
594+
acpi_os_printf("\n");
595+
acpi_ut_dump_buffer((u8 *)
596+
descriptor,
597+
element->
598+
size,
599+
DB_BYTE_DISPLAY,
600+
0);
601+
}
602+
591603
/* Validate the descriptor type using Type field and length */
592604

593605
descriptor_type = 0; /* Not a valid descriptor type */

0 commit comments

Comments
 (0)