mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:32:56 +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
2 changed files with 7 additions and 13 deletions
|
@ -185,7 +185,7 @@ static const struct
|
||||||
{ "kmsg", "kmsg", "Kernel dmesg. Alias for dmesg.", KdbpCmdDmesg },
|
{ "kmsg", "kmsg", "Kernel dmesg. Alias for dmesg.", KdbpCmdDmesg },
|
||||||
{ "help", "help", "Display help screen.", KdbpCmdHelp },
|
{ "help", "help", "Display help screen.", KdbpCmdHelp },
|
||||||
{ "!pool", "!pool [Address [Flags]]", "Display information about pool allocations.", ExpKdbgExtPool },
|
{ "!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 *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
|
@ -480,7 +480,7 @@ ExpTagAllowPrint(CHAR Tag)
|
||||||
else DPRINT1(fmt, ##__VA_ARGS__)
|
else DPRINT1(fmt, ##__VA_ARGS__)
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
MiDumpNonPagedPoolConsumers(BOOLEAN CalledFromDbg)
|
MiDumpPoolConsumers(BOOLEAN CalledFromDbg)
|
||||||
{
|
{
|
||||||
SIZE_T i;
|
SIZE_T i;
|
||||||
|
|
||||||
|
@ -1747,12 +1747,9 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
{
|
{
|
||||||
#if DBG
|
#if DBG
|
||||||
//
|
//
|
||||||
// If non paged backed, display current consumption
|
// Out of memory, display current consumption
|
||||||
//
|
//
|
||||||
if ((OriginalType & BASE_POOL_TYPE_MASK) == NonPagedPool)
|
MiDumpPoolConsumers(FALSE);
|
||||||
{
|
|
||||||
MiDumpNonPagedPoolConsumers(FALSE);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -2083,12 +2080,9 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType,
|
||||||
{
|
{
|
||||||
#if DBG
|
#if DBG
|
||||||
//
|
//
|
||||||
// If non paged backed, display current consumption
|
// Out of memory, display current consumption
|
||||||
//
|
//
|
||||||
if ((OriginalType & BASE_POOL_TYPE_MASK) == NonPagedPool)
|
MiDumpPoolConsumers(FALSE);
|
||||||
{
|
|
||||||
MiDumpNonPagedPoolConsumers(FALSE);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -2948,7 +2942,7 @@ ExpKdbgExtPoolUsed(
|
||||||
ULONG Argc,
|
ULONG Argc,
|
||||||
PCHAR Argv[])
|
PCHAR Argv[])
|
||||||
{
|
{
|
||||||
MiDumpNonPagedPoolConsumers(TRUE);
|
MiDumpPoolConsumers(TRUE);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue