Changeset 30843 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jul 14, 2010 2:29:41 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r30840 r30843 1645 1645 PGM_REG_COUNTER(&pPGM->StatRZChunkR3MapTlbHits, "/PGM/ChunkR3Map/TlbHitsRZ", "TLB hits."); 1646 1646 PGM_REG_COUNTER(&pPGM->StatRZChunkR3MapTlbMisses, "/PGM/ChunkR3Map/TlbMissesRZ", "TLB misses."); 1647 PGM_REG_PROFILE(&pPGM->StatChunkAging, "/PGM/ChunkR3Map/Map/Aging", "Chunk aging profiling."); 1648 PGM_REG_PROFILE(&pPGM->StatChunkFindCandidate, "/PGM/ChunkR3Map/Map/Find", "Chunk unmap find profiling."); 1649 PGM_REG_PROFILE(&pPGM->StatChunkUnmap, "/PGM/ChunkR3Map/Map/Unmap", "Chunk unmap of address space profiling."); 1650 PGM_REG_PROFILE(&pPGM->StatChunkMap, "/PGM/ChunkR3Map/Map/Map", "Chunk map of address space profiling."); 1651 1647 1652 PGM_REG_COUNTER(&pPGM->StatRZPageMapTlbHits, "/PGM/RZ/Page/MapTlbHits", "TLB hits."); 1648 1653 PGM_REG_COUNTER(&pPGM->StatRZPageMapTlbMisses, "/PGM/RZ/Page/MapTlbMisses", "TLB misses."); -
trunk/src/VBox/VMM/PGMInternal.h
r30842 r30843 2892 2892 /** pgmPhysIsValidLargePage profiling - RZ*/ 2893 2893 STAMPROFILE StatRZIsValidLargePage; 2894 2895 STAMPROFILE StatChunkAging; 2896 STAMPROFILE StatChunkFindCandidate; 2897 STAMPROFILE StatChunkUnmap; 2898 STAMPROFILE StatChunkMap; 2894 2899 #endif 2895 2900 } PGM; -
trunk/src/VBox/VMM/PGMPhys.cpp
r30842 r30843 3315 3315 */ 3316 3316 if (pVM->pgm.s.ChunkR3Map.AgeingCountdown-- == 0) 3317 { 3318 STAM_PROFILE_START(&pVM->pgm.s.StatChunkAging, a); 3317 3319 PGMR3PhysChunkAgeing(pVM); 3320 STAM_PROFILE_STOP(&pVM->pgm.s.StatChunkAging, a); 3321 } 3318 3322 3319 3323 /* 3320 3324 * Enumerate the age tree starting with the left most node. 3321 3325 */ 3326 STAM_PROFILE_START(&pVM->pgm.s.StatChunkFindCandidate, a); 3322 3327 PGMR3PHYSCHUNKUNMAPCB Args; 3323 3328 Args.pVM = pVM; … … 3327 3332 Assert(Args.pChunk); 3328 3333 if (Args.pChunk) 3334 { 3335 STAM_PROFILE_STOP(&pVM->pgm.s.StatChunkFindCandidate, a); 3329 3336 return Args.pChunk->Core.Key; 3330 3337 } 3338 3339 STAM_PROFILE_STOP(&pVM->pgm.s.StatChunkFindCandidate, a); 3331 3340 return INT32_MAX; 3332 3341 } … … 3367 3376 if (Req.idChunkUnmap != INT32_MAX) 3368 3377 { 3378 STAM_PROFILE_START(&pVM->pgm.s.StatChunkUnmap, a); 3369 3379 rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_MAP_UNMAP_CHUNK, 0, &Req.Hdr); 3380 STAM_PROFILE_START(&pVM->pgm.s.StatChunkUnmap, a); 3370 3381 if (RT_SUCCESS(rc)) 3371 3382 { … … 3471 3482 3472 3483 /* Must be callable from any thread, so can't use VMMR3CallR0. */ 3484 STAM_PROFILE_START(&pVM->pgm.s.StatChunkMap, a); 3473 3485 rc = SUPR3CallVMMR0Ex(pVM->pVMR0, NIL_VMCPUID, VMMR0_DO_GMM_MAP_UNMAP_CHUNK, 0, &Req.Hdr); 3486 STAM_PROFILE_STOP(&pVM->pgm.s.StatChunkMap, a); 3474 3487 if (RT_SUCCESS(rc)) 3475 3488 {
Note:
See TracChangeset
for help on using the changeset viewer.