diff options
author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2022-08-01 11:32:25 +0900 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-09-26 13:01:08 -0400 |
commit | 752be5c5c910a1a270e97b5b39c7a7d06a39e7c6 (patch) | |
tree | 6de3d456aaabcb0bae82c40f8d9c4630428a0f54 /tools/testing | |
parent | f76349cf41451c5c42a99f18a9163377e4b364ff (diff) | |
download | linux-stable-752be5c5c910a1a270e97b5b39c7a7d06a39e7c6.tar.gz linux-stable-752be5c5c910a1a270e97b5b39c7a7d06a39e7c6.tar.bz2 linux-stable-752be5c5c910a1a270e97b5b39c7a7d06a39e7c6.zip |
tracing/eprobe: Add eprobe filter support
Add the filter option to the event probe. This is useful if user wants
to derive a new event based on the condition of the original event.
E.g.
echo 'e:egroup/stat_runtime_4core sched/sched_stat_runtime \
runtime=$runtime:u32 if cpu < 4' >> ../dynamic_events
Then it can filter the events only on first 4 cores.
Note that the fields used for 'if' must be the fields in the original
events, not eprobe events.
Link: https://lkml.kernel.org/r/165932114513.2850673.2592206685744598080.stgit@devnote2
Cc: Tzvetomir Stoyanov <tz.stoyanov@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions