mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
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: 2e538c4a18 ("perf tools: Improve kernel/modules symbol lookup")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d01f0e072d
commit
7438b1d70b
@@ -905,11 +905,11 @@ static int maps__split_kallsyms(struct maps *kmaps, struct dso *dso, u64 delta,
|
||||
if (dso->kernel == DSO_SPACE__KERNEL_GUEST)
|
||||
snprintf(dso_name, sizeof(dso_name),
|
||||
"[guest.kernel].%d",
|
||||
kernel_range++);
|
||||
kernel_range);
|
||||
else
|
||||
snprintf(dso_name, sizeof(dso_name),
|
||||
"[kernel].%d",
|
||||
kernel_range++);
|
||||
kernel_range);
|
||||
|
||||
ndso = dso__new(dso_name);
|
||||
if (ndso == NULL)
|
||||
|
||||
Reference in New Issue
Block a user