mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
[NTOSKRNL] Add the CcPinReadWait and CcPinReadNoWait counters
This commit is contained in:
parent
af6c5806d5
commit
0fbdf31709
3 changed files with 17 additions and 2 deletions
|
@ -21,9 +21,13 @@ extern NPAGED_LOOKASIDE_LIST iBcbLookasideList;
|
||||||
/* Counters:
|
/* Counters:
|
||||||
* - Number of calls to CcMapData that could wait
|
* - Number of calls to CcMapData that could wait
|
||||||
* - Number of calls to CcMapData that couldn't wait
|
* - 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
|
||||||
*/
|
*/
|
||||||
ULONG CcMapDataWait = 0;
|
ULONG CcMapDataWait = 0;
|
||||||
ULONG CcMapDataNoWait = 0;
|
ULONG CcMapDataNoWait = 0;
|
||||||
|
ULONG CcPinReadWait = 0;
|
||||||
|
ULONG CcPinReadNoWait = 0;
|
||||||
|
|
||||||
/* FUNCTIONS *****************************************************************/
|
/* FUNCTIONS *****************************************************************/
|
||||||
|
|
||||||
|
@ -192,6 +196,15 @@ CcPinRead (
|
||||||
CCTRACE(CC_API_DEBUG, "FileOffset=%p FileOffset=%p Length=%lu Flags=0x%lx\n",
|
CCTRACE(CC_API_DEBUG, "FileOffset=%p FileOffset=%p Length=%lu Flags=0x%lx\n",
|
||||||
FileObject, FileOffset, Length, Flags);
|
FileObject, FileOffset, Length, Flags);
|
||||||
|
|
||||||
|
if (Flags & PIN_WAIT)
|
||||||
|
{
|
||||||
|
++CcPinReadWait;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
++CcPinReadNoWait;
|
||||||
|
}
|
||||||
|
|
||||||
if (CcMapData(FileObject, FileOffset, Length, Flags, Bcb, Buffer))
|
if (CcMapData(FileObject, FileOffset, Length, Flags, Bcb, Buffer))
|
||||||
{
|
{
|
||||||
if (CcPinMappedData(FileObject, FileOffset, Length, Flags, Bcb))
|
if (CcPinMappedData(FileObject, FileOffset, Length, Flags, Bcb))
|
||||||
|
|
|
@ -693,8 +693,8 @@ QSI_DEF(SystemPerformanceInformation)
|
||||||
Spi->CcMapDataWaitMiss = 0; /* FIXME */
|
Spi->CcMapDataWaitMiss = 0; /* FIXME */
|
||||||
|
|
||||||
Spi->CcPinMappedDataCount = 0; /* FIXME */
|
Spi->CcPinMappedDataCount = 0; /* FIXME */
|
||||||
Spi->CcPinReadNoWait = 0; /* FIXME */
|
Spi->CcPinReadNoWait = CcPinReadNoWait;
|
||||||
Spi->CcPinReadWait = 0; /* FIXME */
|
Spi->CcPinReadWait = CcPinReadWait;
|
||||||
Spi->CcPinReadNoWaitMiss = 0; /* FIXME */
|
Spi->CcPinReadNoWaitMiss = 0; /* FIXME */
|
||||||
Spi->CcPinReadWaitMiss = 0; /* FIXME */
|
Spi->CcPinReadWaitMiss = 0; /* FIXME */
|
||||||
Spi->CcCopyReadNoWait = 0; /* FIXME */
|
Spi->CcCopyReadNoWait = 0; /* FIXME */
|
||||||
|
|
|
@ -60,6 +60,8 @@ extern ULONG CcLazyWritePages;
|
||||||
extern ULONG CcLazyWriteIos;
|
extern ULONG CcLazyWriteIos;
|
||||||
extern ULONG CcMapDataWait;
|
extern ULONG CcMapDataWait;
|
||||||
extern ULONG CcMapDataNoWait;
|
extern ULONG CcMapDataNoWait;
|
||||||
|
extern ULONG CcPinReadWait;
|
||||||
|
extern ULONG CcPinReadNoWait;
|
||||||
|
|
||||||
typedef struct _PF_SCENARIO_ID
|
typedef struct _PF_SCENARIO_ID
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue