VirtualBox

Changeset 104941 in vbox


Ignore:
Timestamp:
Jun 17, 2024 1:14:56 PM (8 months ago)
Author:
vboxsync
Message:

VMM/IEM: Stats. bugref:10687

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r104933 r104941  
    59755975                               size_t cbMem, RTGCPTR GCPtrFirst, uint32_t fAccess)
    59765976{
     5977    STAM_COUNTER_INC(&pVCpu->iem.s.StatMemBounceBufferCrossPage);
    59775978    Assert(cbMem <= GUEST_PAGE_SIZE);
    59785979
     
    61116112                                              RTGCPHYS GCPhysFirst, uint32_t fAccess, VBOXSTRICTRC rcMap)
    61126113{
     6114    STAM_COUNTER_INC(&pVCpu->iem.s.StatMemBounceBufferMapPhys);
     6115
    61136116    /*
    61146117     * Filter out conditions we can handle and the ones which shouldn't happen.
     
    62346237                       uint32_t fAccess, uint32_t uAlignCtl) RT_NOEXCEPT
    62356238{
     6239    STAM_COUNTER_INC(&pVCpu->iem.s.StatMemMapNoJmp);
     6240
    62366241    /*
    62376242     * Check the input and figure out which mapping entry to use.
     
    66176622                   uint32_t uAlignCtl) IEM_NOEXCEPT_MAY_LONGJMP
    66186623{
     6624    STAM_COUNTER_INC(&pVCpu->iem.s.StatMemMapJmp);
     6625
    66196626    /*
    66206627     * Check the input, check segment access and adjust address
  • trunk/src/VBox/VMM/VMMR3/IEMR3.cpp

    r104468 r104941  
    730730
    731731# endif /* VBOX_WITH_IEM_NATIVE_RECOMPILER */
     732
     733
     734# ifdef VBOX_WITH_STATISTICS
     735        STAMR3RegisterF(pVM, &pVCpu->iem.s.StatMemMapJmp,       STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
     736                        "iemMemMapJmp calls",                   "/IEM/CPU%u/iemMemMapJmp", idCpu);
     737        STAMR3RegisterF(pVM, &pVCpu->iem.s.StatMemMapNoJmp,     STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
     738                        "iemMemMap calls",                      "/IEM/CPU%u/iemMemMapNoJmp", idCpu);
     739        STAMR3RegisterF(pVM, &pVCpu->iem.s.StatMemBounceBufferCrossPage, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
     740                        "iemMemBounceBufferMapCrossPage calls", "/IEM/CPU%u/iemMemMapBounceBufferCrossPage", idCpu);
     741        STAMR3RegisterF(pVM, &pVCpu->iem.s.StatMemBounceBufferMapPhys, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_COUNT,
     742                        "iemMemBounceBufferMapPhys calls",      "/IEM/CPU%u/iemMemMapBounceBufferMapPhys", idCpu);
     743# endif
     744
    732745
    733746#endif /* VBOX_WITH_IEM_RECOMPILER */
  • trunk/src/VBox/VMM/include/IEMInternal.h

    r104932 r104941  
    21412141    /** @} */
    21422142
    2143     uint64_t                au64Padding[5];
     2143    /** iemMemMap and iemMemMapJmp statistics.
     2144     *  @{ */
     2145    STAMCOUNTER             StatMemMapJmp;
     2146    STAMCOUNTER             StatMemMapNoJmp;
     2147    STAMCOUNTER             StatMemBounceBufferCrossPage;
     2148    STAMCOUNTER             StatMemBounceBufferMapPhys;
     2149    /** @} */
     2150
     2151    uint64_t                au64Padding[1];
    21442152    /** @} */
    21452153
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