powerpc/ftrace: Use FTRACE_REGS_ADDR to identify the correct ftrace trampoline
authorNaveen N Rao <naveen@kernel.org>
Mon, 19 Jun 2023 09:47:23 +0000 (15:17 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Aug 2023 14:09:05 +0000 (00:09 +1000)
commitb5efb61c70f8ba9b1e168185530b9c7342184a4c
tree7f5ef12cdd1b514b13c2012da5ac046c4a39edba
parent96d7a13610abcf6bff9d0d0e195c6d2650310125
powerpc/ftrace: Use FTRACE_REGS_ADDR to identify the correct ftrace trampoline

Instead of keying off DYNAMIC_FTRACE_WITH_REGS, use FTRACE_REGS_ADDR to
identify the proper ftrace trampoline address to use.

Signed-off-by: Naveen N Rao <naveen@kernel.org>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/6045a280a57a7ea937a5bb13ccac747026dbfb07.1687166935.git.naveen@kernel.org
arch/powerpc/kernel/trace/ftrace.c