mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOSKRNL] Add the CcPinMappedDataCount counter
This commit is contained in:
parent
1afcbbd125
commit
3d13a464f7
3 changed files with 6 additions and 1 deletions
|
@ -23,11 +23,13 @@ extern NPAGED_LOOKASIDE_LIST iBcbLookasideList;
|
|||
* - Number of calls to CcMapData that couldn't wait
|
||||
* - Number of calls to CcPinRead that could wait
|
||||
* - Number of calls to CcPinRead that couldn't wait
|
||||
* - Number of calls to CcPinMappedDataCount
|
||||
*/
|
||||
ULONG CcMapDataWait = 0;
|
||||
ULONG CcMapDataNoWait = 0;
|
||||
ULONG CcPinReadWait = 0;
|
||||
ULONG CcPinReadNoWait = 0;
|
||||
ULONG CcPinMappedDataCount = 0;
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
|
@ -429,6 +431,8 @@ CcPinMappedData (
|
|||
|
||||
iBcb = *Bcb;
|
||||
|
||||
++CcPinMappedDataCount;
|
||||
|
||||
Result = CcpPinData(SharedCacheMap, FileOffset, Length, Flags, Bcb, &Buffer);
|
||||
if (Result)
|
||||
{
|
||||
|
|
|
@ -767,7 +767,7 @@ QSI_DEF(SystemPerformanceInformation)
|
|||
Spi->CcMapDataNoWaitMiss = 0; /* FIXME */
|
||||
Spi->CcMapDataWaitMiss = 0; /* FIXME */
|
||||
|
||||
Spi->CcPinMappedDataCount = 0; /* FIXME */
|
||||
Spi->CcPinMappedDataCount = CcPinMappedDataCount;
|
||||
Spi->CcPinReadNoWait = CcPinReadNoWait;
|
||||
Spi->CcPinReadWait = CcPinReadWait;
|
||||
Spi->CcPinReadNoWaitMiss = 0; /* FIXME */
|
||||
|
|
|
@ -62,6 +62,7 @@ extern ULONG CcMapDataWait;
|
|||
extern ULONG CcMapDataNoWait;
|
||||
extern ULONG CcPinReadWait;
|
||||
extern ULONG CcPinReadNoWait;
|
||||
extern ULONG CcPinMappedDataCount;
|
||||
extern ULONG CcDataPages;
|
||||
extern ULONG CcDataFlushes;
|
||||
|
||||
|
|
Loading…
Reference in a new issue