diff options
author | Song Shuai <[email protected]> | 2023-11-30 13:15:29 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-01-17 18:17:08 -0800 |
commit | 35e61e8827ee8ea09e6093ab4d8ba45efd537e36 (patch) | |
tree | 909bd0b20f32458071763e5957f140c665b8ac5f /tools/perf/util/trace-event-scripting.c | |
parent | b546d6363af4791567dcd145109837fe97cc8ba5 (diff) |
riscv: ftrace: Make function graph use ftrace directly
Similar to commit 0c0593b45c9b ("x86/ftrace: Make function graph use
ftrace directly") and commit c4a0ebf87ceb ("arm64/ftrace: Make
function graph use ftrace directly"), RISC-V has no need for a special
graph tracer hook. The graph_ops::func function can be used to install
the return_hooker.
This cleanup only changes the FTRACE_WITH_REGS implementation, leaving
the mcount-based implementation is unaffected.
Perform the simplification, and also cleanup the register save/restore
macros.
Signed-off-by: Song Shuai <[email protected]>
Tested-by: Guo Ren <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions