[NTOSKRNL] Return the amount of hits in system lookaside lists in ExQueryPoolUsage()

This commit is contained in:
Pierre Schweitzer 2018-12-09 18:25:11 +01:00
parent de7c959c4e
commit 4d974e56ee
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -1669,10 +1669,30 @@ ExQueryPoolUsage(OUT PULONG PagedPoolPages,
#endif
//
// FIXME: Not yet supported
// Get the amount of hits in the system lookaside lists
//
*NonPagedPoolLookasideHits += 0;
*PagedPoolLookasideHits += 0;
if (!IsListEmpty(&ExPoolLookasideListHead))
{
PLIST_ENTRY ListEntry;
for (ListEntry = ExPoolLookasideListHead.Flink;
ListEntry != &ExPoolLookasideListHead;
ListEntry = ListEntry->Flink)
{
PGENERAL_LOOKASIDE Lookaside;
Lookaside = CONTAINING_RECORD(ListEntry, GENERAL_LOOKASIDE, ListEntry);
if (Lookaside->Type == NonPagedPool)
{
*NonPagedPoolLookasideHits += Lookaside->AllocateHits;
}
else
{
*PagedPoolLookasideHits += Lookaside->AllocateHits;
}
}
}
}
VOID