]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf annotate: Pass annotation_options to annotation_line__print()
authorNamhyung Kim <namhyung@kernel.org>
Mon, 10 Mar 2025 22:49:21 +0000 (15:49 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Mar 2025 07:19:51 +0000 (00:19 -0700)
commit9aa3cbbffb166ffac6b276c00a6a991dc8de2f17
treeae80c1d76fc556a9ed2ffff1f19540d2f05348b4
parent1f284082b167d275ca1d291869da4ef3b2261fb9
perf annotate: Pass annotation_options to annotation_line__print()

The annotation_line__print() has many arguments.  But min_percent,
max_lines and percent_type are from struct annotaion_options.  So let's
pass a pointer to the option instead of passing them separately to
reduce the number of function arguments.

Actually it has a recursive call if 'queue' is set.  Add a new option
instance to pass different values for the case.

Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250310224925.799005-4-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/annotate.c