Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1186019

[PATCH v5 2/2] perf,kvm/ppc: Add hcall related info to kvm_perf.h

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Hemant Kumar <hemant@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject [PATCH v5 2/2] perf,kvm/ppc: Add hcall related info to kvm_perf.h
Date Thu, 16 Jul 2015 18:00:02 +0200
Message-ID <pMTJM-2N2-11@gated-at.bofh.it> (permalink)
References <pMTJM-2N2-3@gated-at.bofh.it>
X-Original-To linuxppc-dev@lists.ozlabs.org
X-Helo d23dlp02.au.ibm.com
X-Mailfrom hemant@linux.vnet.ibm.com
X-Rcptto linux-kernel@vger.kernel.org
X-Mailer git-send-email 1.9.3
X-Tm-As-Mml disable
X-Content-Scanned Fidelis XPS MAILER
X-Cbid 15071615-0025-0000-0000-000001D080F1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 38
Organization linux.* mail to news gateway
X-Original-Cc linux-kernel@vger.kernel.org, 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, scottwood@freescale.com, Hemant Kumar <hemant@linux.vnet.ibm.com>
X-Original-Date Thu, 16 Jul 2015 21:18:42 +0530
X-Original-Message-ID <1437061722-15438-2-git-send-email-hemant@linux.vnet.ibm.com>
X-Original-References <1437061722-15438-1-git-send-email-hemant@linux.vnet.ibm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1186019

Show key headers only | View raw


To analyze the hcalls with perf, we need the hcall related tracepoints
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 as to what
tracepoints to look for if we are using "perf kvm stat record" to
collect guest hcall statistics.

Signed-off-by: Hemant Kumar <hemant@linux.vnet.ibm.com>
---
Changes:
- Not exporting the hcall related codes and names through uapi compared to
  previous patch.

 arch/powerpc/include/uapi/asm/kvm_perf_book3s.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/powerpc/include/uapi/asm/kvm_perf_book3s.h b/arch/powerpc/include/uapi/asm/kvm_perf_book3s.h
index 8c8d8c2..1378a8d 100644
--- a/arch/powerpc/include/uapi/asm/kvm_perf_book3s.h
+++ b/arch/powerpc/include/uapi/asm/kvm_perf_book3s.h
@@ -11,4 +11,8 @@
 #define KVM_EXIT_TRACE "kvm_hv:kvm_guest_exit"
 #define KVM_EXIT_REASON "trap"
 
+#define KVM_HCALL_ENTRY_TRACE "kvm_hv:kvm_hcall_enter"
+#define KVM_HCALL_EXIT_TRACE "kvm_hv:kvm_hcall_exit"
+#define KVM_HCALL_REASON "req"
+
 #endif /* _ASM_POWERPC_KVM_PERF_BOOK3S_H */
-- 
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/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 1/2] perf,kvm/ppc: Add kvm_perf.h for powerpc Hemant Kumar <hemant@linux.vnet.ibm.com> - 2015-07-16 18:00 +0200
  [PATCH v5 2/2] perf,kvm/ppc: Add hcall related info to kvm_perf.h Hemant Kumar <hemant@linux.vnet.ibm.com> - 2015-07-16 18:00 +0200
  Re: [PATCH v5 1/2] perf,kvm/ppc: Add kvm_perf.h for powerpc Scott Wood <scottwood@freescale.com> - 2015-07-16 22:30 +0200

csiph-web