]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Refactor prepare_ftrace_return()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 9 May 2022 05:35:59 +0000 (07:35 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 May 2022 13:11:28 +0000 (23:11 +1000)
commit9395b69f0281a41fe520ee8a9503222635deacfb
tree5253f7d06aa3aa64feaea6caa13c469a6ba2acd3
parent4d44b1dbb4b35013315f2fd71836d55ea7e5383b
powerpc/ftrace: Refactor prepare_ftrace_return()

When we have CONFIG_DYNAMIC_FTRACE_WITH_ARGS,
prepare_ftrace_return() is called by ftrace_graph_func()
otherwise prepare_ftrace_return() is called from assembly.

Refactor prepare_ftrace_return() into a static
__prepare_ftrace_return() that will be called by both
prepare_ftrace_return() and ftrace_graph_func().

It will allow GCC to fold __prepare_ftrace_return() inside
ftrace_graph_func().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0d42deafe353980c66cf19d3132638c05ba9f4a9.1652074503.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/trace/ftrace.c