Skip to content

Commit 05a6293

Browse files
notValordnamhyung
authored andcommitted
perf dso: Fix symtab_type for kmod compression
During the rework of the dso structure in patch ee756ef an increment was forgotten for the symtab_type in case the data for the kernel module are compressed. This affects the probing of the kernel modules, which fails if the data are not already cached. Increment the value of the symtab_type to its compressed variant so the data could be recovered successfully. Fixes: ee756ef ("perf dso: Add reference count checking and accessor functions") Signed-off-by: Veronika Molnarova <vmolnaro@redhat.com> Acked-by: Michael Petlan <mpetlan@redhat.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Michael Petlan <mpetlan@redhat.com> Link: https://lore.kernel.org/r/20241010144836.16424-1-vmolnaro@redhat.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent e34f6ac commit 05a6293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/util/machine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ static int maps__set_module_path(struct maps *maps, const char *path, struct kmo
13431343
* we need to update the symtab_type if needed.
13441344
*/
13451345
if (m->comp && is_kmod_dso(dso)) {
1346-
dso__set_symtab_type(dso, dso__symtab_type(dso));
1346+
dso__set_symtab_type(dso, dso__symtab_type(dso)+1);
13471347
dso__set_comp(dso, m->comp);
13481348
}
13491349
map__put(map);

0 commit comments

Comments
 (0)