perf evlist: Reset SIGTERM handler in workload child process
authorDavid Ahern <dsahern@gmail.com>
Sat, 25 May 2013 23:50:39 +0000 (17:50 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 30 May 2013 11:34:56 +0000 (14:34 +0300)
commit0817df08d31cd961be225e601d8ec92acac62027
tree304ffc700d5a911fb5e01f1b2445f2810bcad186
parentfd851780e61ac36e8d59fe87cca01a2e673930ff
perf evlist: Reset SIGTERM handler in workload child process

Jiri reported hanging perf tests on latest acme's perf/core and bisected
it to 87f303a9f:

[jolsa@krava2 perf]$ cat /proc/sys/kernel/perf_event_paranoid
1
[jolsa@krava2 perf]$ ./perf record -C 0 kill
Error:
You may not have permission to collect %sstats.
Consider tweaking /proc/sys/kernel/perf_event_paranoid:
 -1 - Not paranoid at all
  0 - Disallow raw tracepoint access for unpriv
  1 - Disallow cpu events for unpriv
  2 - Disallow kernel profiling for unpriv

Need to let default handling kickin for workload process.

Reported-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Tested-by: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1369525839-1261-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c