]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf annotate-data: Add is_pointer_type() helper
authorNamhyung Kim <namhyung@kernel.org>
Fri, 16 Aug 2024 23:58:36 +0000 (16:58 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 19 Aug 2024 14:40:57 +0000 (11:40 -0300)
commit98d1f1dc72fd6e0e85db4acc0b2dd591f4488216
treeb76705a9fe412227d17c28ba72676f8d86e42bd3
parent69e2c78425c92361f0ab01cbbb8f3a44fc94341f
perf annotate-data: Add is_pointer_type() helper

It treats pointers and arrays in the same way.  Let's add the helper and
use it when it checks if it needs a pointer.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.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/20240816235840.2754937-7-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate-data.c