VirtualBox

Changeset 54454 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Feb 24, 2015 3:16:57 PM (10 years ago)
Author:
vboxsync
Message:

Disable the statistics collected in supdrvTscDeltaVerify.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r54448 r54454  
    26192619     * VERR_TRY_AGAIN on timeout. */
    26202620    int32_t                     rcVerify;
     2621#ifdef TSCDELTA_VERIFY_WITH_STATS
    26212622    /** The maximum difference between TSC read during delta verification. */
    26222623    int64_t                     cMaxVerifyTscTicks;
     
    26262627     * Negative value means the worker is behind the master.  */
    26272628    int64_t                     iVerifyBadTscDiff;
     2629#endif
    26282630
    26292631    /** Padding to make sure the uVar1 is in its own cache line. */
     
    33713373             * Process the data.
    33723374             */
     3375#ifdef TSCDELTA_VERIFY_WITH_STATS
    33733376            pArgs->cMaxVerifyTscTicks = INT64_MIN;
    33743377            pArgs->cMinVerifyTscTicks = INT64_MAX;
    33753378            pArgs->iVerifyBadTscDiff  = 0;
     3379#endif
    33763380            ASMAtomicWriteS32(&pArgs->rcVerify, VINF_SUCCESS);
    33773381            uTscWorker = 0;
     
    33843388                {
    33853389                    iDiff = uTscMaster - uTscWorker;
     3390#ifdef TSCDELTA_VERIFY_WITH_STATS
    33863391                    if (iDiff > pArgs->cMaxVerifyTscTicks)
    33873392                        pArgs->cMaxVerifyTscTicks = iDiff;
    33883393                    if (iDiff < pArgs->cMinVerifyTscTicks)
    33893394                        pArgs->cMinVerifyTscTicks = iDiff;
     3395#endif
    33903396                    if (iDiff < 0)
    33913397                    {
     3398#ifdef TSCDELTA_VERIFY_WITH_STATS
    33923399                        pArgs->iVerifyBadTscDiff = -iDiff;
     3400#endif
    33933401                        ASMAtomicWriteS32(&pArgs->rcVerify, VERR_OUT_OF_RANGE);
    33943402                        break;
     
    33993407                uTscWorker = pArgs->auVerifyWorkerTscs[i] - iWorkerTscDelta;
    34003408                iDiff = uTscWorker - uTscMaster;
     3409#ifdef TSCDELTA_VERIFY_WITH_STATS
    34013410                if (iDiff > pArgs->cMaxVerifyTscTicks)
    34023411                    pArgs->cMaxVerifyTscTicks = iDiff;
    34033412                if (iDiff < pArgs->cMinVerifyTscTicks)
    34043413                    pArgs->cMinVerifyTscTicks = iDiff;
     3414#endif
    34053415                if (iDiff < 0)
    34063416                {
     3417#ifdef TSCDELTA_VERIFY_WITH_STATS
    34073418                    pArgs->iVerifyBadTscDiff = iDiff;
     3419#endif
    34083420                    ASMAtomicWriteS32(&pArgs->rcVerify, VERR_OUT_OF_RANGE);
    34093421                    break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette