]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf symbol: Set binary_type of dso when loading
authorNamhyung Kim <namhyung@kernel.org>
Fri, 26 Apr 2024 21:51:38 +0000 (14:51 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 22 Sep 2024 21:46:18 +0000 (23:46 +0200)
commit5363c306787c88d41a41493f81b4308643696f6e
tree116b678f63effeb5039e424aaaea8bee7b9af917
parentde5cb0dcb74c294ec527eddfe5094acfdb21ff21
perf symbol: Set binary_type of dso when loading

For the kernel dso, it sets the binary type of dso when loading the
symbol table.  But it seems not to do that for user DSOs.  Actually
it sets the symtab type only.  It's not clear why we want to maintain
the two separately but it uses the binary type info before getting
the disassembly.

Let's use the symtab type as binary type too if it's not set.  I think
it's ok to set the binary type when it founds a symsrc whether or not
it has actual symbols.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Alexander Monakov <amonakov@ispras.ru>
Link: https://lore.kernel.org/r/20240426215139.1271039-1-namhyung@kernel.org
Cc: Ian Rogers <irogers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Cc: <linux-perf-users@vger.kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c