X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-probe-kvm-x86-mmu.c;h=1710cfc4c28c23cb2f0a91ec14cbc4d9ca92a38a;hb=45acd1f8016f828cab288ccf77d88e3a9d6ab5e3;hp=ab30b2aa9bab87d791fb81e6c6c772056240db07;hpb=28bba019c567d296a555113ab1e8d768644dd5cf;p=lttng-modules.git diff --git a/probes/lttng-probe-kvm-x86-mmu.c b/probes/lttng-probe-kvm-x86-mmu.c index ab30b2aa..1710cfc4 100644 --- a/probes/lttng-probe-kvm-x86-mmu.c +++ b/probes/lttng-probe-kvm-x86-mmu.c @@ -23,6 +23,13 @@ #include #include #include "../lttng-tracer.h" +#include "../lttng-kernel-version.h" + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) +#include +#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