X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flttng-syscalls.c;h=2d3c792a7881e44af9c2bd3e5acce3e274e2a41c;hb=ae77b6924bed3e3ccd1ef48fb061b5b7dfb9f36b;hp=d74851b7bc43224d1a5a1726a6dd32d0e8fabae3;hpb=62b81e8835877ed8d654990266ceabbc4a2e82d3;p=lttng-modules.git diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index d74851b7..2d3c792a 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -271,6 +271,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 = chan->priv->parent.sc_filter; @@ -508,6 +514,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())) {