]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ftrace: make use of epsw to get psw mask
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 22 Feb 2022 14:27:52 +0000 (15:27 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 1 Mar 2022 20:05:10 +0000 (21:05 +0100)
commitbb32c6b43a87a15ece8d980e9b2f6ce42347ad0f
tree7023b51614451c946ece67c1c64d4276a1403ce7
parent3fdbeaeb129a7633e898f321b883410dcf49475f
s390/ftrace: make use of epsw to get psw mask

Finally use epsw to create a complete psw mask within pt_regs. Without
this only some bits are correct, while other bits are (incorrectly)
always zero.

The epsw instruction is quite heavy weight, however given that this
only effects ftrace_regs_caller this seems to be the right thing, so
we finally get a complete psw mask for ftrace kprobed functions.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/mcount.S