projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3002812
)
perf report: Add an indication of what time slices are used
author
Jin Yao
<
[email protected]
>
Wed, 10 Jan 2018 15:00:30 +0000
(23:00 +0800)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 17 Jan 2018 13:23:36 +0000
(10:23 -0300)
Add a time slices indication to the perf report header.
For example,
# perf report --stdio --time 10%
# Total Lost Samples: 0
#
# Samples: 9K of event 'cycles:ppp' (time slices: 10%)
# Event count (approx.):
8951288803
Signed-off-by: Jin Yao <
[email protected]
>
Suggested--by: Arnaldo Carvalho de Melo <
[email protected]
>
Tested-by: Arnaldo Carvalho de Melo <
[email protected]
>
Reviewed-by: Jiri Olsa <
[email protected]
>
Cc: Alexander Shishkin <
[email protected]
>
Cc: Andi Kleen <
[email protected]
>
Cc: Kan Liang <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-report.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-report.c
b/tools/perf/builtin-report.c
index 7d4f0a5de326156cae7ba4511120a6c884dc9715..4aaaa37262a8eac07ede7980a6ad7c9434f84ac4 100644
(file)
--- a/
tools/perf/builtin-report.c
+++ b/
tools/perf/builtin-report.c
@@
-404,6
+404,9
@@
static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report
if (evname != NULL)
ret += fprintf(fp, " of event '%s'", evname);
+ if (rep->time_str)
+ ret += fprintf(fp, " (time slices: %s)", rep->time_str);
+
if (symbol_conf.show_ref_callgraph &&
strstr(evname, "call-graph=no")) {
ret += fprintf(fp, ", show reference callgraph");