powerpc/ftrace: Consolidate ftrace support into fewer files
authorNaveen N Rao <naveen@kernel.org>
Mon, 19 Jun 2023 09:47:25 +0000 (15:17 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Aug 2023 14:09:05 +0000 (00:09 +1000)
commitbad90aa52d9a0141c41e00ccd4c40be30a29acc6
tree8579bf4d4db5cda8a22f9d61ebebeff096003a24
parentf3993a0330e2d11e42c095810c6c33084024df46
powerpc/ftrace: Consolidate ftrace support into fewer files

ftrace_low.S has just the _mcount stub and return_to_handler(). Merge
this back into ftrace_mprofile.S and ftrace_64_pg.S to keep all ftrace
code together, and to allow those to evolve independently.

ftrace_mprofile.S is also not an entirely accurate name since this also
holds ppc32 code. This will be all the more incorrect once support for
-fpatchable-function-entry is added. Rename files here to more
accurately describe the code:
- ftrace_mprofile.S is renamed to ftrace_entry.S
- ftrace_pg.c is renamed to ftrace_64_pg.c
- ftrace_64_pg.S is rename to ftrace_64_pg_entry.S

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/b900c9a8bba9d6c3c295e0f99886acf3e5bf6f7b.1687166935.git.naveen@kernel.org
arch/powerpc/kernel/trace/Makefile
arch/powerpc/kernel/trace/ftrace_64_pg.S [deleted file]
arch/powerpc/kernel/trace/ftrace_64_pg.c [moved from arch/powerpc/kernel/trace/ftrace_pg.c with 100% similarity]
arch/powerpc/kernel/trace/ftrace_64_pg_entry.S [moved from arch/powerpc/kernel/trace/ftrace_low.S with 55% similarity]
arch/powerpc/kernel/trace/ftrace_entry.S [moved from arch/powerpc/kernel/trace/ftrace_mprofile.S with 83% similarity]