perf annotate: Factor out __hist_entry__get_data_type()
authorNamhyung Kim <namhyung@kernel.org>
Mon, 10 Mar 2025 22:49:23 +0000 (15:49 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Mar 2025 07:19:51 +0000 (00:19 -0700)
commit236ee2569a5de7ae3bf2bce94a4101f528ce7de8
tree56fac2c73c9c3fad258e192e677d55352fc243cf
parentfe8da6692aa8c1279b97a609f67dd56048b68bec
perf annotate: Factor out __hist_entry__get_data_type()

So that it can only handle a single disasm_linme and hopefully make the
code simpler.  This is also a preparation to be called from different
places later.

The NO_TYPE macro was added to distinguish when it failed or needs retry.

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