aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/machine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index 1de5438ad070..e3353307330c 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,
498 if (kmod_path__parse_name(&m, filename)) 498 if (kmod_path__parse_name(&m, filename))
499 return NULL; 499 return NULL;
500 500
501 map = map_groups__find_by_name(&machine->kmaps, MAP__FUNCTION,
502 m.name);
503 if (map)
504 goto out;
505
501 dso = machine__module_dso(machine, &m, filename); 506 dso = machine__module_dso(machine, &m, filename);
502 if (dso == NULL) 507 if (dso == NULL)
503 goto out; 508 goto out;