]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Add events to trace remotes
authorVincent Donnefort <vdonnefort@google.com>
Mon, 9 Mar 2026 16:24:55 +0000 (16:24 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 9 Mar 2026 16:33:54 +0000 (12:33 -0400)
commit072529158e604cc964feb78dcf094c6975828146
tree9f924dd214a537b92b9e270e183fb0232de504d7
parentbf2ba0f8ca1af14aaaa765cbb93caf564d383aad
tracing: Add events to trace remotes

An event is predefined point in the writer code that allows to log
data. Following the same scheme as kernel events, add remote events,
described to user-space within the events/ tracefs directory found in
the corresponding trace remote.

Remote events are expected to be described during the trace remote
registration.

Add also a .enable_event callback for trace_remote to toggle the event
logging, if supported.

Link: https://patch.msgid.link/20260309162516.2623589-10-vdonnefort@google.com
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/trace_remote.h
include/linux/trace_remote_event.h [new file with mode: 0644]
kernel/trace/trace_remote.c