|
@@ -13,6 +13,7 @@
|
|
|
#include "build-id.h"
|
|
|
#include "util.h"
|
|
|
#include "debug.h"
|
|
|
+#include "machine.h"
|
|
|
#include <linux/string.h>
|
|
|
|
|
|
const char *map_type__name[MAP__NR_TYPES] = {
|
|
@@ -137,7 +138,7 @@ void map__init(struct map *map, enum map_type type,
|
|
|
map->erange_warned = false;
|
|
|
}
|
|
|
|
|
|
-struct map *map__new(struct list_head *dsos__list, u64 start, u64 len,
|
|
|
+struct map *map__new(struct machine *machine, u64 start, u64 len,
|
|
|
u64 pgoff, u32 pid, u32 d_maj, u32 d_min, u64 ino,
|
|
|
u64 ino_gen, u32 prot, u32 flags, char *filename,
|
|
|
enum map_type type)
|
|
@@ -173,9 +174,9 @@ struct map *map__new(struct list_head *dsos__list, u64 start, u64 len,
|
|
|
|
|
|
if (vdso) {
|
|
|
pgoff = 0;
|
|
|
- dso = vdso__dso_findnew(dsos__list);
|
|
|
+ dso = vdso__dso_findnew(machine);
|
|
|
} else
|
|
|
- dso = __dsos__findnew(dsos__list, filename);
|
|
|
+ dso = __dsos__findnew(&machine->user_dsos, filename);
|
|
|
|
|
|
if (dso == NULL)
|
|
|
goto out_delete;
|