]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace/x86: Fix trace event registration for syscalls without arguments
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Wed, 8 Apr 2020 18:13:10 +0000 (21:13 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 1 May 2020 17:15:40 +0000 (19:15 +0200)
commit9f62aa97793f75e3021fddfecb497541ad70deb8
treef0cf6b62435dde407cb82de0cf4d7b7b5f56f20a
parentb0d4aa2526f3d0a51692bcf63eb8f784930c50d1
ftrace/x86: Fix trace event registration for syscalls without arguments

The refactoring of SYSCALL_DEFINE0() macros removed the ABI stubs and
simply defines __abi_sys_$NAME as alias of __do_sys_$NAME.

As a result kallsyms_lookup() returns "__do_sys_$NAME" which does not match
with the declared trace event name.

See also commit 2338049431f4 ("tracing/x86: Update syscall trace events to
handle new prefixed syscall func names").

Add __do_sys_ to the valid prefixes which are checked in
arch_syscall_match_sym_name().

Fixes: 86994070aeef ("x86/entry: Refactor SYSCALL_DEFINE0 macros")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/158636958997.7900.16485049455470033557.stgit@buzz
arch/x86/include/asm/ftrace.h