X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=instrumentation%2Fevents%2Flttng-module%2Farch%2Fx86%2Fkvm%2Ftrace.h;h=5eec16908d36b0ad3475524291b534bb4f2275cd;hb=309370e252e189867745fb31fe5c15c9ff494f34;hp=8e71a7f51f5562db7e3727788b9321e01b2c95d7;hpb=b3c40230ad700b12c39640d8593aece428a2702b;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h index 8e71a7f5..5eec1690 100644 --- a/instrumentation/events/lttng-module/arch/x86/kvm/trace.h +++ b/instrumentation/events/lttng-module/arch/x86/kvm/trace.h @@ -761,6 +761,29 @@ TRACE_EVENT( __entry->gpa_match ? "GPA" : "GVA") ) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) +TRACE_EVENT(kvm_write_tsc_offset, + TP_PROTO(unsigned int vcpu_id, __u64 previous_tsc_offset, + __u64 next_tsc_offset), + TP_ARGS(vcpu_id, previous_tsc_offset, next_tsc_offset), + + TP_STRUCT__entry( + __field( unsigned int, vcpu_id ) + __field( __u64, previous_tsc_offset ) + __field( __u64, next_tsc_offset ) + ), + + TP_fast_assign( + tp_assign(vcpu_id, vcpu_id) + tp_assign(previous_tsc_offset, previous_tsc_offset) + tp_assign(next_tsc_offset, next_tsc_offset) + ), + + TP_printk("vcpu=%u prev=%llu next=%llu", __entry->vcpu_id, + __entry->previous_tsc_offset, __entry->next_tsc_offset) +) +#endif + #ifdef CONFIG_X86_64 #define host_clocks \