VirtualBox

Changeset 29620 in vbox for trunk/src/VBox/VMM/GMM.cpp


Ignore:
Timestamp:
May 18, 2010 12:15:55 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61772
Message:

Statistics for shared pages

File:
1 edited

Legend:

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

    r29613 r29620  
    290290 * @see GMMR0QueryVMMMemoryStatsReq
    291291 */
    292 GMMR3DECL(int)  GMMR3QueryHypervisorMemoryStats(PVM pVM, uint64_t *pcTotalAllocPages, uint64_t *pcTotalFreePages, uint64_t *pcTotalBalloonPages)
     292GMMR3DECL(int)  GMMR3QueryHypervisorMemoryStats(PVM pVM, uint64_t *pcTotalAllocPages, uint64_t *pcTotalFreePages, uint64_t *pcTotalBalloonPages, uint64_t *puTotalBalloonSize)
    293293{
    294294    GMMMEMSTATSREQ Req;
     
    298298    Req.cFreePages       = 0;
    299299    Req.cBalloonedPages  = 0;
     300    Req.cSharedPages     = 0;
    300301
    301302    *pcTotalAllocPages   = 0;
    302303    *pcTotalFreePages    = 0;
    303304    *pcTotalBalloonPages = 0;
     305    *puTotalBalloonSize  = 0;
    304306
    305307    /* Must be callable from any thread, so can't use VMMR3CallR0. */
     
    310312        *pcTotalFreePages    = Req.cFreePages;
    311313        *pcTotalBalloonPages = Req.cBalloonedPages;
     314        *puTotalBalloonSize  = Req.cSharedPages;
    312315    }
    313316    return rc;
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