summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui
diff options
context:
space:
mode:
authorTaeung Song <treeze.taeung@gmail.com>2017-07-27 11:33:20 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-07-28 12:53:06 -0300
commit29dc267f270a4ad5ae1341e7fdc8539ac7dc907a (patch)
treec47ec20a70a0a502d7f2dadd18d49d4bc6161e66 /tools/perf/ui
parentbb79a232b0881ce47f921a53f40612a9f9996482 (diff)
downloadlinux-stable-29dc267f270a4ad5ae1341e7fdc8539ac7dc907a.tar.gz
linux-stable-29dc267f270a4ad5ae1341e7fdc8539ac7dc907a.tar.bz2
linux-stable-29dc267f270a4ad5ae1341e7fdc8539ac7dc907a.zip
perf annotate TUI: Fix --show-total-period
We were showing the number of samples, not the total period, fix it. Reported-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Taeung Song <treeze.taeung@gmail.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Martin Liška <mliska@suse.cz> Cc: Milian Wolff <milian.wolff@kdab.com> Cc: Jiri Olsa <jolsa@redhat.com> Fixes: 0c4a5bcea460 ("perf annotate: Display total number of samples with --show-total-period") Link: http://lkml.kernel.org/r/1500500223-16753-1-git-send-email-treeze.taeung@gmail.com [ extracted from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui')
-rw-r--r--tools/perf/ui/browsers/annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index 680fff70f7a0..c382b1d8af42 100644
--- a/tools/perf/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -152,7 +152,7 @@ static void annotate_browser__write(struct ui_browser *browser, void *entry, int
current_entry);
if (annotate_browser__opts.show_total_period) {
ui_browser__printf(browser, "%6" PRIu64 " ",
- bdl->samples[i].he.nr_samples);
+ bdl->samples[i].he.period);
} else {
ui_browser__printf(browser, "%6.2f ",
bdl->samples[i].percent);