[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1437061722-15438-2-git-send-email-hemant@linux.vnet.ibm.com>
Date: Thu, 16 Jul 2015 21:18:42 +0530
From: Hemant Kumar <hemant@...ux.vnet.ibm.com>
To: linuxppc-dev@...ts.ozlabs.org
Cc: linux-kernel@...r.kernel.org, acme@...nel.org, mingo@...nel.org,
mpe@...erman.id.au, sukadev@...ux.vnet.ibm.com,
maddy@...ux.vnet.ibm.com, warrier@...ux.vnet.ibm.com,
srikar@...ux.vnet.ibm.com, paulus@...ba.org,
scottwood@...escale.com, Hemant Kumar <hemant@...ux.vnet.ibm.com>
Subject: [PATCH v5 2/2] perf,kvm/ppc: Add hcall related info to kvm_perf.h
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@...ux.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists