perf dwarf-aux: Add die_collect_global_vars()
authorNamhyung Kim <namhyung@kernel.org>
Thu, 2 May 2024 06:00:06 +0000 (23:00 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 2 May 2024 13:45:30 +0000 (10:45 -0300)
commitd7b60803a790b716dc930bde2155c6ecb7537d51
tree028629e065397f6ab1ed9722487cc057067bd20b
parent8c618b58c89ce4c24c0030bd42340938bdf8e29c
perf dwarf-aux: Add die_collect_global_vars()

This function is to search all global variables in the CU.  We want to
have the list of global variables at once and match them later.

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: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240502060011.1838090-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/dwarf-aux.c
tools/perf/util/dwarf-aux.h