diff options
author | Namhyung Kim <namhyung@kernel.org> | 2016-01-05 05:58:36 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-01-06 18:11:14 -0500 |
commit | 4c96bee03247c6eab27287fa66457a231b9fab79 (patch) | |
tree | b4c986e771b7c8b62f3769baeb9f7547f0acdafd /tools | |
parent | 9735be24ec086fbccee321471cc21dedefa956a6 (diff) |
perf report: Add documentation for dynamic sort keys
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1451991518-25673-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/Documentation/perf-report.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt index ae7cd91727f6..8a301f6afb37 100644 --- a/tools/perf/Documentation/perf-report.txt +++ b/tools/perf/Documentation/perf-report.txt | |||
@@ -117,6 +117,30 @@ OPTIONS | |||
117 | And default sort keys are changed to comm, dso_from, symbol_from, dso_to | 117 | And default sort keys are changed to comm, dso_from, symbol_from, dso_to |
118 | and symbol_to, see '--branch-stack'. | 118 | and symbol_to, see '--branch-stack'. |
119 | 119 | ||
120 | If the data file has tracepoint event(s), following (dynamic) sort keys | ||
121 | are also available: | ||
122 | trace, trace_fields, [<event>.]<field>[/raw] | ||
123 | |||
124 | - trace: pretty printed trace output in a single column | ||
125 | - trace_fields: fields in tracepoints in separate columns | ||
126 | - <field name>: optional event and field name for a specific field | ||
127 | |||
128 | The last form consists of event and field names. If event name is | ||
129 | omitted, it searches all events for matching field name. The matched | ||
130 | field will be shown only for the event has the field. The event name | ||
131 | supports substring match so user doesn't need to specify full subsystem | ||
132 | and event name everytime. For example, 'sched:sched_switch' event can | ||
133 | be shortened to 'switch' as long as it's not ambiguous. Also event can | ||
134 | be specified by its index (starting from 1) preceded by the '%'. | ||
135 | So '%1' is the first event, '%2' is the second, and so on. | ||
136 | |||
137 | The field name can have '/raw' suffix which disables pretty printing | ||
138 | and shows raw field value like hex numbers. The --raw-trace option | ||
139 | has the same effect for all dynamic sort keys. | ||
140 | |||
141 | The default sort keys are changed to 'trace' if all events in the data | ||
142 | file are tracepoint. | ||
143 | |||
120 | -F:: | 144 | -F:: |
121 | --fields=:: | 145 | --fields=:: |
122 | Specify output field - multiple keys can be specified in CSV format. | 146 | Specify output field - multiple keys can be specified in CSV format. |