]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Use same signal handling strategy as 'record'
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Dec 2015 19:43:57 +0000 (16:43 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Dec 2015 15:08:55 +0000 (12:08 -0300)
commitb19e5cd2331524980dacfafa977fd2294900bb44
tree973fa64aa84aaa12e176cef7fc166adaaf836f7b
parent95081c233ed052fb54ee912083b7899a26059ab3
perf tools: Use same signal handling strategy as 'record'

I.e. don't exit with the signal number, instead set the signal handler
to the default one and then raise it again.

Noticed while trying to dump the stack at segfaults in the 'perf test'
forked process used to run each test, that inspects signal info at
each test.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-5x5r176wnoqxi5p6id05wv9w@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/util.c