diff options
| author | Namhyung Kim <namhyung@kernel.org> | 2025-08-15 20:16:28 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-08-28 12:32:47 -0300 |
| commit | 7736a6fba05837d178caa3c0ced55da77377a7e6 (patch) | |
| tree | 3b5d89f8cda9d2bfff4055ff4ceffddb31e1a908 /tools/perf/ui/browsers/annotate.c | |
| parent | d94d5eb54f9cf21411ad18fa2c7b6082437aa6c5 (diff) | |
perf annotate: Simplify width calculation in annotation_line__write()
The width is updated after each part is printed. It can skip the output
processing if the total printed size is bigger than the width.
No function changes intended.
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/20250816031635.25318-6-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions
