Re: [PATCH] perf dso: fix dso__is_kallsyms() check

From: Namhyung Kim
Date: Thu Mar 20 2025 - 12:01:13 EST


On Tue, 18 Mar 2025 16:00:11 -0700, Stephen Brennan wrote:
> Kernel modules for which we cannot find a file on-disk will have a
> dso->long_name that looks like "[module_name]". Prior to the commit
> listed in the fixes, the dso->kernel field would be zero (for user
> space), so dso__is_kallsyms() would return false. After the commit,
> kernel module DSOs are correctly labeled, but the result is that
> dso__is_kallsyms() erroneously returns true for those modules without a
> filesystem path.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung