aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2024-08-03 21:13:30 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-08-05 19:11:42 +0000
commitb00e4d0d93d30a693ee88b2c25f40181d327e53b (patch)
treedfb5d9c8fe4331cbe64a53c523c76c0f1234c898 /tools/perf/builtin-annotate.c
parentperf annotate: Set notes->src->nr_events early (diff)
downloadkernel-b00e4d0d93d30a693ee88b2c25f40181d327e53b.tar.gz
kernel-b00e4d0d93d30a693ee88b2c25f40181d327e53b.zip
perf annotate: Use annotation__pcnt_width() consistently
The annotation__pcnt_width() calculates the screen width for the overhead (percent) area considering event groups properly. Use this function consistently so that we can make sure it has similar output in different modes. But there's a difference in stdio and tui output: stdio uses 8 and tui uses 7 for a percent. Let's use 8 and adjust the print width in __annotation_line__write() properly. Signed-off-by: Namhyung Kim <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions