]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Add show_event_triggers to expose active event triggers
authorAaron Tomlin <atomlin@atomlin.com>
Mon, 5 Jan 2026 14:29:39 +0000 (09:29 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 26 Jan 2026 22:44:24 +0000 (17:44 -0500)
commit6a80838814eea232a83fab3ac33282cd1243da5b
tree879fb9049d554fdcf6594f910c2d2f96dc68d063
parent729757b96a662d87e334fe8b837707800d8fd551
tracing: Add show_event_triggers to expose active event triggers

To audit active event triggers, userspace currently must traverse the
events/ directory and read each individual trigger file. This is
cumbersome for system-wide auditing or debugging.

Introduce "show_event_triggers" at the trace root directory. This file
displays all events that currently have one or more triggers applied,
alongside the trigger configuration, in a consolidated
system:event [tab] trigger format.

The implementation leverages the existing trace_event_file iterators
and uses the trigger's own print() operation to ensure output
consistency with the per-event trigger files.

Link: https://patch.msgid.link/20260105142939.2655342-3-atomlin@atomlin.com
Signed-off-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Documentation/trace/ftrace.rst
kernel/trace/trace_events.c