ia64/linux-2.6.18-xen.hg

changeset 555:8ce60d057d0c

Update public Xen sysctl.h file.
Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri May 16 09:36:51 2008 +0100 (2008-05-16)
parents 12e74c1433a6
children 6b0a85eb5155
files include/xen/interface/sysctl.h
line diff
     1.1 --- a/include/xen/interface/sysctl.h	Thu May 15 15:15:09 2008 +0100
     1.2 +++ b/include/xen/interface/sysctl.h	Fri May 16 09:36:51 2008 +0100
     1.3 @@ -212,6 +212,40 @@ struct xen_sysctl_availheap {
     1.4  };
     1.5  typedef struct xen_sysctl_availheap xen_sysctl_availheap_t;
     1.6  DEFINE_XEN_GUEST_HANDLE(xen_sysctl_availheap_t);
     1.7 +
     1.8 +#define XEN_SYSCTL_get_pmstat        10
     1.9 +struct pm_px_val {
    1.10 +    uint64_aligned_t freq;        /* Px core frequency */
    1.11 +    uint64_aligned_t residency;   /* Px residency time */
    1.12 +    uint64_aligned_t count;       /* Px transition count */
    1.13 +};
    1.14 +typedef struct pm_px_val pm_px_val_t;
    1.15 +DEFINE_XEN_GUEST_HANDLE(pm_px_val_t);
    1.16 +
    1.17 +struct pm_px_stat {
    1.18 +    uint8_t total;        /* total Px states */
    1.19 +    uint8_t usable;       /* usable Px states */
    1.20 +    uint8_t last;         /* last Px state */
    1.21 +    uint8_t cur;          /* current Px state */
    1.22 +    XEN_GUEST_HANDLE_64(uint64) trans_pt;   /* Px transition table */
    1.23 +    XEN_GUEST_HANDLE_64(pm_px_val_t) pt;
    1.24 +};
    1.25 +typedef struct pm_px_stat pm_px_stat_t;
    1.26 +DEFINE_XEN_GUEST_HANDLE(pm_px_stat_t);
    1.27 +
    1.28 +struct xen_sysctl_get_pmstat {
    1.29 +#define PMSTAT_get_max_px   0x11
    1.30 +#define PMSTAT_get_pxstat   0x12
    1.31 +#define PMSTAT_reset_pxstat 0x13
    1.32 +    uint32_t type;
    1.33 +    uint32_t cpuid;
    1.34 +    union {
    1.35 +        struct pm_px_stat getpx;
    1.36 +        /* other struct for cx, tx, etc */
    1.37 +    } u;
    1.38 +};
    1.39 +typedef struct xen_sysctl_get_pmstat xen_sysctl_get_pmstat_t;
    1.40 +DEFINE_XEN_GUEST_HANDLE(xen_sysctl_get_pmstat_t);
    1.41   
    1.42  struct xen_sysctl {
    1.43      uint32_t cmd;
    1.44 @@ -226,6 +260,7 @@ struct xen_sysctl {
    1.45          struct xen_sysctl_debug_keys        debug_keys;
    1.46          struct xen_sysctl_getcpuinfo        getcpuinfo;
    1.47          struct xen_sysctl_availheap         availheap;
    1.48 +        struct xen_sysctl_get_pmstat        get_pmstat;
    1.49          uint8_t                             pad[128];
    1.50      } u;
    1.51  };