OSDN Git Service

ftrace: Store direct called addresses in their ops
authorFlorent Revest <revest@chromium.org>
Tue, 21 Mar 2023 14:04:22 +0000 (15:04 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 21 Mar 2023 17:43:32 +0000 (13:43 -0400)
commitdbaccb618fabde8b8596e341f8d76da63a9b0c2f
tree33e833620f1c02e3eac02b3eb9cc12a200922ec1
parentda8bdfbd422333fbb7c85ac1d7f18592d17d6665
ftrace: Store direct called addresses in their ops

All direct calls are now registered using the register_ftrace_direct API
so each ops can jump to only one direct-called trampoline.

By storing the direct called trampoline address directly in the ops we
can save one hashmap lookup in the direct call ops and implement arm64
direct calls on top of call ops.

Link: https://lkml.kernel.org/r/20230321140424.345218-6-revest@chromium.org
Signed-off-by: Florent Revest <revest@chromium.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/ftrace.h
kernel/trace/ftrace.c