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:
ecd5f99
)
perf annotate stdio: Fix --show-total-period
author
Taeung Song
<
[email protected]
>
Fri, 21 Jul 2017 14:58:20 +0000
(11:58 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 25 Jul 2017 14:23:36 +0000
(11:23 -0300)
We were showing the total number of samples, not the total period as
asked by the user, fix it.
Reported-by: Namhyung Kim <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Martin Liška <
[email protected]
>
Cc: Milian Wolff <
[email protected]
>
Link:
http://lkml.kernel.org/n/
[email protected]
Fixes: 0c4a5bcea460 ("perf annotate: Display total number of samples with --show-total-period")
[ split from a larger patch ]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/annotate.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/annotate.c
b/tools/perf/util/annotate.c
index 00e085fc945b39274bee5e374b4ef28547e48371..004072f82511e9de46059de26fd05174b18db346 100644
(file)
--- a/
tools/perf/util/annotate.c
+++ b/
tools/perf/util/annotate.c
@@
-1143,7
+1143,7
@@
static int disasm_line__print(struct disasm_line *dl, struct symbol *sym, u64 st
if (symbol_conf.show_total_period)
color_fprintf(stdout, color, " %7" PRIu64,
- sample.
nr_samples
);
+ sample.
period
);
else
color_fprintf(stdout, color, " %7.2f", percent);
}