diff options
Diffstat (limited to 'tools/perf/util/thread.h')
| -rw-r--r-- | tools/perf/util/thread.h | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 99263cb6e6b6..4eb849e9098f 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h @@ -1,7 +1,7 @@  #ifndef __PERF_THREAD_H  #define __PERF_THREAD_H -#include <linux/atomic.h> +#include <linux/refcount.h>  #include <linux/rbtree.h>  #include <linux/list.h>  #include <unistd.h> @@ -23,11 +23,12 @@ struct thread {  	pid_t			tid;  	pid_t			ppid;  	int			cpu; -	atomic_t		refcnt; +	refcount_t		refcnt;  	char			shortname[3];  	bool			comm_set;  	int			comm_len;  	bool			dead; /* if set thread has exited */ +	struct list_head	namespaces_list;  	struct list_head	comm_list;  	u64			db_id; @@ -40,6 +41,7 @@ struct thread {  };  struct machine; +struct namespaces;  struct comm;  struct thread *thread__new(pid_t pid, pid_t tid); @@ -62,6 +64,10 @@ static inline void thread__exited(struct thread *thread)  	thread->dead = true;  } +struct namespaces *thread__namespaces(const struct thread *thread); +int thread__set_namespaces(struct thread *thread, u64 timestamp, +			   struct namespaces_event *event); +  int __thread__set_comm(struct thread *thread, const char *comm, u64 timestamp,  		       bool exec);  static inline int thread__set_comm(struct thread *thread, const char *comm,  | 
