s390: fix system call tracing
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 21 Jan 2019 09:30:44 +0000 (10:30 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 23 Jan 2019 11:38:07 +0000 (12:38 +0100)
commitfb8bfca06cbc8280976ea751501767ae1f37dff5
treea58c7e0d13463e2cbe80a0db3ba2d36d9003b0a7
parent90856087daca92bf1de820885ef4441613bf8e21
s390: fix system call tracing

When converting to autogenerated compat syscall wrappers all system
call entry points got a different symbol name: they all got a __s390x_
prefix.

This caused breakage with system call tracing, since an appropriate
arch_syscall_match_sym_name() was not provided. Add this function, and
while at it also add code to avoid compat system call tracing. s390
has different system call tables for native 64 bit system calls and
compat system calls. This isn't really supported in the common
code. However there are hardly any compat binaries left, therefore
just ignore compat system calls, like x86 and arm64 also do for the
same reason.

Fixes: aa0d6e70d3b3 ("s390: autogenerate compat syscall wrappers")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ftrace.h