From: punit.agrawal@arm.com (Punit Agrawal)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 5/8] KVM: Add event to trace tlb invalidations
Date: Wed, 26 Oct 2016 18:41:45 +0100 [thread overview]
Message-ID: <20161026174148.17172-6-punit.agrawal@arm.com> (raw)
In-Reply-To: <20161026174148.17172-1-punit.agrawal@arm.com>
As TLB operations can have an impact on system performance, add a trace
event to enable monitoring of guest TLB maintenance operations.
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
---
include/trace/events/kvm.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/include/trace/events/kvm.h b/include/trace/events/kvm.h
index 8ade3eb..4b3d07e 100644
--- a/include/trace/events/kvm.h
+++ b/include/trace/events/kvm.h
@@ -393,6 +393,23 @@ TRACE_EVENT(kvm_halt_poll_ns,
#define trace_kvm_halt_poll_ns_shrink(vcpu_id, new, old) \
trace_kvm_halt_poll_ns(false, vcpu_id, new, old)
+TRACE_EVENT(kvm_tlb_invalidate,
+ TP_PROTO(unsigned long vcpu_pc, u32 opcode),
+ TP_ARGS(vcpu_pc, opcode),
+
+ TP_STRUCT__entry(
+ __field(unsigned long, vcpu_pc)
+ __field(u32, opcode)
+ ),
+
+ TP_fast_assign(
+ __entry->vcpu_pc = vcpu_pc;
+ __entry->opcode = opcode;
+ ),
+
+ TP_printk("vcpu_pc=0x%16lx opcode=%08x", __entry->vcpu_pc, __entry->opcode)
+);
+
#endif /* _TRACE_KVM_MAIN_H */
/* This part must be outside protection */
--
2.9.3
next prev parent reply other threads:[~2016-10-26 17:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 17:41 [PATCH v2 0/8] Add support for monitoring guest TLB operations Punit Agrawal
2016-10-26 17:41 ` [PATCH v2 1/8] arm64/kvm: hyp: tlb: use __tlbi() helper Punit Agrawal
2016-10-26 17:41 ` [PATCH v2 2/8] KVM: Track the pid of the VM process Punit Agrawal
2016-10-26 17:41 ` [PATCH v2 3/8] perf/trace: Add notification for perf trace events Punit Agrawal
2016-10-26 17:41 ` [PATCH v2 4/8] KVM: arm/arm64: Register perf trace event notifier Punit Agrawal
2016-10-26 17:41 ` Punit Agrawal [this message]
2016-10-26 17:41 ` [PATCH v2 6/8] arm: KVM: Handle trappable TLB instructions Punit Agrawal
2016-10-26 17:41 ` [PATCH v2 7/8] arm64: " Punit Agrawal
2016-10-26 17:41 ` [PATCH v2 8/8] KVM: arm/arm64: Enable selective trapping of " Punit Agrawal
2016-11-08 17:19 ` [PATCH v2 0/8] Add support for monitoring guest TLB operations Punit Agrawal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161026174148.17172-6-punit.agrawal@arm.com \
--to=punit.agrawal@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox