Fix: in_x32_syscall was introduced in v4.7.0
[lttng-modules.git] / src / lttng-syscalls.c
index 9cb0537a3e8b0e2ea38a4c5b42fcc3340d26f9b2..242a101136c32e1f92040c2de6db072e4097aa95 100644 (file)
@@ -31,6 +31,7 @@
 #include <lttng/events.h>
 #include <lttng/events-internal.h>
 #include <lttng/utils.h>
+#include <lttng/kernel-version.h>
 
 #include "lttng-syscalls.h"
 
 
 /* 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 {
This page took 0.030272 seconds and 4 git commands to generate.