From 55d9985e88ca25416b23d7b58cc0cb2e2775f1cd Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 16 Jul 2015 13:02:03 -0400 Subject: [PATCH] Fix: kvm instrumentation for 4.2 kernels Signed-off-by: Mathieu Desnoyers --- .../events/lttng-module/arch/x86/kvm/mmutrace.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h index 6bf6beeb..65dabde9 100644 --- a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h +++ b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h @@ -2,9 +2,14 @@ #define LTTNG_TRACE_KVM_MMU_H #include "../../../../../../probes/lttng-tracepoint-event.h" -#include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)) +#include +#else /* if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)) */ +#include +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)) */ + #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_mmu -- 2.34.1