X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flttng-syscalls.c;h=9cb0537a3e8b0e2ea38a4c5b42fcc3340d26f9b2;hb=5b5778b1c1ada0402d023301ed49e94661f2d23f;hp=2fb6eda314390cefc10529a37332aaad6848f7d8;hpb=47af60228abfb1a7bf20bf1d0709f72a0b978797;p=lttng-modules.git diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index 2fb6eda3..9cb0537a 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -241,6 +241,12 @@ void syscall_entry_event_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 = syscall_table->sc_filter; @@ -419,6 +425,12 @@ void syscall_exit_event_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())) {