|
@@ -21,7 +21,7 @@ static void dsos__init(struct dsos *dsos)
|
|
|
|
|
|
int machine__init(struct machine *machine, const char *root_dir, pid_t pid)
|
|
|
{
|
|
|
- map_groups__init(&machine->kmaps);
|
|
|
+ map_groups__init(&machine->kmaps, machine);
|
|
|
RB_CLEAR_NODE(&machine->rb_node);
|
|
|
dsos__init(&machine->user_dsos);
|
|
|
dsos__init(&machine->kernel_dsos);
|
|
@@ -32,7 +32,6 @@ int machine__init(struct machine *machine, const char *root_dir, pid_t pid)
|
|
|
|
|
|
machine->vdso_info = NULL;
|
|
|
|
|
|
- machine->kmaps.machine = machine;
|
|
|
machine->pid = pid;
|
|
|
|
|
|
machine->symbol_filter = NULL;
|
|
@@ -319,7 +318,7 @@ static void machine__update_thread_pid(struct machine *machine,
|
|
|
goto out_err;
|
|
|
|
|
|
if (!leader->mg)
|
|
|
- leader->mg = map_groups__new();
|
|
|
+ leader->mg = map_groups__new(machine);
|
|
|
|
|
|
if (!leader->mg)
|
|
|
goto out_err;
|