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