Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: Added option to display memory statistics upon termination.

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Bob Moore and committed by
Len Brown
d41eb99b afbb9e65

+14
+9
drivers/acpi/utilities/utalloc.c
··· 42 42 */ 43 43 44 44 #include <acpi/acpi.h> 45 + #include <acpi/acdebug.h> 45 46 46 47 #define _COMPONENT ACPI_UTILITIES 47 48 ACPI_MODULE_NAME("utalloc") ··· 143 142 144 143 acpi_status acpi_ut_delete_caches(void) 145 144 { 145 + #ifdef ACPI_DBG_TRACK_ALLOCATIONS 146 + char buffer[7]; 147 + 148 + if (acpi_gbl_display_final_mem_stats) { 149 + ACPI_STRCPY(buffer, "MEMORY"); 150 + acpi_db_display_statistics(buffer); 151 + } 152 + #endif 146 153 147 154 (void)acpi_os_delete_cache(acpi_gbl_namespace_cache); 148 155 acpi_gbl_namespace_cache = NULL;
+4
drivers/acpi/utilities/utglobal.c
··· 727 727 acpi_gbl_lowest_stack_pointer = ACPI_SIZE_MAX; 728 728 #endif 729 729 730 + #ifdef ACPI_DBG_TRACK_ALLOCATIONS 731 + acpi_gbl_display_final_mem_stats = FALSE; 732 + #endif 733 + 730 734 return_VOID; 731 735 } 732 736
+1
include/acpi/acglobal.h
··· 200 200 201 201 ACPI_EXTERN struct acpi_memory_list *acpi_gbl_global_list; 202 202 ACPI_EXTERN struct acpi_memory_list *acpi_gbl_ns_node_list; 203 + ACPI_EXTERN u8 acpi_gbl_display_final_mem_stats; 203 204 #endif 204 205 205 206 /* Object caches */