diff options
author | David Ahern <[email protected]> | 2015-04-09 12:48:27 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-04-10 10:10:55 -0300 |
commit | 7764a385f60bd200304a33124bdb4e684caeabdf (patch) | |
tree | aee1436f97de4571d4a490307808e736af02d6fb /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 51ab7155c08baf45cc2aa911961e5b78422e478f (diff) |
perf tools: Fix synthesizing fork_event.ppid for non-main thread
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 all sub-threads in a process).
Reported-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: David Ahern <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Acked-by: Don Zickus <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions