OSDN Git Service

perf tools: Set thread->mg.machine in all places
[android-x86/kernel.git] / tools / perf / util / thread.c
index c414117..8db9626 100644 (file)
@@ -15,7 +15,7 @@ int thread__init_map_groups(struct thread *thread, struct machine *machine)
        pid_t pid = thread->pid_;
 
        if (pid == thread->tid || pid == -1) {
-               thread->mg = map_groups__new();
+               thread->mg = map_groups__new(machine);
        } else {
                leader = machine__findnew_thread(machine, pid, pid);
                if (leader)