VirtualBox

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


Ignore:
Timestamp:
Dec 19, 2008 2:11:07 PM (16 years ago)
Author:
vboxsync
Message:

Profiling of the 32/64 switcher.

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

Legend:

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

    r15648 r15694  
    282282        AssertRC(rc);
    283283
     284# if HC_ARCH_BITS == 32 && defined(VBOX_ENABLE_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
     285        rc = STAMR3RegisterF(pVM, &pVCpu->hwaccm.s.StatWorldSwitch3264, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, "Profiling of the 32/64 switcher",
     286                             "/PROF/HWACCM/CPU%d/Switcher3264", i);
     287        AssertRC(rc);
     288# endif
     289
    284290# define HWACCM_REG_COUNTER(a, b) \
    285291        rc = STAMR3RegisterF(pVM, a, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Profiling of vmlaunch", b, i); \
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r15588 r15694  
    552552#endif
    553553    STAMPROFILEADV          StatInGC;
     554
     555#if HC_ARCH_BITS == 32 && defined(VBOX_ENABLE_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
     556    STAMPROFILEADV          StatWorldSwitch3264;
     557#endif
    554558
    555559    STAMCOUNTER             StatIntInject;
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r15439 r15694  
    11191119    pCtx = CPUMQueryGuestCtxPtrEx(pVM, pVCpu);
    11201120
     1121    STAM_PROFILE_ADV_START(&pVCpu->hwaccm.s.StatWorldSwitch3264, z);   
    11211122    if (pVM->hwaccm.s.vmx.fSupported)
    1122         return VMXR0Execute64BitsHandler(pVM, pVCpu, pCtx, pVM->hwaccm.s.pfnTest64, 5, &aParam[0]);
    1123 
    1124     return SVMR0Execute64BitsHandler(pVM, pVCpu, pCtx, pVM->hwaccm.s.pfnTest64, 5, &aParam[0]);
     1123        rc  = VMXR0Execute64BitsHandler(pVM, pVCpu, pCtx, pVM->hwaccm.s.pfnTest64, 5, &aParam[0]);
     1124    else
     1125        rc = SVMR0Execute64BitsHandler(pVM, pVCpu, pCtx, pVM->hwaccm.s.pfnTest64, 5, &aParam[0]);
     1126    STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatWorldSwitch3264, z);
     1127    return rc;
    11251128}
    11261129# endif
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