X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-probe-kvm-x86.c;h=fa3f9dccb08f345ac0e45bf70713e154415f438e;hb=e064edf1436e3d6edbab9d6954585b444c8743ed;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..fa3f9dcc 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 (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 @@ -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 ");