powerpc64/ftrace: Move ELFv1 and -pg support code into a separate file
authorNaveen N Rao <naveen@kernel.org>
Mon, 19 Jun 2023 09:47:21 +0000 (15:17 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Aug 2023 14:09:05 +0000 (00:09 +1000)
commit7f7797b372693ce17223678428490dea2b3e4389
treede6a4a36a197b5c0e0e14f460aca0254d58f8ff1
parent0240605931ec300ddb698020edff05a4c93edbb2
powerpc64/ftrace: Move ELFv1 and -pg support code into a separate file

ELFv1 support is deprecated and on the way out. Pre -mprofile-kernel
ftrace support (-pg only) is very limited and is retained primarily for
clang builds. It won't be necessary once clang lands support for
-fpatchable-function-entry.

Copy the existing ftrace code supporting these into ftrace_pg.c.
ftrace.c can then be refactored and enhanced with a focus on ppc32 and
ppc64 ELFv2.

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/1eb6cc6c3141ddb77a2a25f8a9e83d83ff312b02.1687166935.git.naveen@kernel.org
arch/powerpc/kernel/trace/Makefile
arch/powerpc/kernel/trace/ftrace.c
arch/powerpc/kernel/trace/ftrace_pg.c [new file with mode: 0644]