]> git.ipfire.org Git - thirdparty/linux.git/commit
ftrace: Add update_ftrace_direct_mod function
authorJiri Olsa <jolsa@kernel.org>
Tue, 30 Dec 2025 14:50:07 +0000 (15:50 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 28 Jan 2026 19:44:54 +0000 (11:44 -0800)
commite93672f770d72f4c33d1dd9fb0633f95948c0cc9
treebab22daa841a6afe429717981dbb0009ff61ede2
parent8d2c1233f37149e4d1223d06ca7054a7f88c0a24
ftrace: Add update_ftrace_direct_mod function

Adding update_ftrace_direct_mod function that modifies all entries
(ip -> direct) provided in hash argument to direct ftrace ops and
updates its attachments.

The difference to current modify_ftrace_direct is:
- hash argument that allows to modify multiple ip -> direct
  entries at once

This change will allow us to have simple ftrace_ops for all bpf
direct interface users in following changes.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/bpf/20251230145010.103439-7-jolsa@kernel.org
include/linux/ftrace.h
kernel/trace/ftrace.c