aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/trace.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-02-24 12:59:14 -0500
committerAvi Kivity <avi@redhat.com>2010-04-25 06:53:10 -0400
commit2e554e8d67926024b01e97d2fe652810165354e2 (patch)
treea0ace1e673875471425235b482c2fb645c9caa88 /arch/x86/kvm/trace.h
parentecf1405df235da3efea213427ac7da7f816e9d06 (diff)
KVM: SVM: Add kvm_nested_intercepts tracepoint
This patch adds a tracepoint to get information about the most important intercept bitmasks from the nested vmcb. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/trace.h')
-rw-r--r--arch/x86/kvm/trace.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h
index 12f8d2dee984..17b52ccd9774 100644
--- a/arch/x86/kvm/trace.h
+++ b/arch/x86/kvm/trace.h
@@ -419,6 +419,28 @@ TRACE_EVENT(kvm_nested_vmrun,
419 __entry->npt ? "on" : "off") 419 __entry->npt ? "on" : "off")
420); 420);
421 421
422TRACE_EVENT(kvm_nested_intercepts,
423 TP_PROTO(__u16 cr_read, __u16 cr_write, __u32 exceptions, __u64 intercept),
424 TP_ARGS(cr_read, cr_write, exceptions, intercept),
425
426 TP_STRUCT__entry(
427 __field( __u16, cr_read )
428 __field( __u16, cr_write )
429 __field( __u32, exceptions )
430 __field( __u64, intercept )
431 ),
432
433 TP_fast_assign(
434 __entry->cr_read = cr_read;
435 __entry->cr_write = cr_write;
436 __entry->exceptions = exceptions;
437 __entry->intercept = intercept;
438 ),
439
440 TP_printk("cr_read: %04x cr_write: %04x excp: %08x intercept: %016llx",
441 __entry->cr_read, __entry->cr_write, __entry->exceptions,
442 __entry->intercept)
443);
422/* 444/*
423 * Tracepoint for #VMEXIT while nested 445 * Tracepoint for #VMEXIT while nested
424 */ 446 */