]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Propagate errors from remote event bulk updates
authorJackie Liu <liuyun01@kylinos.cn>
Wed, 15 Jul 2026 07:44:55 +0000 (15:44 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 23 Jul 2026 16:30:07 +0000 (12:30 -0400)
commit655111f878a455f724e20122929cf2afa52b76e4
tree72f4d63cc3afbb0eec24f28909431804c938224a
parent94b83ff0c0a69e42f403b59918529fbca2a89daf
tracing: Propagate errors from remote event bulk updates

remote_events_dir_enable_write() ignores the return value from
trace_remote_enable_event(). If a remote rejects an event state change,
the write therefore reports success even though the affected event remains
in its previous state.

Keep trying all events, but retain and return the first error. This matches
__ftrace_set_clr_event_nolock(), which permits partial updates while
notifying userspace when an operation fails.

Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260715074455.3897-1-liu.yun@linux.dev
Fixes: 775cb093bc50 ("tracing: Add events/ root files to trace remotes")
Assisted-by: Codex:gpt-5.6-sol
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Reviewed-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_remote.c