diff options
author | Naveen N Rao <naveen@kernel.org> | 2023-06-19 15:17:33 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-08-22 00:09:06 +1000 |
commit | c91c5a828685563c24ab8879d8386de356d9085a (patch) | |
tree | e680ddcf5488e46f1e2f20a8a733bbb86cae4d67 /mm/hugetlb_vmemmap.c | |
parent | a26ce4272eea2b20d4f39b9d7e56daf0c77151d8 (diff) |
powerpc/ftrace: Implement ftrace_replace_code()
Implement ftrace_replace_code() to consolidate logic from the different
ftrace patching routines: ftrace_make_nop(), ftrace_make_call() and
ftrace_modify_call(). Note that ftrace_make_call() is still required
primarily to handle patching modules during their load time. The other
two routines should no longer be called.
This lays the groundwork to enable better control in patching ftrace
locations, including the ability to nop-out preceding profiling
instructions when ftrace is disabled.
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/c28f852225646b0561bbf3c1d22d03f041ace8e0.1687166935.git.naveen@kernel.org
Diffstat (limited to 'mm/hugetlb_vmemmap.c')
0 files changed, 0 insertions, 0 deletions