perf record: Fix fast task-exit race
authorIngo Molnar <mingo@elte.hu>
Mon, 15 Jun 2009 06:17:12 +0000 (08:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Jun 2009 07:08:31 +0000 (09:08 +0200)
commit613d8602292165f86ba1969784fea01a06d55900
treecb3c21714cc4ae35a36313a234b3d32ea8bf9838
parent038e836e97e70c4ad2b5058b07fc7207f50b59dd
perf record: Fix fast task-exit race

Recording with -a (or with -p) can race with tasks going away:

   couldn't open /proc/8440/maps

Causing an early exit() and no recording done.

Do not abort the recording session - instead just skip that task.

Also, only print the warnings under -v.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c