ia64/linux-2.6.18-xen.hg

changeset 557:8792274adfd0

xen: Sync sysctl.h for xen cpuidle statistic interface.
Signed-off-by: Wei Gang <gang.wei@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed May 21 11:00:28 2008 +0100 (2008-05-21)
parents 6b0a85eb5155
children 1e8c3287b395
files include/xen/interface/sysctl.h
line diff
     1.1 --- a/include/xen/interface/sysctl.h	Tue May 20 11:33:33 2008 +0900
     1.2 +++ b/include/xen/interface/sysctl.h	Wed May 21 11:00:28 2008 +0100
     1.3 @@ -233,20 +233,35 @@ struct pm_px_stat {
     1.4  typedef struct pm_px_stat pm_px_stat_t;
     1.5  DEFINE_XEN_GUEST_HANDLE(pm_px_stat_t);
     1.6  
     1.7 +struct pm_cx_stat {
     1.8 +    uint32_t nr;    /* entry nr in triggers & residencies, including C0 */
     1.9 +    uint32_t last;  /* last Cx state */
    1.10 +    uint64_aligned_t idle_time;                 /* idle time from boot */
    1.11 +    XEN_GUEST_HANDLE_64(uint64) triggers;    /* Cx trigger counts */
    1.12 +    XEN_GUEST_HANDLE_64(uint64) residencies; /* Cx residencies */
    1.13 +};
    1.14 +
    1.15  struct xen_sysctl_get_pmstat {
    1.16 -#define PMSTAT_get_max_px   0x11
    1.17 -#define PMSTAT_get_pxstat   0x12
    1.18 -#define PMSTAT_reset_pxstat 0x13
    1.19 +#define PMSTAT_CATEGORY_MASK 0xf0
    1.20 +#define PMSTAT_PX            0x10
    1.21 +#define PMSTAT_CX            0x20
    1.22 +#define PMSTAT_get_max_px    (PMSTAT_PX | 0x1)
    1.23 +#define PMSTAT_get_pxstat    (PMSTAT_PX | 0x2)
    1.24 +#define PMSTAT_reset_pxstat  (PMSTAT_PX | 0x3)
    1.25 +#define PMSTAT_get_max_cx    (PMSTAT_CX | 0x1)
    1.26 +#define PMSTAT_get_cxstat    (PMSTAT_CX | 0x2)
    1.27 +#define PMSTAT_reset_cxstat  (PMSTAT_CX | 0x3)
    1.28      uint32_t type;
    1.29      uint32_t cpuid;
    1.30      union {
    1.31          struct pm_px_stat getpx;
    1.32 -        /* other struct for cx, tx, etc */
    1.33 +        struct pm_cx_stat getcx;
    1.34 +        /* other struct for tx, etc */
    1.35      } u;
    1.36  };
    1.37  typedef struct xen_sysctl_get_pmstat xen_sysctl_get_pmstat_t;
    1.38  DEFINE_XEN_GUEST_HANDLE(xen_sysctl_get_pmstat_t);
    1.39 - 
    1.40 +
    1.41  struct xen_sysctl {
    1.42      uint32_t cmd;
    1.43      uint32_t interface_version; /* XEN_SYSCTL_INTERFACE_VERSION */