Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752564AbbHaGsO (ORCPT ); Mon, 31 Aug 2015 02:48:14 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:38543 "EHLO e28smtp07.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbbHaGsN (ORCPT ); Mon, 31 Aug 2015 02:48:13 -0400 X-Helo: d28dlp02.in.ibm.com X-MailFrom: hemant@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org From: Hemant Kumar To: linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, scottwood@freescale.com, acme@kernel.org, mingo@kernel.org, mpe@ellerman.id.au, sukadev@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com, warrier@linux.vnet.ibm.com, srikar@linux.vnet.ibm.com, paulus@samba.org, Hemant Kumar Subject: [PATCH v6 2/2] perf,kvm/powerpc: Add hcall related info to kvm_perf.h Date: Mon, 31 Aug 2015 12:18:01 +0530 Message-Id: <1441003681-10259-2-git-send-email-hemant@linux.vnet.ibm.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1441003681-10259-1-git-send-email-hemant@linux.vnet.ibm.com> References: <1441003681-10259-1-git-send-email-hemant@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15083106-0025-0000-0000-000006B142A7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 36 To analyze the hcalls with perf kvm stat, we need the hcall related tracepoint information to be exported. This patch adds hcall tracepoints "kvm_hv:kvm_hcall_enter" and "kvm_hv:kvm_hcall_exit" to kvm_perf.h. So, perf will now know to look for these tracepoints if "perf kvm stat record" is invoked to collect guest hcall statistics. Signed-off-by: Hemant Kumar --- arch/powerpc/include/uapi/asm/kvm_perf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/include/uapi/asm/kvm_perf.h b/arch/powerpc/include/uapi/asm/kvm_perf.h index 68f105e..2af6290 100644 --- a/arch/powerpc/include/uapi/asm/kvm_perf.h +++ b/arch/powerpc/include/uapi/asm/kvm_perf.h @@ -12,6 +12,10 @@ #define KVM_EXIT_TRACE_HV "kvm_hv:kvm_guest_exit" #define KVM_EXIT_REASON_HV "trap" +#define KVM_HCALL_ENTRY_TRACE_HV "kvm_hv:kvm_hcall_enter" +#define KVM_HCALL_EXIT_TRACE_HV "kvm_hv:kvm_hcall_exit" +#define KVM_HCALL_REASON_HV "req" + /* This is to shut the compiler up */ #define KVM_ENTRY_TRACE "" #define KVM_EXIT_TRACE "" -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/