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>
This commit is contained in:
parent
9e9716d1b9
commit
99d725fc65
3 changed files with 15 additions and 7 deletions
|
@ -12,6 +12,7 @@ struct thread {
|
|||
struct list_head node;
|
||||
};
|
||||
struct map_groups mg;
|
||||
pid_t pid_; /* Not all tools update this */
|
||||
pid_t tid;
|
||||
pid_t ppid;
|
||||
char shortname[3];
|
||||
|
@ -25,7 +26,7 @@ struct thread {
|
|||
|
||||
struct machine;
|
||||
|
||||
struct thread *thread__new(pid_t tid);
|
||||
struct thread *thread__new(pid_t pid, pid_t tid);
|
||||
void thread__delete(struct thread *self);
|
||||
static inline void thread__exited(struct thread *thread)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue