perf session: Remove threads from tree on PERF_RECORD_EXIT
[pandora-kernel.git] / tools / perf / util / thread.h
index 1dfd9ff..ee6bbcf 100644 (file)
@@ -6,7 +6,10 @@
 #include "symbol.h"
 
 struct thread {
-       struct rb_node          rb_node;
+       union {
+               struct rb_node   rb_node;
+               struct list_head node;
+       };
        struct map_groups       mg;
        pid_t                   pid;
        char                    shortname[3];