aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/stackdepot.py
diff options
context:
space:
mode:
authorNaveen N Rao <[email protected]>2023-06-19 15:17:33 +0530
committerMichael Ellerman <[email protected]>2023-08-22 00:09:06 +1000
commitc91c5a828685563c24ab8879d8386de356d9085a (patch)
treee680ddcf5488e46f1e2f20a8a733bbb86cae4d67 /scripts/gdb/linux/stackdepot.py
parenta26ce4272eea2b20d4f39b9d7e56daf0c77151d8 (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 <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/c28f852225646b0561bbf3c1d22d03f041ace8e0.1687166935.git.naveen@kernel.org
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions