[PATCH 3 of 3] Add new KVM TRACE events

Jerone Young
2008-06-20T04:24:05Z

1 file changed, 5 insertions(+)
include/linux/kvm_host.h | 5 +++++

Add new kvm trace events.
- context switch
- TLB write
- TLB invalidate
- guest TLB write
- shadow TLB write

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>

diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -362,6 +362,11 @@ void kvm_trace_cleanup(void);
#define KVM_TRC_LMSW (KVM_TRC_HANDLER + 0x13)
#define KVM_TRC_APIC_ACCESS (KVM_TRC_HANDLER + 0x14)
#define KVM_TRC_TDP_FAULT (KVM_TRC_HANDLER + 0x15)
+#define KVM_TRC_CONT_SWITCH (KVM_TRC_HANDLER + 0x16) /* context switch */
+#define KVM_TRC_TLB_WRITE (KVM_TRC_HANDLER + 0x17) /* TLB write */
+#define KVM_TRC_TLB_INVAL (KVM_TRC_HANDLER + 0x18) /* TLB invalidate */
+#define KVM_TRC_GTLB_WRITE (KVM_TRC_HANDLER + 0x19) /* guest TLB write */
+#define KVM_TRC_STLB_WRITE (KVM_TRC_HANDLER + 0x20) /* shadow TLB write */
#else
static inline
int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg)