]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter tools: Propagate signals properly
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 10 Jun 2009 13:55:59 +0000 (15:55 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 10 Jun 2009 14:55:27 +0000 (16:55 +0200)
commiteb22aaa9660695e4c452aafd56d46a3194f78dd4
tree4a542e0c386ceebc306886604337dbe6db50c413
parenta97e3c4f4e016f89a203c6cb4f69ced957fcf7d0
perf_counter tools: Propagate signals properly

Currently report and stat catch SIGINT (and others) without altering
their exit state. This means that things like:

   while :; do perf stat ./foo ; done

Loops become hard-to-interrupt, because bash never sees perf terminate
due to interruption. Fix this.

Signed-off-by: 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
tools/perf/builtin-stat.c