https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bb63841b575e061ded4f0…
commit bb63841b575e061ded4f02470b4d5cf8ac3e4bd6
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Fri Dec 29 08:58:11 2017 +0100
[NTOSKRNL] Prettify the memory dumper output and add number of allocs
---
ntoskrnl/mm/ARM3/expool.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/mm/ARM3/expool.c b/ntoskrnl/mm/ARM3/expool.c
index 129b3d0de6..760956ba25 100644
--- a/ntoskrnl/mm/ARM3/expool.c
+++ b/ntoskrnl/mm/ARM3/expool.c
@@ -492,6 +492,15 @@ MiDumpNonPagedPoolConsumers(BOOLEAN CalledFromDbg)
DPRINT1("---------------------\n");
DPRINT1("Out of memory dumper!\n");
}
+ else
+ {
+ KdbpPrint("Pool Used:\n");
+ }
+
+ //
+ // Print table header
+ //
+ MiDumperPrint(CalledFromDbg, "Tag\t\tAllocs\t\tUsed\n");
//
// We'll extract allocations for all the tracked pools
@@ -527,16 +536,16 @@ MiDumpNonPagedPoolConsumers(BOOLEAN CalledFromDbg)
//
// Print in reversed order to match what is in source code
//
- MiDumperPrint(CalledFromDbg, "Tag: '%c%c%c%c', Size:
%ld\n", Tag[3], Tag[2], Tag[1], Tag[0], TableEntry->NonPagedBytes);
+ MiDumperPrint(CalledFromDbg,
"'%c%c%c%c'\t\t%ld\t\t%ld\n", Tag[3], Tag[2], Tag[1], Tag[0],
TableEntry->NonPagedAllocs, TableEntry->NonPagedBytes);
}
else
{
- MiDumperPrint(CalledFromDbg, "Tag: %x, Size: %ld\n",
TableEntry->Key, TableEntry->NonPagedBytes);
+ MiDumperPrint(CalledFromDbg, "%x\t%ld\t\t%ld\n",
TableEntry->Key, TableEntry->NonPagedAllocs, TableEntry->NonPagedBytes);
}
}
else
{
- MiDumperPrint(CalledFromDbg, "Anon, Size: %ld\n",
TableEntry->NonPagedBytes);
+ MiDumperPrint(CalledFromDbg, "Anon\t\t%ld\t\t%ld\n",
TableEntry->NonPagedAllocs, TableEntry->NonPagedBytes);
}
}
}