aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/thread.h')
-rw-r--r--tools/perf/util/thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h
index 32d060164b52..4ebbb40d46d4 100644
--- a/tools/perf/util/thread.h
+++ b/tools/perf/util/thread.h
@@ -12,6 +12,7 @@ struct thread {
12 struct list_head node; 12 struct list_head node;
13 }; 13 };
14 struct map_groups mg; 14 struct map_groups mg;
15 pid_t pid_; /* Not all tools update this */
15 pid_t tid; 16 pid_t tid;
16 pid_t ppid; 17 pid_t ppid;
17 char shortname[3]; 18 char shortname[3];
@@ -25,7 +26,7 @@ struct thread {
25 26
26struct machine; 27struct machine;
27 28
28struct thread *thread__new(pid_t tid); 29struct thread *thread__new(pid_t pid, pid_t tid);
29void thread__delete(struct thread *self); 30void thread__delete(struct thread *self);
30static inline void thread__exited(struct thread *thread) 31static inline void thread__exited(struct thread *thread)
31{ 32{