]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf annotate: Use al->data_nr if possible
authorNamhyung Kim <namhyung@kernel.org>
Sat, 3 Aug 2024 21:13:28 +0000 (14:13 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Aug 2024 19:07:02 +0000 (16:07 -0300)
commit2dc02c26419b984692e20949252ca6cba515abaf
treec194245691162ed6feb3b97348d6fcc93a089222
parentdbb2a7a986971ef43d5a60d235c05491647e16f4
perf annotate: Use al->data_nr if possible

The data_nr keeps the number of entries in al->data[] so it should use
it when it iterates the array.  The notes->src->nr_events should have
the same number but it'd be natural to use al->data_nr.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
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-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c