aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r--tools/perf/util/map.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index 36ff0bf0315d..f6626cc3df2e 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -68,8 +68,13 @@ struct map *map__new(struct mmap_event *event, enum map_type type,
68 map__init(self, type, event->start, event->start + event->len, 68 map__init(self, type, event->start, event->start + event->len,
69 event->pgoff, dso); 69 event->pgoff, dso);
70 70
71 if (self->dso == vdso || anon) 71 if (anon) {
72set_identity:
72 self->map_ip = self->unmap_ip = identity__map_ip; 73 self->map_ip = self->unmap_ip = identity__map_ip;
74 } else if (strcmp(filename, "[vdso]") == 0) {
75 dso__set_loaded(dso, self->type);
76 goto set_identity;
77 }
73 } 78 }
74 return self; 79 return self;
75out_delete: 80out_delete: