diff options
author | Namhyung Kim <namhyung@kernel.org> | 2025-03-10 15:49:21 -0700 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-03-13 00:19:51 -0700 |
commit | 9aa3cbbffb166ffac6b276c00a6a991dc8de2f17 (patch) | |
tree | ae80c1d76fc556a9ed2ffff1f19540d2f05348b4 /tools/perf/util/trace-event-scripting.c | |
parent | 1f284082b167d275ca1d291869da4ef3b2261fb9 (diff) | |
download | linux-9aa3cbbffb166ffac6b276c00a6a991dc8de2f17.tar.gz linux-9aa3cbbffb166ffac6b276c00a6a991dc8de2f17.tar.bz2 linux-9aa3cbbffb166ffac6b276c00a6a991dc8de2f17.zip |
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>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions