aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/perfc.c
diff options
context:
space:
mode:
authorSteven Hand <steven@xensource.com>2006-08-28 21:57:34 +0100
committerSteven Hand <steven@xensource.com>2006-08-28 21:57:34 +0100
commit6c35586274021b376b0985008c6af0e3dfc21ffd (patch)
treeb808acdbc75a7366287f588f91b3a6c151a0dab7 /xen/common/perfc.c
parent23d1a29f838615a593355258bbea77c75a6180d0 (diff)
downloadxen-6c35586274021b376b0985008c6af0e3dfc21ffd.tar.gz
xen-6c35586274021b376b0985008c6af0e3dfc21ffd.tar.bz2
xen-6c35586274021b376b0985008c6af0e3dfc21ffd.zip
Fix hypervisor build with performance counters after -unstable
cset 11257:86d26e6ec89b Signed-off-by: Steve Dobbelstein <steved@us.ibm.com>
Diffstat (limited to 'xen/common/perfc.c')
-rw-r--r--xen/common/perfc.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/xen/common/perfc.c b/xen/common/perfc.c
index 92307b2341..73e6189ac0 100644
--- a/xen/common/perfc.c
+++ b/xen/common/perfc.c
@@ -7,6 +7,7 @@
#include <xen/spinlock.h>
#include <xen/mm.h>
#include <xen/guest_access.h>
+#include <public/sysctl.h>
#include <asm/perfc.h>
#undef PERFCOUNTER
@@ -131,12 +132,12 @@ void perfc_reset(unsigned char key)
arch_perfc_reset ();
}
-static dom0_perfc_desc_t perfc_d[NR_PERFCTRS];
-static dom0_perfc_val_t *perfc_vals;
+static xen_sysctl_perfc_desc_t perfc_d[NR_PERFCTRS];
+static xen_sysctl_perfc_val_t *perfc_vals;
static int perfc_nbr_vals;
static int perfc_init = 0;
-static int perfc_copy_info(XEN_GUEST_HANDLE(dom0_perfc_desc_t) desc,
- XEN_GUEST_HANDLE(dom0_perfc_val_t) val)
+static int perfc_copy_info(XEN_GUEST_HANDLE_64(xen_sysctl_perfc_desc_t) desc,
+ XEN_GUEST_HANDLE_64(xen_sysctl_perfc_val_t) val)
{
unsigned int i, j;
unsigned int v = 0;
@@ -171,7 +172,7 @@ static int perfc_copy_info(XEN_GUEST_HANDLE(dom0_perfc_desc_t) desc,
}
perfc_nbr_vals += perfc_d[i].nr_vals;
}
- perfc_vals = xmalloc_array(dom0_perfc_val_t, perfc_nbr_vals);
+ perfc_vals = xmalloc_array(xen_sysctl_perfc_val_t, perfc_nbr_vals);
perfc_init = 1;
}
if (perfc_vals == NULL)
@@ -206,7 +207,7 @@ static int perfc_copy_info(XEN_GUEST_HANDLE(dom0_perfc_desc_t) desc,
}
BUG_ON(v != perfc_nbr_vals);
- if (copy_to_guest(desc, (dom0_perfc_desc_t *)perfc_d, NR_PERFCTRS))
+ if (copy_to_guest(desc, (xen_sysctl_perfc_desc_t *)perfc_d, NR_PERFCTRS))
return -EFAULT;
if (copy_to_guest(val, perfc_vals, perfc_nbr_vals))
return -EFAULT;
@@ -214,7 +215,7 @@ static int perfc_copy_info(XEN_GUEST_HANDLE(dom0_perfc_desc_t) desc,
}
/* Dom0 control of perf counters */
-int perfc_control(dom0_perfccontrol_t *pc)
+int perfc_control(xen_sysctl_perfc_op_t *pc)
{
static DEFINE_SPINLOCK(lock);
int rc;