Author: tfaber
Date: Mon May 22 13:37:44 2017
New Revision: 74627
URL:
http://svn.reactos.org/svn/reactos?rev=74627&view=rev
Log:
[NTOS:MM]
- In MmDumpArmPfnDatabase, actually print all usage buckets to provide a complete and
verifiable view of the database
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/mminit.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/mminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/mminit.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/mminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/mminit.c [iso-8859-1] Mon May 22 13:37:44 2017
@@ -1563,6 +1563,7 @@
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 @@
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 @@
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);
}