Changeset 18954 in vbox for trunk/src/VBox/VMM/VMMR0/PGMR0DynMap.cpp
- Timestamp:
- Apr 16, 2009 3:13:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/PGMR0DynMap.cpp
r18953 r18954 1572 1572 pSet->iCpu = -1; 1573 1573 1574 STAM_COUNTER_INC(&pVCpu->p VMR0->pgm.s.aStatR0DynMapSetSize[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]);1574 STAM_COUNTER_INC(&pVCpu->pgm.s.aStatR0DynMapSetSize[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]); 1575 1575 AssertMsg(cEntries < PGMMAPSET_MAX_FILL, ("%u\n", cEntries)); 1576 1576 if (cEntries > RT_ELEMENTS(pSet->aEntries) * 50 / 100) … … 1596 1596 uint32_t cEntries = pSet->cEntries; 1597 1597 AssertReturnVoid(cEntries != PGMMAPSET_CLOSED); 1598 STAM_COUNTER_INC(&pVCpu->p VMR0->pgm.s.aStatR0DynMapSetSize[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]);1598 STAM_COUNTER_INC(&pVCpu->pgm.s.aStatR0DynMapSetSize[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]); 1599 1599 if (cEntries >= RT_ELEMENTS(pSet->aEntries) * 45 / 100) 1600 1600 { … … 1650 1650 1651 1651 ASMInvalidatePage(pThis->paPages[iPage].pvPage); 1652 STAM_COUNTER_INC(&pVCpu->p VMR0->pgm.s.StatR0DynMapMigrateInvlPg);1652 STAM_COUNTER_INC(&pVCpu->pgm.s.StatR0DynMapMigrateInvlPg); 1653 1653 1654 1654 RTSpinlockAcquire(pThis->hSpinlock, &Tmp); … … 1727 1727 Assert(iPrevSubset == UINT32_MAX); 1728 1728 pSet->iSubset = pSet->cEntries; 1729 STAM_COUNTER_INC(&pVCpu->p VMR0->pgm.s.StatR0DynMapSubsets);1729 STAM_COUNTER_INC(&pVCpu->pgm.s.StatR0DynMapSubsets); 1730 1730 return iPrevSubset; 1731 1731 } … … 1745 1745 AssertReturnVoid(pSet->iSubset <= iPrevSubset || iPrevSubset == UINT32_MAX); 1746 1746 Assert(iPrevSubset == UINT32_MAX); 1747 STAM_COUNTER_INC(&pVCpu->p VMR0->pgm.s.aStatR0DynMapSetSize[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]);1747 STAM_COUNTER_INC(&pVCpu->pgm.s.aStatR0DynMapSetSize[(cEntries * 10 / RT_ELEMENTS(pSet->aEntries)) % 11]); 1748 1748 if ( cEntries >= RT_ELEMENTS(pSet->aEntries) * 40 / 100 1749 1749 && cEntries != pSet->iSubset)
Note:
See TracChangeset
for help on using the changeset viewer.