X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-syscalls.c;h=3399c9b07de90dcc39cc0a28fe69f0fdb4079eea;hb=f75983c2aa4bd35e97ef4d46bcec697e9b0dc9c1;hp=b43dd570a029d1d5b1a4f6160765ae31668a6003;hpb=b260f6996712ed478b3670df5ebd6387fef00044;p=lttng-modules.git diff --git a/lttng-syscalls.c b/lttng-syscalls.c index b43dd570..3399c9b0 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -81,7 +81,7 @@ struct timeval; struct itimerval; struct itimerspec; -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,6,0)) typedef __kernel_old_time_t time_t; #endif @@ -392,6 +392,12 @@ void syscall_entry_probe(void *__data, struct pt_regs *regs, long id) const struct trace_syscall_entry *table, *entry; size_t table_len; +#ifdef CONFIG_X86_X32_ABI + if (in_x32_syscall()) { + /* x32 system calls are not supported. */ + return; + } +#endif if (unlikely(in_compat_syscall())) { struct lttng_syscall_filter *filter = chan->sc_filter; @@ -539,6 +545,12 @@ void syscall_exit_probe(void *__data, struct pt_regs *regs, long ret) size_t table_len; long id; +#ifdef CONFIG_X86_X32_ABI + if (in_x32_syscall()) { + /* x32 system calls are not supported. */ + return; + } +#endif id = syscall_get_nr(current, regs); if (unlikely(in_compat_syscall())) { struct lttng_syscall_filter *filter = chan->sc_filter;