Re: [RFC][PATCH 00/21] tracing: Inter-event (e.g. latency) support

Steven Rostedt
2017-02-09T19:57:35Z

On Thu, 09 Feb 2017 11:18:32 -0600
Tom Zanussi <tom.zanussi@linux.intel.com> wrote:

> I think it might make a lot of sense at this point to actually create a
> system-wide list of active triggers e.g. tracing/events/triggers or
> something like that. It's something I've kind of wanted anyway, and
> would be really useful if not indispensable for this. Actually, I
> thought it might even be nice to have some kind of mini-fs or something
> making it easy to group sets of related triggers and enable and
> disable/remove them as a group, but a simple list would suffice too...

Note, (new) trace-cmd does this for you (by querying all trigger files).

# echo 'stacktrace if COMM ~ "system*"' > /debug/tracing/events/syscalls/sys_enter_open/trigger
# trace-cmd stat

Events:
(none enabled)

Triggers:
syscalls:sys_enter_open "stacktrace:unlimited if COMM ~ "system*""

Tracing is enabled

-- Steve