VirtualBox

Changeset 45349 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 4, 2013 7:51:49 PM (12 years ago)
Author:
vboxsync
Message:

VMM/VMMR0: Very important stats.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r45347 r45349  
    29812981        Assert(CPUMIsGuestDebugStateActive(pVCpu));
    29822982        Assert(fInterceptMovDRx == false);
     2983        STAM_COUNTER_INC(&pVCpu->hm.s.StatDRxArmed);
    29832984    }
    29842985    else if (    CPUMGetHyperDR7(pVCpu) & (X86_DR7_ENABLED_MASK | X86_DR7_GD)
     
    55485549    }
    55495550
    5550     STAM_COUNTER_INC(&pVCpu->hm.s.StatSwitchToR3);
     5551    STAM_COUNTER_INC(&pVCpu->hm.s.StatSwitchLongJmpToR3);
    55515552}
    55525553
     
    55855586    /* Sync. the guest state. */
    55865587    hmR0VmxLongJmpToRing3(pVM, pVCpu, pMixedCtx, rcExit);
    5587 
    5588     /* We're going back to ring-3, clear the flag that we need to go back to ring-3. */
     5588    STAM_COUNTER_DEC(&pVCpu->hm.s.StatSwitchLongJmpToR3);
     5589
    55895590    VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TO_R3);
    5590 
    5591     /* Signal changes to the recompiler. */
    55925591    CPUMSetChangedFlags(pVCpu,  CPUM_CHANGED_SYSENTER_MSR
    55935592                              | CPUM_CHANGED_LDTR
     
    56045603        pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_HOST_CONTEXT | HM_CHANGED_ALL_GUEST;
    56055604
     5605    STAM_COUNTER_INC(&pVCpu->hm.s.StatSwitchExitToR3);
    56065606    VMMRZCallRing3Enable(pVCpu);
    56075607}
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r45305 r45349  
    582582        HM_REG_COUNTER(&pVCpu->hm.s.StatSwitchGuestIrq,         "/HM/CPU%d/Switch/IrqPending");
    583583        HM_REG_COUNTER(&pVCpu->hm.s.StatSwitchHmToR3FF,         "/HM/CPU%d/Switch/HmToR3FF");
    584         HM_REG_COUNTER(&pVCpu->hm.s.StatSwitchToR3,             "/HM/CPU%d/Switch/ToR3");
     584        HM_REG_COUNTER(&pVCpu->hm.s.StatSwitchExitToR3,         "/HM/CPU%d/Switch/ExitToR3");
     585        HM_REG_COUNTER(&pVCpu->hm.s.StatSwitchLongJmpToR3,      "/HM/CPU%d/Switch/LongJmpToR3");
    585586
    586587        HM_REG_COUNTER(&pVCpu->hm.s.StatIntInject,              "/HM/CPU%d/Irq/Inject");
  • trunk/src/VBox/VMM/include/HMInternal.h

    r45235 r45349  
    882882    STAMCOUNTER             StatSwitchGuestIrq;
    883883    STAMCOUNTER             StatSwitchHmToR3FF;
    884     STAMCOUNTER             StatSwitchToR3;
     884    STAMCOUNTER             StatSwitchExitToR3;
     885    STAMCOUNTER             StatSwitchLongJmpToR3;
    885886
    886887    STAMCOUNTER             StatTscOffset;
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