X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fwrapper%2Fobjtool.h;h=9b3f4898a39bfae0fa60cc10d680f092397371a7;hb=02060928919e1efc07228be0fc0b77a6b1406156;hp=3b997cae56d7837ca6bcd4493d7794c2fc16c074;hpb=d90539367a52330d331698eb2cca569c3782c863;p=lttng-modules.git diff --git a/include/wrapper/objtool.h b/include/wrapper/objtool.h index 3b997cae..9b3f4898 100644 --- a/include/wrapper/objtool.h +++ b/include/wrapper/objtool.h @@ -8,16 +8,17 @@ #ifndef _LTTNG_WRAPPER_OBJTOOL_H #define _LTTNG_WRAPPER_OBJTOOL_H -#include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,10,0) || \ + LTTNG_RHEL_KERNEL_RANGE(4,18,0,372,0,0, 4,19,0,0,0,0)) #include -#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) #include #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) #define LTTNG_STACK_FRAME_NON_STANDARD(func) \ STACK_FRAME_NON_STANDARD(func)