X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=probes%2Flttng-probe-kvm-x86-mmu.c;fp=probes%2Flttng-probe-kvm-x86-mmu.c;h=1710cfc4c28c23cb2f0a91ec14cbc4d9ca92a38a;hb=1de8b2e4c021031e72f0f91c1ac984eb8965079e;hp=ab30b2aa9bab87d791fb81e6c6c772056240db07;hpb=68585516c401e29cb81864c388dfda8399832658;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