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:02:03 +0000 (13:02 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h

index 6bf6beeb36aa23f995eb482157803f97729fecf5..65dabde9ff39b495b2bfaa6ceadba58d443f0b5d 100644 (file)
@@ -2,9 +2,14 @@
 #define LTTNG_TRACE_KVM_MMU_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 kvm_mmu
 
This page took 0.026013 seconds and 4 git commands to generate.