Re: [PATCH] perf tools: Fix ppid for non-main thread

2015-04-09 Thread David Ahern
On 4/9/15 11:05 AM, Don Zickus wrote: On Thu, Apr 09, 2015 at 12:48:27PM -0400, David Ahern wrote: >Commit ca6c41c59b9 sets the ppid based on what is read from the >/proc/pid/status file when synthesizing fork events. This is correct >thing to do for new processes but not threads of a process. F

Re: [PATCH] perf tools: Fix ppid for non-main thread

2015-04-09 Thread Don Zickus
On Thu, Apr 09, 2015 at 12:48:27PM -0400, David Ahern wrote: > Commit ca6c41c59b9 sets the ppid based on what is read from the > /proc/pid/status file when synthesizing fork events. This is correct > thing to do for new processes but not threads of a process. Fix > ppid for threads to be the main t

[PATCH] perf tools: Fix ppid for non-main thread

2015-04-09 Thread David Ahern
Commit ca6c41c59b9 sets the ppid based on what is read from the /proc/pid/status file when synthesizing fork events. This is correct thing to do for new processes but not threads of a process. Fix ppid for threads to be the main thread when synthesizing fork events (ie., assume main thread spawned