s390/kprobes: replace kretprobe with rethook
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 17 Jan 2023 13:37:10 +0000 (14:37 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Sun, 22 Jan 2023 17:42:35 +0000 (18:42 +0100)
commit1a280f48c0e403903cf0b4231c95b948e664f25a
treeca19436318186e9a4f92573886a3da25f3f4621f
parentd924ecdb703765cdc75be5f28aaa1140b9106f84
s390/kprobes: replace kretprobe with rethook

That's an adaptation of commit f3a112c0c40d ("x86,rethook,kprobes:
Replace kretprobe with rethook on x86") to s390.

Replaces the kretprobe code with rethook on s390. With this patch,
kretprobe on s390 uses the rethook instead of kretprobe specific
trampoline code.

Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/kprobes.h
arch/s390/include/asm/unwind.h
arch/s390/kernel/Makefile
arch/s390/kernel/kprobes.c
arch/s390/kernel/mcount.S
arch/s390/kernel/rethook.c [new file with mode: 0644]
arch/s390/kernel/stacktrace.c
arch/s390/lib/test_unwind.c