]> git.ipfire.org Git - thirdparty/linux.git/commit
ftrace: Add update_ftrace_direct_del function
authorJiri Olsa <jolsa@kernel.org>
Tue, 30 Dec 2025 14:50:06 +0000 (15:50 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 28 Jan 2026 19:44:51 +0000 (11:44 -0800)
commit8d2c1233f37149e4d1223d06ca7054a7f88c0a24
treef794bacae8e452411b997f0f5c982f6fdb4b8205
parent05dc5e9c1fe156fd9dddc4c2f81e8fc6c7e50eb5
ftrace: Add update_ftrace_direct_del function

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

The difference to current unregister_ftrace_direct is
 - hash argument that allows to unregister multiple ip -> direct
   entries at once
 - we can call update_ftrace_direct_del multiple times on the
   same ftrace_ops object, becase we do not need to unregister
   all entries at once, we can do it gradualy with the help of
   ftrace_update_ops function

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-6-jolsa@kernel.org
include/linux/ftrace.h
kernel/trace/ftrace.c