Update kvm instrumentation to Linux 3.13
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 20 Jan 2014 16:37:25 +0000 (11:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 20 Jan 2014 16:37:25 +0000 (11:37 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/kvm.h

index ba4e528dea47be8cfa4174ad7eaa1c302e7156b8..99d1788a924f3adcd045e5edc5a881555101cf4f 100644 (file)
@@ -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
This page took 0.027566 seconds and 4 git commands to generate.