aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/trace.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-10-09 10:08:31 -0400
committerAvi Kivity <avi@redhat.com>2009-12-03 02:32:16 -0500
commitec1ff79084fccdae0dca9b04b89dcdf3235bbfa1 (patch)
treefddd8cfce75d88116c2fbcb1cf15e70a3588dfbc /arch/x86/kvm/trace.h
parent236649de3360916ef85f95c82723af17a25b9179 (diff)
KVM: SVM: Add tracepoint for invlpga instruction
This patch adds a tracepoint for the event that the guest executed the INVLPGA instruction. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/trace.h')
-rw-r--r--arch/x86/kvm/trace.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h
index 3cc8f444be14..7e1f08e959bc 100644
--- a/arch/x86/kvm/trace.h
+++ b/arch/x86/kvm/trace.h
@@ -469,6 +469,29 @@ TRACE_EVENT(kvm_nested_intr_vmexit,
469 469
470 TP_printk("rip: 0x%016llx\n", __entry->rip) 470 TP_printk("rip: 0x%016llx\n", __entry->rip)
471); 471);
472
473/*
474 * Tracepoint for nested #vmexit because of interrupt pending
475 */
476TRACE_EVENT(kvm_invlpga,
477 TP_PROTO(__u64 rip, int asid, u64 address),
478 TP_ARGS(rip, asid, address),
479
480 TP_STRUCT__entry(
481 __field( __u64, rip )
482 __field( int, asid )
483 __field( __u64, address )
484 ),
485
486 TP_fast_assign(
487 __entry->rip = rip;
488 __entry->asid = asid;
489 __entry->address = address;
490 ),
491
492 TP_printk("rip: 0x%016llx asid: %d address: 0x%016llx\n",
493 __entry->rip, __entry->asid, __entry->address)
494);
472#endif /* _TRACE_KVM_H */ 495#endif /* _TRACE_KVM_H */
473 496
474/* This part must be outside protection */ 497/* This part must be outside protection */