VirtualBox

Changeset 28036 in vbox for trunk/include


Ignore:
Timestamp:
Apr 7, 2010 9:47:43 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59743
Message:

More metrics changes

Location:
trunk/include/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/gmm.h

    r28012 r28036  
    399399
    400400/**
    401  * Request buffer for GMMR0QueryTotalFreePagesReq / VMMR0_DO_GMM_QUERY_TOTAL_FREE_PAGES.
    402  * @see GMMR0QueryTotalFreePagesReq.
    403  */
    404 typedef struct GMMFREEQUERYREQ
     401 * Request buffer for GMMR0QueryVMMMemoryStatsReq / VMMR0_DO_GMM_QUERY_VMM_MEM_STATS.
     402 * @see GMMR0QueryVMMMemoryStatsReq.
     403 */
     404typedef struct GMMMEMSTATSREQ
    405405{
    406406    /** The header. */
    407407    SUPVMMR0REQHDR      Hdr;
     408    /** The number of allocated pages (out). */
     409    uint64_t            cAllocPages;
    408410    /** The number of free pages (out). */
    409411    uint64_t            cFreePages;
    410 } GMMFREEQUERYREQ;
    411 /** Pointer to a GMMR0QueryTotalFreePagesReq / VMMR0_DO_GMM_QUERY_TOTAL_FREE_PAGES request buffer. */
    412 typedef GMMFREEQUERYREQ *PGMMFREEQUERYREQ;
    413 
    414 GMMR0DECL(int)  GMMR0QueryTotalFreePagesReq(PVM pVM, PGMMFREEQUERYREQ pReq);
     412    /** The number of ballooned pages (out). */
     413    uint64_t            cBalloonedPages;
     414} GMMMEMSTATSREQ;
     415/** Pointer to a GMMR0QueryVMMMemoryStatsReq / VMMR0_DO_GMM_QUERY_VMM_MEM_STATS request buffer. */
     416typedef GMMMEMSTATSREQ *PGMMMEMSTATSREQ;
     417
     418GMMR0DECL(int)  GMMR0QueryVMMMemoryStatsReq(PVM pVM, PGMMMEMSTATSREQ pReq);
    415419
    416420/**
     
    473477GMMR3DECL(int)  GMMR3SeedChunk(PVM pVM, RTR3PTR pvR3);
    474478GMMR3DECL(int)  GMMR3BalloonedPages(PVM pVM, GMMBALLOONACTION enmAction, uint32_t cBalloonedPages);
    475 GMMR3DECL(int)  GMMR3QueryTotalFreePages(PVM pVM, uint64_t *pcTotalFreePages);
     479GMMR3DECL(int)  GMMR3QueryVMMMemoryStats(PVM pVM, uint64_t *pcTotalAllocPages, uint64_t *pcTotalFreePages, uint64_t *pcTotalBalloonPages);
    476480/** @} */
    477481#endif /* IN_RING3 */
  • trunk/include/VBox/pgm.h

    r28012 r28036  
    467467VMMR3DECL(int)      PGMR3PhysRegisterRam(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb, const char *pszDesc);
    468468VMMR3DECL(int)      PGMR3PhysChangeMemBalloon(PVM pVM, bool fInflate, unsigned cPages, RTGCPHYS *paPhysPage);
    469 VMMR3DECL(int)      PGMR3QueryFreeMemory(PVM pVM, unsigned *puTotalFreeSize);
     469VMMR3DECL(int)      PGMR3QueryVMMMemoryStats(PVM pVM, uint64_t *puTotalAllocSize, uint64_t *puTotalFreeSize, uint64_t *puTotalBalloonSize);
    470470VMMR3DECL(int)      PGMR3PhysMMIORegister(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS cb,
    471471                                          R3PTRTYPE(PFNPGMR3PHYSHANDLER) pfnHandlerR3, RTR3PTR pvUserR3,
  • trunk/include/VBox/vmm.h

    r28012 r28036  
    300300    /** Call GMMR0FreeLargePage(). */
    301301    VMMR0_DO_GMM_FREE_LARGE_PAGE,
    302     /** Call GMMR0QueryTotalFreePagesReq */
    303     VMMR0_DO_GMM_QUERY_TOTAL_FREE_PAGES,
     302    /** Call GMMR0QueryVMMMemoryStatsReq */
     303    VMMR0_DO_GMM_QUERY_VMM_MEM_STATS,
    304304    /** Call GMMR0BalloonedPages(). */
    305305    VMMR0_DO_GMM_BALLOONED_PAGES,
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