s390/ptrace: add function argument access API
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 6 Oct 2021 09:59:29 +0000 (11:59 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 11 Oct 2021 18:55:59 +0000 (20:55 +0200)
commita30b5b03047602be56c5b8ffc3a0e4cfed17561c
tree43460176f4fd420f8f9748519c355915ba9c986a
parent3990b5baf225a3a96e70a784747d31002686c300
s390/ptrace: add function argument access API

Add regs_get_kernel_argument() which returns Nth argument of a
function call.

This enables ftrace kprobe events to access kernel function arguments
via $argN syntax.

This is the s390 variant of commit a823c35ff2ed ("arm64: ptrace: Add
function argument access API").

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/ptrace.h