VirtualBox

Changeset 26718 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 23, 2010 4:12:09 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57963
Message:

Updates & fixes

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r26622 r26718  
    15791579    STAM_REL_REG(pVM, &pPGM->ChunkR3Map.cMax,                    STAMTYPE_U32,     "/PGM/ChunkR3Map/cMax",               STAMUNIT_COUNT,     "Maximum number of mapped chunks.");
    15801580
     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
    15811585    /* Live save */
    15821586    STAM_REL_REG_USED(pVM, &pPGM->LiveSave.fActive,              STAMTYPE_U8,      "/PGM/LiveSave/fActive",              STAMUNIT_COUNT,     "Active or not.");
     
    16121616        rc = STAMR3RegisterF(pVM, a, STAMTYPE_PROFILE, STAMVISIBILITY_ALWAYS, STAMUNIT_TICKS_PER_CALL, c, b); \
    16131617        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.");
    16171618
    16181619    PGM_REG_COUNTER(&pPGM->StatR3DetectedConflicts,           "/PGM/R3/DetectedConflicts",          "The number of times PGMR3CheckMappingConflicts() detected a conflict.");
  • trunk/src/VBox/VMM/PGMInternal.h

    r26625 r26718  
    27762776    /** The number of times we were forced to change the hypervisor region location. */
    27772777    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.*/
    27782782    /** @} */
    27792783
    27802784#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 
    27842785    /* R3 only: */
    27852786    STAMCOUNTER StatR3DetectedConflicts;            /**< R3: Number of times PGMR3MapHasConflicts() detected a conflict. */
     
    33213322
    33223323int             pgmPhysAllocPage(PVM pVM, PPGMPAGE pPage, RTGCPHYS GCPhys);
    3323 int             pgmPhysAllocLargePage(PVM pVM, RTGCPHYS GCPhys, RTHCPHYS *pHCPhys);
     3324int             pgmPhysAllocLargePage(PVM pVM, RTGCPHYS GCPhys);
    33243325int             pgmPhysPageLoadIntoTlb(PPGM pPGM, RTGCPHYS GCPhys);
    33253326int             pgmPhysPageLoadIntoTlbWithPage(PPGM pPGM, PPGMPAGE pPage, RTGCPHYS GCPhys);
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r26717 r26718  
    521521            {
    522522                /* 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);
    524524                PGM_PAGE_SET_PDE_TYPE(pPage, PGM_PAGE_PDE_TYPE_PT);
    525525                return VERR_PGM_INVALID_LARGE_PAGE_RANGE;
     
    535535                {   
    536536                    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);
    538538                    return VINF_SUCCESS;
    539539                }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette