OSDN Git Service

s390/ftrace: provide separate ftrace_caller/ftrace_regs_caller implementations
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 4 Oct 2021 18:24:12 +0000 (20:24 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 11 Oct 2021 18:55:58 +0000 (20:55 +0200)
commit894979689d3ac4780601b4506a03b4722398caf5
tree0c7d3517d2d950605e08aac5f0083ba3bca7c14b
parent176510ebecd1ca201a8808dbbee9991eca005207
s390/ftrace: provide separate ftrace_caller/ftrace_regs_caller implementations

ftrace_regs_caller is an alias to ftrace_caller - making ftrace_caller
quite heavyweight. Split the function and provide an ftrace_caller
implementation which comes with fewer instructions. Especially getting
rid of 'stosm' on each function entry should help here, e.g. to
have less performance impact on live patched functions.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/ftrace.h
arch/s390/kernel/mcount.S