perf tools: Add new COMM infrastructure
[deliverable/linux.git] / tools / perf / util / thread.h
index 4ebbb40d46d43e13cc78010601611eb30e5c7498..8702c6b4163a5dd7bf24e70cd8693d6dfc15f2ed 100644 (file)
@@ -2,6 +2,7 @@
 #define __PERF_THREAD_H
 
 #include <linux/rbtree.h>
+#include <linux/list.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include "symbol.h"
@@ -18,7 +19,7 @@ struct thread {
        char                    shortname[3];
        bool                    comm_set;
        bool                    dead; /* if set thread has exited */
-       char                    *comm;
+       struct list_head        comm_list;
        int                     comm_len;
 
        void                    *priv;
@@ -33,10 +34,11 @@ static inline void thread__exited(struct thread *thread)
        thread->dead = true;
 }
 
-int thread__set_comm(struct thread *self, const char *comm);
+int thread__set_comm(struct thread *thread, const char *comm, u64 timestamp);
 int thread__comm_len(struct thread *self);
+const char *thread__comm_str(const struct thread *thread);
 void thread__insert_map(struct thread *self, struct map *map);
-int thread__fork(struct thread *self, struct thread *parent);
+int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp);
 size_t thread__fprintf(struct thread *thread, FILE *fp);
 
 static inline struct map *thread__find_map(struct thread *self,
This page took 0.030167 seconds and 5 git commands to generate.