Re: [PATCH v4 1/2] perf record: Propagate exit status of a command line workload

2014-05-07 Thread Peter Zijlstra
On Wed, May 07, 2014 at 10:13:24AM +0900, Namhyung Kim wrote: > - on_exit(record__sig_exit, rec); NAK! pgpZfXHB5LSj6.pgp Description: PGP signature

Re: [PATCH v4 1/2] perf record: Propagate exit status of a command line workload

2014-05-07 Thread Peter Zijlstra
On Wed, May 07, 2014 at 10:13:24AM +0900, Namhyung Kim wrote: - on_exit(record__sig_exit, rec); NAK! pgpZfXHB5LSj6.pgp Description: PGP signature

[PATCH v4 1/2] perf record: Propagate exit status of a command line workload

2014-05-06 Thread Namhyung Kim
Currently perf record doesn't propagate the exit status of a workload given by the command line. But sometimes it'd useful if it's propagated so that a monitoring script can handle errors appropriately. To do that, it got rid of exit handlers and run/call them directly in the __cmd_record(). I

[PATCH v4 1/2] perf record: Propagate exit status of a command line workload

2014-05-06 Thread Namhyung Kim
Currently perf record doesn't propagate the exit status of a workload given by the command line. But sometimes it'd useful if it's propagated so that a monitoring script can handle errors appropriately. To do that, it got rid of exit handlers and run/call them directly in the __cmd_record(). I