]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf tools: Mark split kallsyms DSOs as loaded
authorNamhyung Kim <namhyung@kernel.org>
Tue, 2 Dec 2025 23:57:14 +0000 (15:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:31 +0000 (14:03 +0100)
commit30f874b8a92ff71a275846d38f2e39a44ae0e4a8
treec2e4c4767c16b4184eb481c72e685b50ee95effa
parent88fc3dd6e631b3e2975f898c6c2b6bc6f7058b44
perf tools: Mark split kallsyms DSOs as loaded

[ Upstream commit 7da4d60db33cccd8f4c445ab20bba71531435ee5 ]

The maps__split_kallsyms() will split symbols to module DSOs if it comes
from a module.  It also handled some unusual kernel symbols after modules
by creating new kernel maps like "[kernel].0".

But they are pseudo DSOs to have those unexpected symbols.  They should
not be considered as unloaded kernel DSOs.  Otherwise the dso__load()
for them will end up calling dso__load_kallsyms() and then
maps__split_kallsyms() again and again.

Reviewed-by: Ian Rogers <irogers@google.com>
Fixes: 2e538c4a1847291cf ("perf tools: Improve kernel/modules symbol lookup")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/symbol.c