powerpc/ftrace: Add module_trampoline_target() for PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 28 Oct 2021 12:24:03 +0000 (14:24 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Nov 2021 11:49:29 +0000 (22:49 +1100)
commitc93d4f6ecf4b0699d0f2088f7bd9cd09af45d65a
treef68a4ab7358760ea588b5686c5f8b701bf14c048
parent88670fdb26800228606c078ba4a018e9522a75a8
powerpc/ftrace: Add module_trampoline_target() for PPC32

module_trampoline_target() is used by __ftrace_modify_call().

Implement it for PPC32 so that CONFIG_DYNAMIC_FTRACE_WITH_REGS
can be activated on PPC32 as well.

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