Re: [PATCH 1/1] perf/tools: Fix "perf record -C... workload" behaviour

2013-02-25 Thread Jiri Olsa
On Wed, Feb 06, 2013 at 08:42:58PM +0100, Oleg Nesterov wrote: > Test-case: > > # perf record -e probe_libc:syscall -C0 true > true: Terminated > > The child process is killed by perf_record__sig_exit(). This is because > perf_evlist__prepare_workload() doesn't initialize threads->map

[PATCH 1/1] perf/tools: Fix "perf record -C... workload" behaviour

2013-02-06 Thread Oleg Nesterov
Test-case: # perf record -e probe_libc:syscall -C0 true true: Terminated The child process is killed by perf_record__sig_exit(). This is because perf_evlist__prepare_workload() doesn't initialize threads->map[] and then perf_event__synthesize_mmap_events() (silently!) fails. This