diff options
| author | Florent Revest <[email protected]> | 2023-03-21 15:04:22 +0100 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2023-03-21 13:43:32 -0400 |
| commit | dbaccb618fabde8b8596e341f8d76da63a9b0c2f (patch) | |
| tree | 33e833620f1c02e3eac02b3eb9cc12a200922ec1 /include/linux | |
| parent | da8bdfbd422333fbb7c85ac1d7f18592d17d6665 (diff) | |
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/[email protected]
Signed-off-by: Florent Revest <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ftrace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index abee60865fc7..6a532dd6789e 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -321,6 +321,9 @@ struct ftrace_ops { unsigned long trampoline_size; struct list_head list; ftrace_ops_func_t ops_func; +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS + unsigned long direct_call; +#endif #endif }; |