Changeset 26718 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 23, 2010 4:12:09 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57963
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r26622 r26718 1579 1579 STAM_REL_REG(pVM, &pPGM->ChunkR3Map.cMax, STAMTYPE_U32, "/PGM/ChunkR3Map/cMax", STAMUNIT_COUNT, "Maximum number of mapped chunks."); 1580 1580 1581 STAM_REL_REG(pVM, &pPGM->StatLargePageAlloc, STAMTYPE_COUNTER, "/PGM/LargePage/Alloc", STAMUNIT_OCCURENCES, "The number of large pages we've used."); 1582 STAM_REL_REG(pVM, &pPGM->StatLargePageReused, STAMTYPE_COUNTER, "/PGM/LargePage/Reused", STAMUNIT_OCCURENCES, "The number of times we've reused a large page."); 1583 STAM_REL_REG(pVM, &pPGM->StatLargePageRefused, STAMTYPE_COUNTER, "/PGM/LargePage/Refused", STAMUNIT_OCCURENCES, "The number of times we couldn't use a large page."); 1584 1581 1585 /* Live save */ 1582 1586 STAM_REL_REG_USED(pVM, &pPGM->LiveSave.fActive, STAMTYPE_U8, "/PGM/LiveSave/fActive", STAMUNIT_COUNT, "Active or not."); … … 1612 1616 rc = STAMR3RegisterF(pVM, a, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, c, b); \ 1613 1617 AssertRC(rc); 1614 1615 PGM_REG_COUNTER(&pPGM->StatLargePageUsed, "/PGM/LargePage/Alloc", "The number of large pages we've used.");1616 PGM_REG_COUNTER(&pPGM->StatLargePageRefused, "/PGM/LargePage/Refused", "The number of times we couldn't use a large page.");1617 1618 1618 1619 PGM_REG_COUNTER(&pPGM->StatR3DetectedConflicts, "/PGM/R3/DetectedConflicts", "The number of times PGMR3CheckMappingConflicts() detected a conflict."); -
trunk/src/VBox/VMM/PGMInternal.h
r26625 r26718 2776 2776 /** The number of times we were forced to change the hypervisor region location. */ 2777 2777 STAMCOUNTER cRelocations; 2778 2779 STAMCOUNTER StatLargePageAlloc; /**< The number of large pages we've allocated.*/ 2780 STAMCOUNTER StatLargePageReused; /**< The number of large pages we've reused.*/ 2781 STAMCOUNTER StatLargePageRefused; /**< The number of times we couldn't use a large page.*/ 2778 2782 /** @} */ 2779 2783 2780 2784 #ifdef VBOX_WITH_STATISTICS /** @todo move this chunk to the heap. */ 2781 STAMCOUNTER StatLargePageUsed; /**< The number of large pages we've used.*/2782 STAMCOUNTER StatLargePageRefused; /**< The number of times we couldn't use a large page.*/2783 2784 2785 /* R3 only: */ 2785 2786 STAMCOUNTER StatR3DetectedConflicts; /**< R3: Number of times PGMR3MapHasConflicts() detected a conflict. */ … … 3321 3322 3322 3323 int pgmPhysAllocPage(PVM pVM, PPGMPAGE pPage, RTGCPHYS GCPhys); 3323 int pgmPhysAllocLargePage(PVM pVM, RTGCPHYS GCPhys , RTHCPHYS *pHCPhys);3324 int pgmPhysAllocLargePage(PVM pVM, RTGCPHYS GCPhys); 3324 3325 int pgmPhysPageLoadIntoTlb(PPGM pPGM, RTGCPHYS GCPhys); 3325 3326 int pgmPhysPageLoadIntoTlbWithPage(PPGM pPGM, PPGMPAGE pPage, RTGCPHYS GCPhys); -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r26717 r26718 521 521 { 522 522 /* Failed. Mark as requiring a PT so we don't check the whole thing again in the future. */ 523 STAM_ COUNTER_INC(&pVM->pgm.s.StatLargePageRefused);523 STAM_REL_COUNTER_INC(&pVM->pgm.s.StatLargePageRefused); 524 524 PGM_PAGE_SET_PDE_TYPE(pPage, PGM_PAGE_PDE_TYPE_PT); 525 525 return VERR_PGM_INVALID_LARGE_PAGE_RANGE; … … 535 535 { 536 536 Assert(PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_ALLOCATED); 537 STAM_ COUNTER_INC(&pVM->pgm.s.StatLargePageUsed);537 STAM_REL_COUNTER_INC(&pVM->pgm.s.StatLargePageAlloc); 538 538 return VINF_SUCCESS; 539 539 }
Note:
See TracChangeset
for help on using the changeset viewer.