VirtualBox

Changeset 13098 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 8, 2008 5:10:32 PM (16 years ago)
Author:
vboxsync
Message:

#1865: More PGM changes.

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

Legend:

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

    r13087 r13098  
    11611161VMMDECL(int)  PGMGstModifyPage(PVM pVM, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask)
    11621162{
    1163     STAM_PROFILE_START(&CTXMID(pVM->pgm.s.Stat,GstModifyPage), a);
     1163    STAM_PROFILE_START(&pVM->pgm.s.CTX_MID_Z(Stat,GstModifyPage), a);
    11641164
    11651165    /*
     
    11691169    {
    11701170        AssertMsgFailed(("fFlags=%#llx\n", fFlags));
    1171         STAM_PROFILE_STOP(&CTXMID(pVM->pgm.s.Stat,GstModifyPage), a);
     1171        STAM_PROFILE_STOP(&pVM->pgm.s.CTX_MID_Z(Stat,GstModifyPage), a);
    11721172        return VERR_INVALID_PARAMETER;
    11731173    }
     
    11761176    {
    11771177        AssertFailed();
    1178         STAM_PROFILE_STOP(&CTXMID(pVM->pgm.s.Stat,GstModifyPage), a);
     1178        STAM_PROFILE_STOP(&pVM->pgm.s.CTX_MID_Z(Stat,GstModifyPage), a);
    11791179        return VERR_INVALID_PARAMETER;
    11801180    }
     
    11941194    int rc = PGM_GST_PFN(ModifyPage, pVM)(pVM, (RTGCUINTPTR)GCPtr, cb, fFlags, fMask);
    11951195
    1196     STAM_PROFILE_STOP(&CTXMID(pVM->pgm.s.Stat,GstModifyPage), a);
     1196    STAM_PROFILE_STOP(&pVM->pgm.s.CTX_MID_Z(Stat,GstModifyPage), a);
    11971197    return rc;
    11981198}
     
    14021402VMMDECL(int) PGMFlushTLB(PVM pVM, uint64_t cr3, bool fGlobal)
    14031403{
    1404     STAM_PROFILE_START(&pVM->pgm.s.StatFlushTLB, a);
     1404    STAM_PROFILE_START(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLB), a);
    14051405
    14061406    /*
     
    14341434        }
    14351435        if (fGlobal)
    1436             STAM_COUNTER_INC(&pVM->pgm.s.StatFlushTLBNewCR3Global);
     1436            STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLBNewCR3Global));
    14371437        else
    1438             STAM_COUNTER_INC(&pVM->pgm.s.StatFlushTLBNewCR3);
     1438            STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLBNewCR3));
    14391439    }
    14401440    else
     
    14501450        }
    14511451        if (fGlobal)
    1452             STAM_COUNTER_INC(&pVM->pgm.s.StatFlushTLBSameCR3Global);
     1452            STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLBSameCR3Global));
    14531453        else
    1454             STAM_COUNTER_INC(&pVM->pgm.s.StatFlushTLBSameCR3);
    1455     }
    1456 
    1457     STAM_PROFILE_STOP(&pVM->pgm.s.StatFlushTLB, a);
     1454            STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLBSameCR3));
     1455    }
     1456
     1457    STAM_PROFILE_STOP(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLB), a);
    14581458    return rc;
    14591459}
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r13087 r13098  
    839839     */
    840840    LogFlow(("PGM: Unhandled #PF -> route trap to recompiler!\n"));
    841     STAM_COUNTER_INC(&pVM->pgm.s.StatRZTrap0eGuestPF);
     841    STAM_COUNTER_INC(&pVM->pgm.s.StatRZTrap0eGuestPFUnh);
    842842    return VINF_EM_RAW_GUEST_TRAP;
    843843#  else
     
    15651565     * Assert preconditions.
    15661566     */
    1567     STAM_COUNTER_INC(&pVM->pgm.s.StatGCSyncPagePD[(GCPtrPage >> GST_PD_SHIFT) & GST_PD_MASK]);
    15681567    Assert(PdeSrc.n.u1Present);
    15691568    Assert(cPages);
     1569    STAM_COUNTER_INC(&pVM->pgm.s.StatSyncPagePD[(GCPtrPage >> GST_PD_SHIFT) & GST_PD_MASK]);
    15701570
    15711571    /*
     
    22782278{
    22792279    STAM_PROFILE_START(&pVM->pgm.s.CTX_MID_Z(Stat,SyncPT), a);
    2280     STAM_COUNTER_INC(&pVM->pgm.s.StatGCSyncPtPD[iPDSrc]);
     2280    STAM_COUNTER_INC(&pVM->pgm.s.StatSyncPtPD[iPDSrc]);
    22812281    LogFlow(("SyncPT: GCPtrPage=%VGv\n", GCPtrPage));
    22822282
     
    24712471                 *
    24722472                 */
    2473                 STAM_COUNTER_INC(CTXSUFF(&pVM->pgm.s.StatSynPT4k));
     2473                STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,SyncPT4K));
    24742474# ifdef PGM_SYNC_N_PAGES
    24752475                unsigned        iPTBase   = (GCPtrPage >> SHW_PT_SHIFT) & SHW_PT_MASK;
     
    25312531             * We will only sync on shadow page table at a time.
    25322532             */
    2533             STAM_COUNTER_INC(CTXSUFF(&pVM->pgm.s.StatSynPT4M));
     2533            STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,SyncPT4M));
    25342534
    25352535            /**
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r13087 r13098  
    408408        Log2(("PGM: Replaced shared page %#x at %RGp with %#x / %RHp\n", PGM_PAGE_GET_PAGEID(pPage),
    409409              GCPhys, pVM->pgm.s.aHandyPages[iHandyPage].idPage, HCPhys));
    410         STAM_COUNTER_INC(&pVM->pgm.s.StatPageReplaceShared);
     410        STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,PageReplaceShared));
    411411        pVM->pgm.s.cSharedPages--;
    412412/** @todo err.. what about copying the page content? */
     
    415415    {
    416416        Log2(("PGM: Replaced zero page %RGp with %#x / %RHp\n", GCPhys, pVM->pgm.s.aHandyPages[iHandyPage].idPage, HCPhys));
    417         STAM_COUNTER_INC(&pVM->pgm.s.StatPageReplaceZero);
     417        STAM_COUNTER_INC(&pVM->pgm.s.StatRZPageReplaceZero);
    418418        pVM->pgm.s.cZeroPages--;
    419419/** @todo verify that the handy page is zero! */
     
    510510    if (pTlbe->idChunk == idChunk)
    511511    {
    512         STAM_COUNTER_INC(&pVM->pgm.s.StatChunkR3MapTlbHits);
     512        STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,ChunkR3MapTlbHits));
    513513        pMap = pTlbe->pChunk;
    514514    }
    515515    else if (idChunk != NIL_GMM_CHUNKID)
    516516    {
    517         STAM_COUNTER_INC(&pVM->pgm.s.StatChunkR3MapTlbMisses);
     517        STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,ChunkR3MapTlbMisses));
    518518
    519519        /*
     
    569569int pgmPhysPageLoadIntoTlb(PPGM pPGM, RTGCPHYS GCPhys)
    570570{
    571     STAM_COUNTER_INC(&pPGM->CTXMID(StatPage,MapTlbMisses));
     571    STAM_COUNTER_INC(&pPGM->CTX_MID_Z(Stat,PageMapTlbMisses));
    572572
    573573    /*
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