diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-10-09 16:08:31 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 09:32:16 +0200 |
commit | ec1ff79084fccdae0dca9b04b89dcdf3235bbfa1 (patch) | |
tree | fddd8cfce75d88116c2fbcb1cf15e70a3588dfbc /arch/x86/kvm/trace.h | |
parent | 236649de3360916ef85f95c82723af17a25b9179 (diff) | |
download | kernel-common-ec1ff79084fccdae0dca9b04b89dcdf3235bbfa1.tar.gz kernel-common-ec1ff79084fccdae0dca9b04b89dcdf3235bbfa1.tar.bz2 kernel-common-ec1ff79084fccdae0dca9b04b89dcdf3235bbfa1.zip |
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.h | 23 |
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, TP_printk("rip: 0x%016llx\n", __entry->rip) ); + +/* + * Tracepoint for nested #vmexit because of interrupt pending + */ +TRACE_EVENT(kvm_invlpga, + TP_PROTO(__u64 rip, int asid, u64 address), + TP_ARGS(rip, asid, address), + + TP_STRUCT__entry( + __field( __u64, rip ) + __field( int, asid ) + __field( __u64, address ) + ), + + TP_fast_assign( + __entry->rip = rip; + __entry->asid = asid; + __entry->address = address; + ), + + TP_printk("rip: 0x%016llx asid: %d address: 0x%016llx\n", + __entry->rip, __entry->asid, __entry->address) +); #endif /* _TRACE_KVM_H */ /* This part must be outside protection */ |