Thread (2 messages) flat view 2 messages, 2 authors, 2026-07-10

Re: [PATCH v4] perf dso: Fix kallsyms DSO detection with fallback logic

From: Namhyung Kim <namhyung@kernel.org>
Date: 2026-07-10 00:41:19
Also in: linux-perf-users

On Wed, 08 Jul 2026 16:56:08 +0530, Tanushree Shah wrote:
The current kallsyms detection in dso__is_kallsyms() uses the
dso_binary_type enum which fixes the issue of kallsyms being cached in
the build-id cache for out-of-tree modules.

However, during build-id injection in perf record/inject, dso_binary_type
has not been explicitly set yet,so dso__binary_type() returns
DSO_BINARY_TYPE__NOT_FOUND instead of DSO_BINARY_TYPE__KALLSYMS for the
kernel DSO. The current check then fails to identify it as kallsyms,
causing build-id symlinks to not be created in ~/.debug/.build-id/ and
perf archive to fail with "Cannot stat" errors.

[...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help