Skip to content

Commit 29dc267

Browse files
Taeungacmel
authored andcommitted
perf annotate TUI: Fix --show-total-period
We were showing the number of samples, not the total period, fix it. Reported-by: Namhyung Kim <[email protected]> Signed-off-by: Taeung Song <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Martin Liška <[email protected]> Cc: Milian Wolff <[email protected]> Cc: Jiri Olsa <[email protected]> Fixes: 0c4a5bc ("perf annotate: Display total number of samples with --show-total-period") Link: http://lkml.kernel.org/r/[email protected] [ extracted from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent bb79a23 commit 29dc267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/ui/browsers/annotate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static void annotate_browser__write(struct ui_browser *browser, void *entry, int
152152
current_entry);
153153
if (annotate_browser__opts.show_total_period) {
154154
ui_browser__printf(browser, "%6" PRIu64 " ",
155-
bdl->samples[i].he.nr_samples);
155+
bdl->samples[i].he.period);
156156
} else {
157157
ui_browser__printf(browser, "%6.2f ",
158158
bdl->samples[i].percent);

0 commit comments

Comments
 (0)