VirtualBox

Changeset 32796 in vbox for trunk/include


Ignore:
Timestamp:
Sep 28, 2010 2:54:41 PM (14 years ago)
Author:
vboxsync
Message:

GVMMR0,TM,STAM: Periodic preemption timer fixes, adjustments and statistics. (still disabled)

Location:
trunk/include/VBox
Files:
4 edited

Legend:

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

    r32489 r32796  
    3131#include <VBox/types.h>
    3232#include <VBox/sup.h>
     33#include <iprt/cpuset.h> /* RTCPUSET_MAX_CPUS */
    3334
    3435RT_C_DECLS_BEGIN
     
    105106
    106107/**
     108 * Per host cpu statistics.
     109 */
     110typedef struct GVMMSTATSHOSTCPU
     111{
     112    /** The CPU ID. */
     113    RTCPUID         idCpu;
     114    /** The CPU's set index. */
     115    uint32_t        idxCpuSet;
     116    /** The desired PPT frequency. */
     117    uint32_t        uDesiredHz;
     118    /** The current PPT timer frequency.  */
     119    uint32_t        uTimerHz;
     120    /** The number of times the PPT was changed. */
     121    uint32_t        cChanges;
     122    /** The number of times the PPT was started. */
     123    uint32_t        cStarts;
     124} GVMMSTATSHOSTCPU;
     125/** Pointer to the GVMM per host CPU statistics. */
     126typedef GVMMSTATSHOSTCPU *PGVMMSTATSHOSTCPU;
     127
     128/**
    107129 * The GMM statistics.
    108130 */
     
    110132{
    111133    /** The VM statistics if a VM was specified. */
    112     GVMMSTATSSCHED  SchedVM;
     134    GVMMSTATSSCHED      SchedVM;
    113135    /** The sum statistics of all VMs accessible to the caller. */
    114     GVMMSTATSSCHED  SchedSum;
     136    GVMMSTATSSCHED      SchedSum;
    115137    /** The number of VMs accessible to the caller. */
    116     uint32_t        cVMs;
     138    uint32_t            cVMs;
    117139    /** The number of emulation threads in those VMs. */
    118     uint32_t        cEMTs;
     140    uint32_t            cEMTs;
     141    /** Padding.  */
     142    uint32_t            u32Padding;
     143    /** The number of valid entries in aHostCpus. */
     144    uint32_t            cHostCpus;
     145    /** Per host CPU statistics. */
     146    GVMMSTATSHOSTCPU    aHostCpus[RTCPUSET_MAX_CPUS];
    119147} GVMMSTATS;
    120148/** Pointer to the GVMM statistics. */
  • trunk/include/VBox/stam.h

    r30684 r32796  
    216216    /** Percentage. */
    217217    STAMUNIT_PCT,
     218    /** Hertz. */
     219    STAMUNIT_HZ,
    218220    /** The end (exclusive). */
    219221    STAMUNIT_END
  • trunk/include/VBox/uvm.h

    r32190 r32796  
    125125        struct STAMUSERPERVM    s;
    126126#endif
    127         uint8_t                 padding[256];
     127        uint8_t                 padding[4096];
    128128    } stam;
    129129
  • trunk/include/VBox/vm.h

    r32137 r32796  
    166166        struct TMCPU        s;
    167167#endif
    168         uint8_t             padding[256];       /* multiple of 64 */
     168        uint8_t             padding[384];       /* multiple of 64 */
    169169    } tm;
    170170
     
    207207
    208208    /** Align the following members on page boundrary. */
    209     uint8_t                 abAlignment2[192];
     209    uint8_t                 abAlignment2[64];
    210210
    211211    /** PGM part. */
Note: See TracChangeset for help on using the changeset viewer.

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