aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-01-14 19:48:55 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-01-14 19:48:55 -0500
commitcf8d974439091212a6aa6c72a3d6d2cf3d3b7e8e (patch)
treeae4d660580d19b8cbe1c9702c81f34a0f326693e /Documentation
parent6c696cec3f264a9399241b6e648f58bc97117d49 (diff)
parse-events: Add filter on task comm
Add a 'COMM' special field to allow the filter in trace-cmd report to filter on the task's comm. Most records do not have data about what the comm is of the task that recorded the record. But comms are stored in various ways that parse-events can handle. By adding a special field 'COMM' (all caps) the user can now filter out tasks based on their name. This is useful when filtering out (or in) a bunch of threads. -F 'COMM != "trace-cmd"' Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/trace-cmd-report.1.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/trace-cmd-report.1.txt b/Documentation/trace-cmd-report.1.txt
index fbab3f4..86169f2 100644
--- a/Documentation/trace-cmd-report.1.txt
+++ b/Documentation/trace-cmd-report.1.txt
@@ -98,6 +98,14 @@ OPTIONS
98 98
99 Although the output displays 'R', having 'prev_stat=="R"' will not work. 99 Although the output displays 'R', having 'prev_stat=="R"' will not work.
100 100
101 Note: You can also specify 'COMM' as an EVENT_FIELD. This will use the
102 task name (or comm) of the record to compare. For example, to filter out
103 all of the "trace-cmd" tasks:
104
105------------------------------------------
106 -F '.*:COMM != "trace-cmd"'
107------------------------------------------
108
101*-v*:: 109*-v*::
102 This causes the following filters of *-F* to filter out the matching 110 This causes the following filters of *-F* to filter out the matching
103 events. 111 events.