From: Mathieu Desnoyers Date: Mon, 20 Jan 2014 16:37:25 +0000 (-0500) Subject: Update kvm instrumentation to Linux 3.13 X-Git-Tag: v2.4.0-rc3~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0d019e70c4c0acccbaed913487c4f0ce96aeda17;p=lttng-modules.git Update kvm instrumentation to Linux 3.13 Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/kvm.h b/instrumentation/events/lttng-module/kvm.h index ba4e528d..99d1788a 100644 --- a/instrumentation/events/lttng-module/kvm.h +++ b/instrumentation/events/lttng-module/kvm.h @@ -325,6 +325,29 @@ DEFINE_EVENT(kvm_async_pf_nopresent_ready, kvm_async_pf_ready, TP_ARGS(token, gva) ) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)) + +TRACE_EVENT( + kvm_async_pf_completed, + TP_PROTO(unsigned long address, u64 gva), + TP_ARGS(address, gva), + + TP_STRUCT__entry( + __field(unsigned long, address) + __field(u64, gva) + ), + + TP_fast_assign( + tp_assign(address, address) + tp_assign(gva, gva) + ), + + TP_printk("gva %#llx address %#lx", __entry->gva, + __entry->address) +) + +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)) */ + TRACE_EVENT( kvm_async_pf_completed, TP_PROTO(unsigned long address, struct page *page, u64 gva), @@ -346,6 +369,8 @@ TRACE_EVENT( __entry->address, __entry->pfn) ) +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0)) */ + #endif #endif