diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2013-08-26 09:00:19 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-08-27 10:05:53 -0400 |
commit | 99d725fc65563a85d4290342c81b00a673c6be66 (patch) | |
tree | fde3a103b824d4c60fb8102063495aa176b11e8c /tools/perf/util/thread.h | |
parent | 9e9716d1b929ddb6955a5954fe1d9a74b233df0d (diff) |
perf tools: Add pid to struct thread
Record pid on struct thread. The member is named 'pid_' to avoid
confusion with the 'tid' member which was previously named 'pid'.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1377522030-27870-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/thread.h')
-rw-r--r-- | tools/perf/util/thread.h | 3 |
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 | ||
26 | struct machine; | 27 | struct machine; |
27 | 28 | ||
28 | struct thread *thread__new(pid_t tid); | 29 | struct thread *thread__new(pid_t pid, pid_t tid); |
29 | void thread__delete(struct thread *self); | 30 | void thread__delete(struct thread *self); |
30 | static inline void thread__exited(struct thread *thread) | 31 | static inline void thread__exited(struct thread *thread) |
31 | { | 32 | { |