X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-syscalls.c;h=97a12c4835a896e0a0e050c98d5aa5cd0e25af5a;hb=56bc8397c8304a6b86828e4dd658d07f05577f72;hp=3399c9b07de90dcc39cc0a28fe69f0fdb4079eea;hpb=f75983c2aa4bd35e97ef4d46bcec697e9b0dc9c1;p=lttng-modules.git diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 3399c9b0..97a12c48 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -27,6 +27,7 @@ #include #include #include +#include #ifndef CONFIG_COMPAT # ifndef is_compat_task @@ -36,7 +37,14 @@ /* in_compat_syscall appears in kernel 4.6. */ #ifndef in_compat_syscall - #define in_compat_syscall() is_compat_task() +# define in_compat_syscall() is_compat_task() +#endif + +/* in_x32_syscall appears in kernel 4.7. */ +#if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(4,7,0)) +# ifdef CONFIG_X86_X32_ABI +# define in_x32_syscall() is_x32_task() +# endif #endif enum sc_type {