Fix: add missing x86 mmutrace kernel header include
[lttng-modules.git] / probes / lttng-probe-kvm-x86-mmu.c
index ab30b2aa9bab87d791fb81e6c6c772056240db07..5231615dac9789666117d7e42b80caeccf96bd14 100644 (file)
 #include <linux/module.h>
 #include <linux/kvm_host.h>
 #include "../lttng-tracer.h"
+#include "../lttng-kernel-version.h"
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
+#include <kvm/iodev.h>
+#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */
+#include <../../virt/kvm/iodev.h>
+#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */
 
 /*
  * Create the tracepoint static inlines from the kernel to validate that our
  */
 #include "../wrapper/tracepoint.h"
 
+#include <../../arch/x86/kvm/mmutrace.h>
+
+#undef TRACE_INCLUDE_PATH
+#undef TRACE_INCLUDE_FILE
+
 /*
  * Create LTTng tracepoint probes.
  */
This page took 0.024472 seconds and 4 git commands to generate.