summaryrefslogtreecommitdiffstats
path: root/include/trace/events/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-01-21 14:31:52 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 16:36:05 +0100
commit0c04851c0c093ce98ab4ca69556480d779292418 (patch)
tree58562c88457cf9dc9650b963aec974fe58ab9351 /include/trace/events/kvm.h
parentKVM: Optimize kvm_read_cr[04]_bits() (diff)
downloadlinux-0c04851c0c093ce98ab4ca69556480d779292418.tar.xz
linux-0c04851c0c093ce98ab4ca69556480d779292418.zip
KVM: trace guest fpu loads and unloads
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include/trace/events/kvm.h')
-rw-r--r--include/trace/events/kvm.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/trace/events/kvm.h b/include/trace/events/kvm.h
index dbe108455275..8abdc1230143 100644
--- a/include/trace/events/kvm.h
+++ b/include/trace/events/kvm.h
@@ -145,6 +145,25 @@ TRACE_EVENT(kvm_mmio,
__entry->len, __entry->gpa, __entry->val)
);
+#define kvm_fpu_load_symbol \
+ {0, "unload"}, \
+ {1, "load"}
+
+TRACE_EVENT(kvm_fpu,
+ TP_PROTO(int load),
+ TP_ARGS(load),
+
+ TP_STRUCT__entry(
+ __field( u32, load )
+ ),
+
+ TP_fast_assign(
+ __entry->load = load;
+ ),
+
+ TP_printk("%s", __print_symbolic(__entry->load, kvm_fpu_load_symbol))
+);
+
#endif /* _TRACE_KVM_MAIN_H */
/* This part must be outside protection */