Re: [PATCH] perf symbol: Do not use debug file as the binary type

From: Namhyung Kim

Date: Tue Sep 01 2026 - 00:14:53 EST


On Tue, 25 Aug 2026 09:23:45 +0300, Adrian Hunter wrote:
> dso__load() sets the binary type of a DSO to the type of the first symbol
> source found. For a DSO with a separate debug file linked via
> .gnu-debuglink, that is DSO_BINARY_TYPE__DEBUGLINK, which makes
> dso__get_filename() return the name of the debug file instead of the file
> that was actually executed.
>
> Consumers that need to read instruction bytes, such as Intel PT decoding
> in 'perf script', then read from the debug file and produce wrong
> instructions.
>
> [...]
Applied to perf-tools, thanks!

Best regards,
Namhyung