diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2015-08-10 16:34:33 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-08-20 07:24:26 -0400 |
commit | 5f141548824cebbff2e838ff401c34e667797467 (patch) | |
tree | 873166173fde6592bb01dbd90436ced58d8b7c06 /arch/x86/include | |
parent | a11f4f0a4e18b4bdc7d5e36438711e038b7a1f74 (diff) |
xen/PMU: Sysfs interface for setting Xen PMU mode
Set Xen's PMU mode via /sys/hypervisor/pmu/pmu_mode. Add XENPMU hypercall.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/xen/hypercall.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index ca08a27b90b3..83aea8055119 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h | |||
@@ -465,6 +465,12 @@ HYPERVISOR_tmem_op( | |||
465 | return _hypercall1(int, tmem_op, op); | 465 | return _hypercall1(int, tmem_op, op); |
466 | } | 466 | } |
467 | 467 | ||
468 | static inline int | ||
469 | HYPERVISOR_xenpmu_op(unsigned int op, void *arg) | ||
470 | { | ||
471 | return _hypercall2(int, xenpmu_op, op, arg); | ||
472 | } | ||
473 | |||
468 | static inline void | 474 | static inline void |
469 | MULTI_fpu_taskswitch(struct multicall_entry *mcl, int set) | 475 | MULTI_fpu_taskswitch(struct multicall_entry *mcl, int set) |
470 | { | 476 | { |