perf tools: Allocate thread map_groups's dynamically
[firefly-linux-kernel-4.4.55.git] / tools / perf / util / thread.h
index 9b29f085aedeaa637da7bb25e571c07a19697cd0..bee1eb0f73bcd1cc1a7d2336545e09779d39f0a5 100644 (file)
@@ -13,7 +13,7 @@ struct thread {
                struct rb_node   rb_node;
                struct list_head node;
        };
-       struct map_groups       mg;
+       struct map_groups       *mg;
        pid_t                   pid_; /* Not all tools update this */
        pid_t                   tid;
        pid_t                   ppid;