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

It's a prepartion to support code annotation and data type
annotation at the same time.  Data type annotation needs more
information in the hist_entry so it needs to be passed deeper.

Also rename a function with the same name in the builtin-annotate.c
to hist_entry__stdio_annotate since it matches better to the command
line option.  And change the condition inside to be simpler.

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