]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf tools: Fix split kallsyms DSO counting
authorNamhyung Kim <namhyung@kernel.org>
Tue, 2 Dec 2025 23:57:15 +0000 (15:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:14 +0000 (13:55 +0100)
commite8097bd44a52d5c8b420710f330844d4eb00c505
treeace55cd4eb80f28c82ad16be222f7853a282491b
parentd6cbe9b36f3682a85fefcccc2a08510a65126a50
perf tools: Fix split kallsyms DSO counting

[ Upstream commit ad0b9c4865b98dc37f4d606d26b1c19808796805 ]

It's counted twice as it's increased after calling maps__insert().  I
guess we want to increase it only after it's added properly.

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