[NTOSKRNL] Add the CcMapDataWait and CcMapDataNoWait counters

This commit is contained in:
Pierre Schweitzer 2018-02-24 13:28:45 +01:00
parent 1dfbed9c3d
commit 227c4321c2
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -18,6 +18,9 @@
extern NPAGED_LOOKASIDE_LIST iBcbLookasideList;
ULONG CcMapDataWait = 0;
ULONG CcMapDataNoWait = 0;
/* FUNCTIONS *****************************************************************/
/*
@ -45,6 +48,15 @@ CcMapData (
" pBcb 0x%p, pBuffer 0x%p)\n", FileObject, FileOffset->QuadPart,
Length, Flags, pBcb, pBuffer);
if (Flags & MAP_WAIT)
{
++CcMapDataWait;
}
else
{
++CcMapDataNoWait;
}
ReadOffset = FileOffset->QuadPart;
ASSERT(FileObject);