diff options
author | Namhyung Kim <namhyung@kernel.org> | 2024-08-03 14:13:30 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2024-08-05 16:11:42 -0300 |
commit | b00e4d0d93d30a693ee88b2c25f40181d327e53b (patch) | |
tree | dfb5d9c8fe4331cbe64a53c523c76c0f1234c898 /tools/perf/builtin-annotate.c | |
parent | cb1e8bfc7914747692c06b215539ef80105fddbc (diff) | |
download | linux-b00e4d0d93d30a693ee88b2c25f40181d327e53b.tar.gz linux-b00e4d0d93d30a693ee88b2c25f40181d327e53b.tar.bz2 linux-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 <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240803211332.1107222-4-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions