From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 14 Jul 2006 13:01:25 +0000 (+0100) Subject: [SVM] Add perfcounter svmexits array with correct size creation. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15831 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=164567df7b1410c1e9f76d07d9ceac3ab6e30f3c;p=xen.git [SVM] Add perfcounter svmexits array with correct size creation. Signed-off-by: Tom Woller --- diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index af2fa4d420..0fc10b0715 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -2710,7 +2710,7 @@ asmlinkage void svm_vmexit_handler(struct cpu_user_regs regs) domain_crash_synchronous(); } - perfc_incra(vmexits, exit_reason); + perfc_incra(svmexits, exit_reason); eip = vmcb->rip; #ifdef SVM_EXTRA_DEBUG diff --git a/xen/include/xen/perfc_defn.h b/xen/include/xen/perfc_defn.h index f2cf7b3388..ec477a72e3 100644 --- a/xen/include/xen/perfc_defn.h +++ b/xen/include/xen/perfc_defn.h @@ -30,6 +30,8 @@ PERFCOUNTER_ARRAY(exceptions, "exceptions", 32) #define VMX_PERF_VECTOR_SIZE 0x20 PERFCOUNTER_ARRAY(vmexits, "vmexits", VMX_PERF_EXIT_REASON_SIZE) PERFCOUNTER_ARRAY(cause_vector, "cause vector", VMX_PERF_VECTOR_SIZE) +#define SVM_PERF_EXIT_REASON_SIZE (1+136) +PERFCOUNTER_ARRAY(svmexits, "SVMexits", SVM_PERF_EXIT_REASON_SIZE) PERFCOUNTER_CPU(seg_fixups, "segmentation fixups")