diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-03-03 19:06:42 -0500 |
---|---|---|
committer | Jiri Olsa <jolsa@kernel.org> | 2014-05-21 05:45:34 -0400 |
commit | a2ce067e55e328f1a6fe3dddf77a173381ffdfe1 (patch) | |
tree | b63fb28811cd81b4ae6559db7d648a0d143bd65c /tools/perf/Documentation | |
parent | fb821c9e7135e324ff6d50d030352718a80364b4 (diff) |
perf tools: Allow hpp fields to be sort keys
Add overhead{,_sys,_us,_guest_sys,_guest_us}, sample and period sort
keys so that they can be selected with --sort/-s option.
$ perf report -s period,comm --stdio
...
# Overhead Period Command
# ........ ............ ...............
#
47.06% 152 swapper
13.93% 45 qemu-system-arm
12.38% 40 synergys
3.72% 12 firefox
2.48% 8 xchat
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1400480762-22852-9-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r-- | tools/perf/Documentation/perf-diff.txt | 5 | ||||
-rw-r--r-- | tools/perf/Documentation/perf-report.txt | 9 | ||||
-rw-r--r-- | tools/perf/Documentation/perf-top.txt | 5 |
3 files changed, 15 insertions, 4 deletions
diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt index fbfa1192923c..b3b8abae62b8 100644 --- a/tools/perf/Documentation/perf-diff.txt +++ b/tools/perf/Documentation/perf-diff.txt | |||
@@ -50,7 +50,8 @@ OPTIONS | |||
50 | 50 | ||
51 | -s:: | 51 | -s:: |
52 | --sort=:: | 52 | --sort=:: |
53 | Sort by key(s): pid, comm, dso, symbol. | 53 | Sort by key(s): pid, comm, dso, symbol, cpu, parent, srcline. |
54 | Please see description of --sort in the perf-report man page. | ||
54 | 55 | ||
55 | -t:: | 56 | -t:: |
56 | --field-separator=:: | 57 | --field-separator=:: |
@@ -202,4 +203,4 @@ If specified the 'Weighted diff' column is displayed with value 'd' computed as: | |||
202 | 203 | ||
203 | SEE ALSO | 204 | SEE ALSO |
204 | -------- | 205 | -------- |
205 | linkperf:perf-record[1] | 206 | linkperf:perf-record[1], linkperf:perf-report[1] |
diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt index 09af66298564..9babe915b6c4 100644 --- a/tools/perf/Documentation/perf-report.txt +++ b/tools/perf/Documentation/perf-report.txt | |||
@@ -79,6 +79,15 @@ OPTIONS | |||
79 | abort cost. This is the global weight. | 79 | abort cost. This is the global weight. |
80 | - local_weight: Local weight version of the weight above. | 80 | - local_weight: Local weight version of the weight above. |
81 | - transaction: Transaction abort flags. | 81 | - transaction: Transaction abort flags. |
82 | - overhead: Overhead percentage of sample | ||
83 | - overhead_sys: Overhead percentage of sample running in system mode | ||
84 | - overhead_us: Overhead percentage of sample running in user mode | ||
85 | - overhead_guest_sys: Overhead percentage of sample running in system mode | ||
86 | on guest machine | ||
87 | - overhead_guest_us: Overhead percentage of sample running in user mode on | ||
88 | guest machine | ||
89 | - sample: Number of sample | ||
90 | - period: Raw number of event count of sample | ||
82 | 91 | ||
83 | By default, comm, dso and symbol keys are used. | 92 | By default, comm, dso and symbol keys are used. |
84 | (i.e. --sort comm,dso,symbol) | 93 | (i.e. --sort comm,dso,symbol) |
diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt index 64ed79c43639..df863288752a 100644 --- a/tools/perf/Documentation/perf-top.txt +++ b/tools/perf/Documentation/perf-top.txt | |||
@@ -113,7 +113,8 @@ Default is to monitor all CPUS. | |||
113 | -s:: | 113 | -s:: |
114 | --sort:: | 114 | --sort:: |
115 | Sort by key(s): pid, comm, dso, symbol, parent, srcline, weight, | 115 | Sort by key(s): pid, comm, dso, symbol, parent, srcline, weight, |
116 | local_weight, abort, in_tx, transaction | 116 | local_weight, abort, in_tx, transaction, overhead, sample, period. |
117 | Please see description of --sort in the perf-report man page. | ||
117 | 118 | ||
118 | -n:: | 119 | -n:: |
119 | --show-nr-samples:: | 120 | --show-nr-samples:: |
@@ -212,4 +213,4 @@ Pressing any unmapped key displays a menu, and prompts for input. | |||
212 | 213 | ||
213 | SEE ALSO | 214 | SEE ALSO |
214 | -------- | 215 | -------- |
215 | linkperf:perf-stat[1], linkperf:perf-list[1] | 216 | linkperf:perf-stat[1], linkperf:perf-list[1], linkperf:perf-report[1] |