Changeset 64671 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Nov 15, 2016 12:53:00 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r64664 r64671 411 411 unsigned cErrors; 412 412 /** @} */ 413 414 /** @name Statistics. 415 * @{ */ 416 /** how many attempts were made to query a direct buffer pointer from the 417 * device/driver above. */ 418 STAMCOUNTER StatQueryBufAttempts; 419 /** How many attempts to query a direct buffer pointer succeeded. */ 420 STAMCOUNTER StatQueryBufSuccess; 421 /** @} */ 413 422 } VBOXDISK; 414 423 … … 2929 2938 void *pvBuf = NULL; 2930 2939 size_t cbBuf = 0; 2940 2941 STAM_COUNTER_INC(&pThis->StatQueryBufAttempts); 2931 2942 rc = pThis->pDrvMediaExPort->pfnIoReqQueryBuf(pThis->pDrvMediaExPort, pIoReq, &pIoReq->abAlloc[0], 2932 2943 &pvBuf, &cbBuf); 2933 2944 if (RT_SUCCESS(rc)) 2934 2945 { 2946 STAM_COUNTER_INC(&pThis->StatQueryBufSuccess); 2935 2947 pIoReq->ReadWrite.cbIoBuf = cbBuf; 2936 2948 pIoReq->ReadWrite.fDirectBuf = true; … … 4391 4403 if (pThis->aIoReqAllocBins[i].hMtxLstIoReqAlloc != NIL_RTSEMFASTMUTEX) 4392 4404 RTSemFastMutexDestroy(pThis->aIoReqAllocBins[i].hMtxLstIoReqAlloc); 4405 4406 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatQueryBufAttempts); 4407 PDMDrvHlpSTAMDeregister(pDrvIns, &pThis->StatQueryBufSuccess); 4393 4408 } 4394 4409 … … 5381 5396 } 5382 5397 } /* !fEmptyDrive */ 5398 5399 PDMDrvHlpSTAMRegCounterEx(pDrvIns, &pThis->StatQueryBufAttempts, "QueryBufAttempts", 5400 STAMUNIT_COUNT, "Number of attempts to query a direct buffer."); 5401 PDMDrvHlpSTAMRegCounterEx(pDrvIns, &pThis->StatQueryBufSuccess, "QueryBufSuccess", 5402 STAMUNIT_COUNT, "Number of succeeded attempts to query a direct buffer."); 5383 5403 5384 5404 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.