diff options
author | Taeung Song <treeze.taeung@gmail.com> | 2017-07-21 10:58:20 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-07-25 10:23:36 -0400 |
commit | 585d93c5ffccced26689e34095c0d74ef20a07d6 (patch) | |
tree | e70fed3a8f358364cb58a35f8add42174301eafb /tools/perf/util/annotate.c | |
parent | ecd5f9959d2c9540482977ff1208ea67fbfb8cc9 (diff) |
perf annotate stdio: Fix --show-total-period
We were showing the total number of samples, not the total period as
asked by the user, fix it.
Reported-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Martin Liška <mliska@suse.cz>
Cc: Milian Wolff <milian.wolff@kdab.com>
Link: http://lkml.kernel.org/n/tip-lh2nh89rtqn5x5vbfthw6qml@git.kernel.org
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 <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r-- | tools/perf/util/annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 00e085fc945b..004072f82511 100644 --- 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 | |||
1143 | 1143 | ||
1144 | if (symbol_conf.show_total_period) | 1144 | if (symbol_conf.show_total_period) |
1145 | color_fprintf(stdout, color, " %7" PRIu64, | 1145 | color_fprintf(stdout, color, " %7" PRIu64, |
1146 | sample.nr_samples); | 1146 | sample.period); |
1147 | else | 1147 | else |
1148 | color_fprintf(stdout, color, " %7.2f", percent); | 1148 | color_fprintf(stdout, color, " %7.2f", percent); |
1149 | } | 1149 | } |