Changeset 15196 in vbox
- Timestamp:
- Dec 9, 2008 5:34:25 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r15183 r15196 1597 1597 1598 1598 /* R0 only: */ 1599 STAM_REG(pVM, &pPGM->StatR0DynMapHCPage, STAMTYPE_ COUNTER, "/PGM/R0/DynMapPage/HCPage", STAMUNIT_OCCURENCES, "Calls to PGMDynMapHCPage (ring-0).");1599 STAM_REG(pVM, &pPGM->StatR0DynMapHCPage, STAMTYPE_PROFILE, "/PGM/R0/DynMapPage/HCPage", STAMUNIT_OCCURENCES, "Calls to PGMDynMapHCPage (ring-0)."); 1600 1600 STAM_REG(pVM, &pPGM->StatR0DynMapHCPageSetOptimize, STAMTYPE_COUNTER, "/PGM/R0/DynMapPage/HCPageSetOptimize", STAMUNIT_OCCURENCES, "Calls to pgmDynMapOptimizeAutoSet."); 1601 1601 STAM_REG(pVM, &pPGM->StatR0DynMapHCPageSetSearchHits, STAMTYPE_COUNTER, "/PGM/R0/DynMapPage/HCPageSetSearchHits", STAMUNIT_OCCURENCES, "Set search hits."); … … 2887 2887 2888 2888 /* The shadow part of the nested callback mode depends on the host paging mode (AMD-V only). */ 2889 switch (pVM->pgm.s.enmHostMode)2889 switch (pVM->pgm.s.enmHostMode) 2890 2890 { 2891 2891 #if HC_ARCH_BITS == 32 … … 2917 2917 # endif 2918 2918 break; 2919 #endif /* HC_ARCH_BITS != 32 */2919 #endif /* HC_ARCH_BITS == 32 */ 2920 2920 2921 2921 #if HC_ARCH_BITS == 64 || defined(RT_OS_DARWIN) … … 2934 2934 } 2935 2935 break; 2936 #endif /* HC_ARCH_BITS == 64 || RT_ ARCH_DARWIN */2936 #endif /* HC_ARCH_BITS == 64 || RT_OS_DARWIN */ 2937 2937 2938 2938 default: -
trunk/src/VBox/VMM/PGMInternal.h
r14877 r15196 2561 2561 2562 2562 /* R0 only: */ 2563 STAM COUNTERStatR0DynMapHCPage; /**< R0: Calls to PGMDynMapHCPage. */2563 STAMPROFILE StatR0DynMapHCPage; /**< R0: Calls to PGMDynMapHCPage. */ 2564 2564 STAMCOUNTER StatR0DynMapHCPageSetOptimize; /**< R0: Calls to pgmDynMapOptimizeAutoSet. */ 2565 2565 STAMCOUNTER StatR0DynMapHCPageSetSearchHits; /**< R0: Set search hits. */ -
trunk/src/VBox/VMM/VMMR0/PGMR0DynMap.cpp
r14880 r15196 1645 1645 * Validate state. 1646 1646 */ 1647 STAM_ COUNTER_INC(&pVM->pgm.s.StatR0DynMapHCPage);1647 STAM_PROFILE_START(&pVM->pgm.s.StatR0DynMapHCPage, a); 1648 1648 AssertPtr(ppv); 1649 1649 *ppv = NULL; … … 1664 1664 if (RT_UNLIKELY(iPage == UINT32_MAX)) 1665 1665 { 1666 STAM_PROFILE_STOP(&pVM->pgm.s.StatR0DynMapHCPage, a); 1666 1667 static uint32_t s_cBitched = 0; 1667 1668 if (++s_cBitched < 10) … … 1742 1743 pgmR0DynMapReleasePage(g_pPGMR0DynMap, iPage, 1); 1743 1744 1745 STAM_PROFILE_STOP(&pVM->pgm.s.StatR0DynMapHCPage, a); 1744 1746 static uint32_t s_cBitched = 0; 1745 1747 if (++s_cBitched < 10) … … 1751 1753 } 1752 1754 1755 STAM_PROFILE_STOP(&pVM->pgm.s.StatR0DynMapHCPage, a); 1753 1756 return VINF_SUCCESS; 1754 1757 }
Note:
See TracChangeset
for help on using the changeset viewer.