aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2014-04-17 04:06:47 -0400
committerIngo Molnar <mingo@kernel.org>2014-04-17 04:06:47 -0400
commitb3d5fc3c297fd379956689dc4d7d6af077ac35c2 (patch)
tree2c0882061596156ef39e17360c442aef4a64c3b6
parentfbdd17ec5ce2e5e4027356fcfde769b88d15702f (diff)
parenta83edb2dfc5989fbadc594109c933bae528a2809 (diff)
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf into perf/core
Pull perf/core improvements and fixes from Jiri Olsa: User visible changes: * Add --percentage option to control absolute/relative percentage output (Namhyung Kim) Plumbing changes: * Add --list-cmds to 'kmem', 'mem', 'lock' and 'sched', for use by completion scripts (Ramkumar Ramachandra) Signed-off-by: Jiri Olsa <jolsa@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--tools/perf/Documentation/perf-diff.txt21
-rw-r--r--tools/perf/Documentation/perf-report.txt24
-rw-r--r--tools/perf/Documentation/perf-top.txt18
-rw-r--r--tools/perf/builtin-diff.c32
-rw-r--r--tools/perf/builtin-kmem.c8
-rw-r--r--tools/perf/builtin-lock.c10
-rw-r--r--tools/perf/builtin-mem.c15
-rw-r--r--tools/perf/builtin-report.c22
-rw-r--r--tools/perf/builtin-sched.c10
-rw-r--r--tools/perf/builtin-top.c8
-rw-r--r--tools/perf/perf-completion.sh4
-rw-r--r--tools/perf/ui/browsers/hists.c39
-rw-r--r--tools/perf/ui/gtk/hists.c11
-rw-r--r--tools/perf/ui/hist.c8
-rw-r--r--tools/perf/util/config.c4
-rw-r--r--tools/perf/util/hist.c59
-rw-r--r--tools/perf/util/hist.h10
-rw-r--r--tools/perf/util/symbol.h3
18 files changed, 230 insertions, 76 deletions
diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt
index fdfceee0ffd0..fbfa1192923c 100644
--- a/tools/perf/Documentation/perf-diff.txt
+++ b/tools/perf/Documentation/perf-diff.txt
@@ -33,17 +33,20 @@ OPTIONS
33-d:: 33-d::
34--dsos=:: 34--dsos=::
35 Only consider symbols in these dsos. CSV that understands 35 Only consider symbols in these dsos. CSV that understands
36 file://filename entries. 36 file://filename entries. This option will affect the percentage
37 of the Baseline/Delta column. See --percentage for more info.
37 38
38-C:: 39-C::
39--comms=:: 40--comms=::
40 Only consider symbols in these comms. CSV that understands 41 Only consider symbols in these comms. CSV that understands
41 file://filename entries. 42 file://filename entries. This option will affect the percentage
43 of the Baseline/Delta column. See --percentage for more info.
42 44
43-S:: 45-S::
44--symbols=:: 46--symbols=::
45 Only consider these symbols. CSV that understands 47 Only consider these symbols. CSV that understands
46 file://filename entries. 48 file://filename entries. This option will affect the percentage
49 of the Baseline/Delta column. See --percentage for more info.
47 50
48-s:: 51-s::
49--sort=:: 52--sort=::
@@ -89,6 +92,14 @@ OPTIONS
89--order:: 92--order::
90 Specify compute sorting column number. 93 Specify compute sorting column number.
91 94
95--percentage::
96 Determine how to display the overhead percentage of filtered entries.
97 Filters can be applied by --comms, --dsos and/or --symbols options.
98
99 "relative" means it's relative to filtered entries only so that the
100 sum of shown entries will be always 100%. "absolute" means it retains
101 the original value before and after the filter is applied.
102
92COMPARISON 103COMPARISON
93---------- 104----------
94The comparison is governed by the baseline file. The baseline perf.data 105The comparison is governed by the baseline file. The baseline perf.data
@@ -157,6 +168,10 @@ with:
157 - period_percent being the % of the hist entry period value within 168 - period_percent being the % of the hist entry period value within
158 single data file 169 single data file
159 170
171 - with filtering by -C, -d and/or -S, period_percent might be changed
172 relative to how entries are filtered. Use --percentage=absolute to
173 prevent such fluctuation.
174
160ratio 175ratio
161~~~~~ 176~~~~~
162If specified the 'Ratio' column is displayed with value 'r' computed as: 177If specified the 'Ratio' column is displayed with value 'r' computed as:
diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt
index 8eab8a4bdeb8..09af66298564 100644
--- a/tools/perf/Documentation/perf-report.txt
+++ b/tools/perf/Documentation/perf-report.txt
@@ -25,10 +25,6 @@ OPTIONS
25--verbose:: 25--verbose::
26 Be more verbose. (show symbol address, etc) 26 Be more verbose. (show symbol address, etc)
27 27
28-d::
29--dsos=::
30 Only consider symbols in these dsos. CSV that understands
31 file://filename entries.
32-n:: 28-n::
33--show-nr-samples:: 29--show-nr-samples::
34 Show the number of samples for each symbol 30 Show the number of samples for each symbol
@@ -42,11 +38,18 @@ OPTIONS
42-c:: 38-c::
43--comms=:: 39--comms=::
44 Only consider symbols in these comms. CSV that understands 40 Only consider symbols in these comms. CSV that understands
45 file://filename entries. 41 file://filename entries. This option will affect the percentage of
42 the overhead column. See --percentage for more info.
43-d::
44--dsos=::
45 Only consider symbols in these dsos. CSV that understands
46 file://filename entries. This option will affect the percentage of
47 the overhead column. See --percentage for more info.
46-S:: 48-S::
47--symbols=:: 49--symbols=::
48 Only consider these symbols. CSV that understands 50 Only consider these symbols. CSV that understands
49 file://filename entries. 51 file://filename entries. This option will affect the percentage of
52 the overhead column. See --percentage for more info.
50 53
51--symbol-filter=:: 54--symbol-filter=::
52 Only show symbols that match (partially) with this filter. 55 Only show symbols that match (partially) with this filter.
@@ -237,6 +240,15 @@ OPTIONS
237 Do not show entries which have an overhead under that percent. 240 Do not show entries which have an overhead under that percent.
238 (Default: 0). 241 (Default: 0).
239 242
243--percentage::
244 Determine how to display the overhead percentage of filtered entries.
245 Filters can be applied by --comms, --dsos and/or --symbols options and
246 Zoom operations on the TUI (thread, dso, etc).
247
248 "relative" means it's relative to filtered entries only so that the
249 sum of shown entries will be always 100%. "absolute" means it retains
250 the original value before and after the filter is applied.
251
240--header:: 252--header::
241 Show header information in the perf.data file. This includes 253 Show header information in the perf.data file. This includes
242 various information like hostname, OS and perf version, cpu/mem 254 various information like hostname, OS and perf version, cpu/mem
diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt
index 976b00c6cdb1..64ed79c43639 100644
--- a/tools/perf/Documentation/perf-top.txt
+++ b/tools/perf/Documentation/perf-top.txt
@@ -123,13 +123,16 @@ Default is to monitor all CPUS.
123 Show a column with the sum of periods. 123 Show a column with the sum of periods.
124 124
125--dsos:: 125--dsos::
126 Only consider symbols in these dsos. 126 Only consider symbols in these dsos. This option will affect the
127 percentage of the overhead column. See --percentage for more info.
127 128
128--comms:: 129--comms::
129 Only consider symbols in these comms. 130 Only consider symbols in these comms. This option will affect the
131 percentage of the overhead column. See --percentage for more info.
130 132
131--symbols:: 133--symbols::
132 Only consider these symbols. 134 Only consider these symbols. This option will affect the
135 percentage of the overhead column. See --percentage for more info.
133 136
134-M:: 137-M::
135--disassembler-style=:: Set disassembler style for objdump. 138--disassembler-style=:: Set disassembler style for objdump.
@@ -165,6 +168,15 @@ Default is to monitor all CPUS.
165 Do not show entries which have an overhead under that percent. 168 Do not show entries which have an overhead under that percent.
166 (Default: 0). 169 (Default: 0).
167 170
171--percentage::
172 Determine how to display the overhead percentage of filtered entries.
173 Filters can be applied by --comms, --dsos and/or --symbols options and
174 Zoom operations on the TUI (thread, dso, etc).
175
176 "relative" means it's relative to filtered entries only so that the