Changeset 13098 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Oct 8, 2008 5:10:32 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r13087 r13098 1161 1161 VMMDECL(int) PGMGstModifyPage(PVM pVM, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask) 1162 1162 { 1163 STAM_PROFILE_START(& CTXMID(pVM->pgm.s.Stat,GstModifyPage), a);1163 STAM_PROFILE_START(&pVM->pgm.s.CTX_MID_Z(Stat,GstModifyPage), a); 1164 1164 1165 1165 /* … … 1169 1169 { 1170 1170 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); 1172 1172 return VERR_INVALID_PARAMETER; 1173 1173 } … … 1176 1176 { 1177 1177 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); 1179 1179 return VERR_INVALID_PARAMETER; 1180 1180 } … … 1194 1194 int rc = PGM_GST_PFN(ModifyPage, pVM)(pVM, (RTGCUINTPTR)GCPtr, cb, fFlags, fMask); 1195 1195 1196 STAM_PROFILE_STOP(& CTXMID(pVM->pgm.s.Stat,GstModifyPage), a);1196 STAM_PROFILE_STOP(&pVM->pgm.s.CTX_MID_Z(Stat,GstModifyPage), a); 1197 1197 return rc; 1198 1198 } … … 1402 1402 VMMDECL(int) PGMFlushTLB(PVM pVM, uint64_t cr3, bool fGlobal) 1403 1403 { 1404 STAM_PROFILE_START(&pVM->pgm.s. StatFlushTLB, a);1404 STAM_PROFILE_START(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLB), a); 1405 1405 1406 1406 /* … … 1434 1434 } 1435 1435 if (fGlobal) 1436 STAM_COUNTER_INC(&pVM->pgm.s. StatFlushTLBNewCR3Global);1436 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLBNewCR3Global)); 1437 1437 else 1438 STAM_COUNTER_INC(&pVM->pgm.s. StatFlushTLBNewCR3);1438 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLBNewCR3)); 1439 1439 } 1440 1440 else … … 1450 1450 } 1451 1451 if (fGlobal) 1452 STAM_COUNTER_INC(&pVM->pgm.s. StatFlushTLBSameCR3Global);1452 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,FlushTLBSameCR3Global)); 1453 1453 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); 1458 1458 return rc; 1459 1459 } -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r13087 r13098 839 839 */ 840 840 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); 842 842 return VINF_EM_RAW_GUEST_TRAP; 843 843 # else … … 1565 1565 * Assert preconditions. 1566 1566 */ 1567 STAM_COUNTER_INC(&pVM->pgm.s.StatGCSyncPagePD[(GCPtrPage >> GST_PD_SHIFT) & GST_PD_MASK]);1568 1567 Assert(PdeSrc.n.u1Present); 1569 1568 Assert(cPages); 1569 STAM_COUNTER_INC(&pVM->pgm.s.StatSyncPagePD[(GCPtrPage >> GST_PD_SHIFT) & GST_PD_MASK]); 1570 1570 1571 1571 /* … … 2278 2278 { 2279 2279 STAM_PROFILE_START(&pVM->pgm.s.CTX_MID_Z(Stat,SyncPT), a); 2280 STAM_COUNTER_INC(&pVM->pgm.s.Stat GCSyncPtPD[iPDSrc]);2280 STAM_COUNTER_INC(&pVM->pgm.s.StatSyncPtPD[iPDSrc]); 2281 2281 LogFlow(("SyncPT: GCPtrPage=%VGv\n", GCPtrPage)); 2282 2282 … … 2471 2471 * 2472 2472 */ 2473 STAM_COUNTER_INC( CTXSUFF(&pVM->pgm.s.StatSynPT4k));2473 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,SyncPT4K)); 2474 2474 # ifdef PGM_SYNC_N_PAGES 2475 2475 unsigned iPTBase = (GCPtrPage >> SHW_PT_SHIFT) & SHW_PT_MASK; … … 2531 2531 * We will only sync on shadow page table at a time. 2532 2532 */ 2533 STAM_COUNTER_INC( CTXSUFF(&pVM->pgm.s.StatSynPT4M));2533 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,SyncPT4M)); 2534 2534 2535 2535 /** -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r13087 r13098 408 408 Log2(("PGM: Replaced shared page %#x at %RGp with %#x / %RHp\n", PGM_PAGE_GET_PAGEID(pPage), 409 409 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)); 411 411 pVM->pgm.s.cSharedPages--; 412 412 /** @todo err.. what about copying the page content? */ … … 415 415 { 416 416 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.Stat PageReplaceZero);417 STAM_COUNTER_INC(&pVM->pgm.s.StatRZPageReplaceZero); 418 418 pVM->pgm.s.cZeroPages--; 419 419 /** @todo verify that the handy page is zero! */ … … 510 510 if (pTlbe->idChunk == idChunk) 511 511 { 512 STAM_COUNTER_INC(&pVM->pgm.s. StatChunkR3MapTlbHits);512 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,ChunkR3MapTlbHits)); 513 513 pMap = pTlbe->pChunk; 514 514 } 515 515 else if (idChunk != NIL_GMM_CHUNKID) 516 516 { 517 STAM_COUNTER_INC(&pVM->pgm.s. StatChunkR3MapTlbMisses);517 STAM_COUNTER_INC(&pVM->pgm.s.CTX_MID_Z(Stat,ChunkR3MapTlbMisses)); 518 518 519 519 /* … … 569 569 int pgmPhysPageLoadIntoTlb(PPGM pPGM, RTGCPHYS GCPhys) 570 570 { 571 STAM_COUNTER_INC(&pPGM->CTX MID(StatPage,MapTlbMisses));571 STAM_COUNTER_INC(&pPGM->CTX_MID_Z(Stat,PageMapTlbMisses)); 572 572 573 573 /*
Note:
See TracChangeset
for help on using the changeset viewer.