X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-probe-vmscan.c;h=0205c7eefba894a7212547aaa7855ca917b4cdae;hb=49bafb1440249c0f4e7d5161ef0ef8ae871102bf;hp=2abd0e46b6e5274551903d7ca44aa1b6095aac2f;hpb=5fa38800d965d5fa35a2c0c9a93e330711ec87e0;p=lttng-modules.git diff --git a/probes/lttng-probe-vmscan.c b/probes/lttng-probe-vmscan.c index 2abd0e46..0205c7ee 100644 --- a/probes/lttng-probe-vmscan.c +++ b/probes/lttng-probe-vmscan.c @@ -30,6 +30,8 @@ */ #include +#include "../lttng-kernel-version.h" + /* * Create LTTng tracepoint probes. */ @@ -37,7 +39,8 @@ #define CREATE_TRACE_POINTS #define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)) +#if (LINUX_VERSION_CODE <= KERNEL_VERSION(3,0,38)) || \ + LTTNG_KERNEL_RANGE(3,1,0, 3,1,10) typedef int isolate_mode_t; #endif