diff options
author | Adrian Hunter | 2015-08-19 16:29:20 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2015-08-19 19:15:25 +0200 |
commit | 5cb73340d92a716fd2776700742c3558206ae298 (patch) | |
tree | d0a04e74f6ae50c222f84bfd87aaa45d2391643e /scripts | |
parent | perf tools: Avoid deadlock when map_groups are broken (diff) | |
download | kernel-qcow2-linux-5cb73340d92a716fd2776700742c3558206ae298.tar.gz kernel-qcow2-linux-5cb73340d92a716fd2776700742c3558206ae298.tar.xz kernel-qcow2-linux-5cb73340d92a716fd2776700742c3558206ae298.zip |
perf tools: Make fork event processing more resilient
When processing a fork event, the tools lookup the parent thread by its
tid. In a couple of cases, it is possible for that thread to have the
wrong pid.
That can happen if the data is being processed out of order, or if the
(fork) event that would have removed the erroneous thread was lost.
Assume the latter case, print a dump message, remove the erroneous
thread, create a new one with the correct pid, and keep going.
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Jiri Olsa <jolsa@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1439994561-27436-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions