Fix: kvm instrumentation for 4.2 kernels
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Jul 2015 17:02:03 +0000 (13:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Jul 2015 17:03:15 +0000 (13:03 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h

index bbfce67884794fc29c172a349ff03caf80dade22..165d7d6a7c798148706351a989d75a8a6728e561 100644 (file)
@@ -2,9 +2,14 @@
 #define LTTNG_TRACE_KVMMMU_H
 
 #include "../../../../../../probes/lttng-tracepoint-event.h"
-#include <linux/ftrace_event.h>
 #include <linux/version.h>
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+#include <linux/trace_events.h>
+#else /* if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)) */
+#include <linux/ftrace_event.h>
+#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)) */
+
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM kvmmmu
 
This page took 0.025628 seconds and 4 git commands to generate.