X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-probe-kvm-x86.c;h=bd3e4e5148f57eee3b262e003b97206f1fae7e5b;hb=refs%2Fheads%2Fstable-2.10;hp=a15a4e958250119675fe5eb426fd24071ab916b6;hpb=13ab8b0a749053960f81a4924a3ed27775518f94;p=lttng-modules.git diff --git a/probes/lttng-probe-kvm-x86.c b/probes/lttng-probe-kvm-x86.c index a15a4e95..bd3e4e51 100644 --- a/probes/lttng-probe-kvm-x86.c +++ b/probes/lttng-probe-kvm-x86.c @@ -22,7 +22,14 @@ #include #include -#include "../lttng-tracer.h" +#include +#include + +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,1,0)) +#include +#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,1,0)) */ +#include <../../virt/kvm/iodev.h> +#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,1,0)) */ /* * Create the tracepoint static inlines from the kernel to validate that our @@ -30,7 +37,7 @@ */ #include -#include "../wrapper/tracepoint.h" +#include /* * Create LTTng tracepoint probes. @@ -38,8 +45,8 @@ #define LTTNG_PACKAGE_BUILD #define CREATE_TRACE_POINTS -#define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module/arch/x86/kvm -#include "../instrumentation/events/lttng-module/arch/x86/kvm/trace.h" +#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module/arch/x86/kvm +#include MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Mathieu Desnoyers ");