diff options
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r-- | tools/perf/util/map.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index 845f627e45f4..dffc8dce6046 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include "build-id.h" | 13 | #include "build-id.h" |
14 | #include "util.h" | 14 | #include "util.h" |
15 | #include "debug.h" | 15 | #include "debug.h" |
16 | #include "machine.h" | ||
16 | #include <linux/string.h> | 17 | #include <linux/string.h> |
17 | 18 | ||
18 | const char *map_type__name[MAP__NR_TYPES] = { | 19 | const char *map_type__name[MAP__NR_TYPES] = { |
@@ -137,7 +138,7 @@ void map__init(struct map *map, enum map_type type, | |||
137 | map->erange_warned = false; | 138 | map->erange_warned = false; |
138 | } | 139 | } |
139 | 140 | ||
140 | struct map *map__new(struct list_head *dsos__list, u64 start, u64 len, | 141 | struct map *map__new(struct machine *machine, u64 start, u64 len, |
141 | u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, | 142 | u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino, |
142 | u64 ino_gen, u32 prot, u32 flags, char *filename, | 143 | u64 ino_gen, u32 prot, u32 flags, char *filename, |
143 | enum map_type type) | 144 | enum map_type type) |
@@ -173,9 +174,9 @@ struct map *map__new(struct list_head *dsos__list, u64 start, u64 len, | |||
173 | 174 | ||
174 | if (vdso) { | 175 | if (vdso) { |
175 | pgoff = 0; | 176 | pgoff = 0; |
176 | dso = vdso__dso_findnew(dsos__list); | 177 | dso = vdso__dso_findnew(machine); |
177 | } else | 178 | } else |
178 | dso = __dsos__findnew(dsos__list, filename); | 179 | dso = __dsos__findnew(&machine->user_dsos, filename); |
179 | 180 | ||
180 | if (dso == NULL) | 181 | if (dso == NULL) |
181 | goto out_delete; | 182 | goto out_delete; |