diff options
author | 2025-04-08 02:08:28 +0800 | |
---|---|---|
committer | 2025-06-05 11:09:24 -0700 | |
commit | 500e626c4a5bf2fa7cc6f1cd6dd86c77b5b127f2 (patch) | |
tree | 6010bc71870f8e0ad59579c2dcb0bd37802bcc19 /include | |
parent | riscv: ftrace: align patchable functions to 4 Byte boundary (diff) | |
download | linux-rng-500e626c4a5bf2fa7cc6f1cd6dd86c77b5b127f2.tar.xz linux-rng-500e626c4a5bf2fa7cc6f1cd6dd86c77b5b127f2.zip |
kernel: ftrace: export ftrace_sync_ipi
The following ftrace patch for riscv uses a data store to update ftrace
function. Therefore, a romote fence is required to order it against
function_trace_op updates. The mechanism is similar to the fence between
function_trace_op and update_ftrace_func in the generic ftrace, so we
leverage the same ftrace_sync_ipi function.
[ alex: Fix build warning when !CONFIG_DYNAMIC_FTRACE ]
Signed-off-by: Andy Chiu <andybnac@gmail.com>
Link: https://lore.kernel.org/r/20250407180838.42877-4-andybnac@gmail.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index fbabc3d848b3..30374478cb07 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -635,6 +635,8 @@ enum { #define ftrace_get_symaddr(fentry_ip) (0) #endif +void ftrace_sync_ipi(void *data); + #ifdef CONFIG_DYNAMIC_FTRACE void ftrace_arch_code_modify_prepare(void); |