diff options
author | Dietmar Hahn <dietmar.hahn@ts.fujitsu.com> | 2013-04-08 17:58:16 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-04-08 17:58:16 +0200 |
commit | 2b0fca9d8354e330e47f7d7bd7a34eda431fb370 (patch) | |
tree | f48c36ceb4c89df91fbd69b6c7e0953b269eedba /xen/include/asm-x86/hvm | |
parent | 0d2c79a9fae13993760b0c21473d7c7700759714 (diff) | |
download | xen-2b0fca9d8354e330e47f7d7bd7a34eda431fb370.tar.gz xen-2b0fca9d8354e330e47f7d7bd7a34eda431fb370.tar.bz2 xen-2b0fca9d8354e330e47f7d7bd7a34eda431fb370.zip |
vpmu intel: Dump vpmu infos in 'q' keyhandler
This patch extends the printout of the VPCU infos of the keyhandler 'q'.
If vPMU is enabled is on the VCPU and active lines are printed like
(when running HVM openSuSE-12.3 with 'perf top');
(XEN) vPMU running
(XEN) general_0: 0x000000ffffff3ae1 ctrl: 0x000000000053003c
(XEN) fixed_1: 0x000000ff90799188 ctrl: 0xb
This means general counter 0 and fixed counter 1 are running with showing
their contents and the contents of their configuration msr.
Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Jun Nakajima <jun.nakajima@intel.com>
Diffstat (limited to 'xen/include/asm-x86/hvm')
-rw-r--r-- | xen/include/asm-x86/hvm/vpmu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/vpmu.h b/xen/include/asm-x86/hvm/vpmu.h index 84e4c42ee7..cd31f5eb0b 100644 --- a/xen/include/asm-x86/hvm/vpmu.h +++ b/xen/include/asm-x86/hvm/vpmu.h @@ -54,6 +54,7 @@ struct arch_vpmu_ops { void (*arch_vpmu_destroy)(struct vcpu *v); void (*arch_vpmu_save)(struct vcpu *v); void (*arch_vpmu_load)(struct vcpu *v); + void (*arch_vpmu_dump)(struct vcpu *v); }; int vmx_vpmu_initialise(struct vcpu *, unsigned int flags); @@ -87,6 +88,7 @@ void vpmu_initialise(struct vcpu *v); void vpmu_destroy(struct vcpu *v); void vpmu_save(struct vcpu *v); void vpmu_load(struct vcpu *v); +void vpmu_dump(struct vcpu *v); extern int acquire_pmu_ownership(int pmu_ownership); extern void release_pmu_ownership(int pmu_ownership); |