Fix: build x86 kvm probes on kernels >= 4.1-rc1
[lttng-modules.git] / probes / lttng-probe-kvm-x86-mmu.c
index ab30b2aa9bab87d791fb81e6c6c772056240db07..1710cfc4c28c23cb2f0a91ec14cbc4d9ca92a38a 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
This page took 0.022554 seconds and 4 git commands to generate.