]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Also save r1 in ftrace_caller()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 15 Feb 2022 18:31:22 +0000 (19:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Feb 2022 12:09:47 +0000 (23:09 +1100)
commit6fe217d26c5e502a9478514e3372cc0787e7fbb4
treee321e9b4f16e6b6049af04dd4ec9a6caac76b8c5
parentb3d59b74d5bd562938305bd7515b3023a44200bb
powerpc/ftrace: Also save r1 in ftrace_caller()

Also save r1 in ftrace_caller()

r1 is needed during unwinding when the function_graph tracer
is active.

Fixes: cd06c5e61128 ("powerpc/ftrace: directly call of function graph tracer by ftrace caller")
Reported-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ff535e86d3a69376a6d89168511d4e403835f18b.1644949750.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/trace/ftrace_mprofile.S