VirtualBox

Changeset 9082 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 23, 2008 1:14:15 PM (17 years ago)
Author:
vboxsync
Message:

More statistics

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r9062 r9082  
    160160    STAM_REG(pVM, &pVM->hwaccm.s.StatNoFlushTLBWorldSwitch, STAMTYPE_COUNTER, "/HWACCM/Flush/TLB/Skipped", STAMUNIT_OCCURENCES,    "Nr of occurances");
    161161    STAM_REG(pVM, &pVM->hwaccm.s.StatFlushASID,             STAMTYPE_COUNTER, "/HWACCM/Flush/TLB/ASID",    STAMUNIT_OCCURENCES,    "Nr of occurances");
     162
     163    STAM_REG(pVM, &pVM->hwaccm.s.StatTSCOffset,             STAMTYPE_COUNTER, "/HWACCM/TSC/Offset",        STAMUNIT_OCCURENCES,    "Nr of occurances");
     164    STAM_REG(pVM, &pVM->hwaccm.s.StatTSCIntercept,          STAMTYPE_COUNTER, "/HWACCM/TSC/Intercept",     STAMUNIT_OCCURENCES,    "Nr of occurances");
    162165
    163166    pVM->hwaccm.s.pStatExitReason = 0;
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r9033 r9082  
    331331    STAMCOUNTER             StatSwitchToR3;
    332332
     333    STAMCOUNTER             StatTSCOffset;
     334    STAMCOUNTER             StatTSCIntercept;
     335
    333336    STAMCOUNTER             StatExitReasonNPF;
    334337    R3PTRTYPE(PSTAMCOUNTER) pStatExitReason;
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r9075 r9082  
    684684    /** TSC offset. */
    685685    if (TMCpuTickCanUseRealTSC(pVM, &pVMCB->ctrl.u64TSCOffset))
     686    {
    686687        pVMCB->ctrl.u32InterceptCtrl1 &= ~SVM_CTRL1_INTERCEPT_RDTSC;
     688        STAM_COUNTER_INC(&pVM->hwaccm.s.StatTSCOffset);
     689    }
    687690    else
     691    {
    688692        pVMCB->ctrl.u32InterceptCtrl1 |= SVM_CTRL1_INTERCEPT_RDTSC;
     693        STAM_COUNTER_INC(&pVM->hwaccm.s.StatTSCIntercept);
     694    }
    689695
    690696    /** @todo 64 bits stuff (?):
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