Changeset 54454 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Feb 24, 2015 3:16:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
r54448 r54454 2619 2619 * VERR_TRY_AGAIN on timeout. */ 2620 2620 int32_t rcVerify; 2621 #ifdef TSCDELTA_VERIFY_WITH_STATS 2621 2622 /** The maximum difference between TSC read during delta verification. */ 2622 2623 int64_t cMaxVerifyTscTicks; … … 2626 2627 * Negative value means the worker is behind the master. */ 2627 2628 int64_t iVerifyBadTscDiff; 2629 #endif 2628 2630 2629 2631 /** Padding to make sure the uVar1 is in its own cache line. */ … … 3371 3373 * Process the data. 3372 3374 */ 3375 #ifdef TSCDELTA_VERIFY_WITH_STATS 3373 3376 pArgs->cMaxVerifyTscTicks = INT64_MIN; 3374 3377 pArgs->cMinVerifyTscTicks = INT64_MAX; 3375 3378 pArgs->iVerifyBadTscDiff = 0; 3379 #endif 3376 3380 ASMAtomicWriteS32(&pArgs->rcVerify, VINF_SUCCESS); 3377 3381 uTscWorker = 0; … … 3384 3388 { 3385 3389 iDiff = uTscMaster - uTscWorker; 3390 #ifdef TSCDELTA_VERIFY_WITH_STATS 3386 3391 if (iDiff > pArgs->cMaxVerifyTscTicks) 3387 3392 pArgs->cMaxVerifyTscTicks = iDiff; 3388 3393 if (iDiff < pArgs->cMinVerifyTscTicks) 3389 3394 pArgs->cMinVerifyTscTicks = iDiff; 3395 #endif 3390 3396 if (iDiff < 0) 3391 3397 { 3398 #ifdef TSCDELTA_VERIFY_WITH_STATS 3392 3399 pArgs->iVerifyBadTscDiff = -iDiff; 3400 #endif 3393 3401 ASMAtomicWriteS32(&pArgs->rcVerify, VERR_OUT_OF_RANGE); 3394 3402 break; … … 3399 3407 uTscWorker = pArgs->auVerifyWorkerTscs[i] - iWorkerTscDelta; 3400 3408 iDiff = uTscWorker - uTscMaster; 3409 #ifdef TSCDELTA_VERIFY_WITH_STATS 3401 3410 if (iDiff > pArgs->cMaxVerifyTscTicks) 3402 3411 pArgs->cMaxVerifyTscTicks = iDiff; 3403 3412 if (iDiff < pArgs->cMinVerifyTscTicks) 3404 3413 pArgs->cMinVerifyTscTicks = iDiff; 3414 #endif 3405 3415 if (iDiff < 0) 3406 3416 { 3417 #ifdef TSCDELTA_VERIFY_WITH_STATS 3407 3418 pArgs->iVerifyBadTscDiff = iDiff; 3419 #endif 3408 3420 ASMAtomicWriteS32(&pArgs->rcVerify, VERR_OUT_OF_RANGE); 3409 3421 break;
Note:
See TracChangeset
for help on using the changeset viewer.