diff options
author | 2015-08-10 14:35:46 +0200 | |
---|---|---|
committer | 2015-08-11 18:01:06 -0400 | |
commit | 9f61668073a8d80650622e792aff876db9ca23c6 (patch) | |
tree | 4f3416d44b5e350f94a9f46862f896972a569a55 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ftrace: Format MCOUNT_ADDR address as type unsigned long (diff) | |
download | wireguard-linux-9f61668073a8d80650622e792aff876db9ca23c6.tar.xz wireguard-linux-9f61668073a8d80650622e792aff876db9ca23c6.zip |
tracing: Allow triggers to filter for CPU ids and process names
By extending the filter rules by more generic fields
we can write triggers filters like
echo 'stacktrace if cpu == 1' > \
/sys/kernel/debug/tracing/events/raw_syscalls/sys_enter/trigger
or
echo 'stacktrace if comm == sshd' > \
/sys/kernel/debug/tracing/events/raw_syscalls/sys_enter/trigger
CPU and COMM are not part of struct trace_entry. We could add the two
new fields to ftrace_common_field list and fix up all depending
sides. But that looks pretty ugly. Another thing I would like to
avoid that the 'format' file contents changes.
All this can be avoided by introducing another list which contains
non field members of struct trace_entry.
Link: http://lkml.kernel.org/r/1439210146-24707-1-git-send-email-daniel.wagner@bmw-carit.de
Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions