mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[NTOS:MM]
- In MmDumpArmPfnDatabase, actually print all usage buckets to provide a complete and verifiable view of the database svn path=/trunk/; revision=74627
This commit is contained in:
parent
d855861c41
commit
ea547f81f4
1 changed files with 18 additions and 1 deletions
|
@ -1563,6 +1563,7 @@ MmDumpArmPfnDatabase(IN BOOLEAN StatusOnly)
|
|||
|
||||
DbgPrint("Active: %5d pages\t[%6d KB]\n", ActivePages, (ActivePages << PAGE_SHIFT) / 1024);
|
||||
DbgPrint("Free: %5d pages\t[%6d KB]\n", FreePages, (FreePages << PAGE_SHIFT) / 1024);
|
||||
DbgPrint("Other: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
DbgPrint("-----------------------------------------\n");
|
||||
#if MI_TRACE_PFNS
|
||||
OtherPages = UsageBucket[MI_USAGE_BOOT_DRIVER];
|
||||
|
@ -1571,12 +1572,26 @@ MmDumpArmPfnDatabase(IN BOOLEAN StatusOnly)
|
|||
DbgPrint("System Drivers: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_PFN_DATABASE];
|
||||
DbgPrint("PFN Database: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_PAGE_TABLE] + UsageBucket[MI_USAGE_LEGACY_PAGE_DIRECTORY];
|
||||
OtherPages = UsageBucket[MI_USAGE_PAGE_TABLE] + UsageBucket[MI_USAGE_PAGE_DIRECTORY] + UsageBucket[MI_USAGE_LEGACY_PAGE_DIRECTORY];
|
||||
DbgPrint("Page Tables: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_SYSTEM_PTE];
|
||||
DbgPrint("System PTEs: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_VAD];
|
||||
DbgPrint("VADs: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_CONTINOUS_ALLOCATION];
|
||||
DbgPrint("Continuous Allocs: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_MDL];
|
||||
DbgPrint("MDLs: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_NONPAGED_POOL] + UsageBucket[MI_USAGE_NONPAGED_POOL_EXPANSION];
|
||||
DbgPrint("NonPaged Pool: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_PAGED_POOL];
|
||||
DbgPrint("Paged Pool: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_DEMAND_ZERO];
|
||||
DbgPrint("Demand Zero: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_ZERO_LOOP];
|
||||
DbgPrint("Zero Loop: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_PEB_TEB];
|
||||
DbgPrint("PEB/TEB: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_KERNEL_STACK] + UsageBucket[MI_USAGE_KERNEL_STACK_EXPANSION];
|
||||
DbgPrint("Kernel Stack: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_INIT_MEMORY];
|
||||
|
@ -1585,6 +1600,8 @@ MmDumpArmPfnDatabase(IN BOOLEAN StatusOnly)
|
|||
DbgPrint("Sections: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_CACHE];
|
||||
DbgPrint("Cache: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
OtherPages = UsageBucket[MI_USAGE_FREE_PAGE];
|
||||
DbgPrint("Free: %5d pages\t[%6d KB]\n", OtherPages, (OtherPages << PAGE_SHIFT) / 1024);
|
||||
#endif
|
||||
KeLowerIrql(OldIrql);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue