X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-probe-kvm-x86.c;h=9b2054d806e088487caccb7ec6449a4f51c10675;hb=45acd1f8016f828cab288ccf77d88e3a9d6ab5e3;hp=a15a4e958250119675fe5eb426fd24071ab916b6;hpb=28bba019c567d296a555113ab1e8d768644dd5cf;p=lttng-modules.git diff --git a/probes/lttng-probe-kvm-x86.c b/probes/lttng-probe-kvm-x86.c index a15a4e95..9b2054d8 100644 --- a/probes/lttng-probe-kvm-x86.c +++ b/probes/lttng-probe-kvm-x86.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