Skip to content

Commit 1387cdd

Browse files
acpibobrafaeljw
authored andcommitted
ACPICA: Debugger: Add count of namespace nodes after namespace dump
A bit of additional information which is usefull during debug. Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Erik Schmauss <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a53eaef commit 1387cdd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/acpi/acpica/dbnames.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ acpi_db_walk_and_match_name(acpi_handle obj_handle,
322322
acpi_os_printf("Could Not get pathname for object %p\n",
323323
obj_handle);
324324
} else {
325+
info.count = 0;
325326
info.owner_id = ACPI_OWNER_ID_MAX;
326327
info.debug_level = ACPI_UINT32_MAX;
327328
info.display_type = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT;

drivers/acpi/acpica/nsdump.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ acpi_ns_dump_one_object(acpi_handle obj_handle,
170170
}
171171

172172
type = this_node->type;
173+
info->count++;
173174

174175
/* Check if the owner matches */
175176

@@ -639,6 +640,7 @@ acpi_ns_dump_objects(acpi_object_type type,
639640
return;
640641
}
641642

643+
info.count = 0;
642644
info.debug_level = ACPI_LV_TABLES;
643645
info.owner_id = owner_id;
644646
info.display_type = display_type;
@@ -649,6 +651,7 @@ acpi_ns_dump_objects(acpi_object_type type,
649651
acpi_ns_dump_one_object, NULL,
650652
(void *)&info, NULL);
651653

654+
acpi_os_printf("\nNamespace node count: %u\n\n", info.count);
652655
(void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
653656
}
654657

0 commit comments

Comments
 (0)