diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 1de5438ad0700206e8b8eb9064cfce4f4ee24903..e3353307330cb4737e491e997cec554f8c1e26a9 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -498,6 +498,11 @@ struct map *machine__new_module(struct machine *machine, u64 start, if (kmod_path__parse_name(&m, filename)) return NULL; + map = map_groups__find_by_name(&machine->kmaps, MAP__FUNCTION, + m.name); + if (map) + goto out; + dso = machine__module_dso(machine, &m, filename); if (dso == NULL) goto out;