mirror of
https://github.com/reactos/reactos.git
synced 2024-09-27 21:16:34 +00:00
[NTOSKRNL] Now that the memory dumper handles paged pool, make use of it in any situation
This commit is contained in:
parent
1433ade827
commit
879d8f2104
|
@ -185,7 +185,7 @@ static const struct
|
|||
{ "kmsg", "kmsg", "Kernel dmesg. Alias for dmesg.", KdbpCmdDmesg },
|
||||
{ "help", "help", "Display help screen.", KdbpCmdHelp },
|
||||
{ "!pool", "!pool [Address [Flags]]", "Display information about pool allocations.", ExpKdbgExtPool },
|
||||
{ "!poolused", "!poolused", "Display non-paged pool usage.", ExpKdbgExtPoolUsed },
|
||||
{ "!poolused", "!poolused", "Display pool usage.", ExpKdbgExtPoolUsed },
|
||||
};
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
|
|
@ -480,7 +480,7 @@ ExpTagAllowPrint(CHAR Tag)
|
|||
else DPRINT1(fmt, ##__VA_ARGS__)
|
||||
|
||||
VOID
|
||||
MiDumpNonPagedPoolConsumers(BOOLEAN CalledFromDbg)
|
||||
MiDumpPoolConsumers(BOOLEAN CalledFromDbg)
|
||||
{
|
||||
SIZE_T i;
|
||||
|
||||
|
@ -1747,12 +1747,9 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
|||
{
|
||||
#if DBG
|
||||
//
|
||||
// If non paged backed, display current consumption
|
||||
// Out of memory, display current consumption
|
||||
//
|
||||
if ((OriginalType & BASE_POOL_TYPE_MASK) == NonPagedPool)
|
||||
{
|
||||
MiDumpNonPagedPoolConsumers(FALSE);
|
||||
}
|
||||
MiDumpPoolConsumers(FALSE);
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -2083,12 +2080,9 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
|||
{
|
||||
#if DBG
|
||||
//
|
||||
// If non paged backed, display current consumption
|
||||
// Out of memory, display current consumption
|
||||
//
|
||||
if ((OriginalType & BASE_POOL_TYPE_MASK) == NonPagedPool)
|
||||
{
|
||||
MiDumpNonPagedPoolConsumers(FALSE);
|
||||
}
|
||||
MiDumpPoolConsumers(FALSE);
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -2948,7 +2942,7 @@ ExpKdbgExtPoolUsed(
|
|||
ULONG Argc,
|
||||
PCHAR Argv[])
|
||||
{
|
||||
MiDumpNonPagedPoolConsumers(TRUE);
|
||||
MiDumpPoolConsumers(TRUE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue