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

From: Jiri Olsa
Date: Tue Apr 29 2014 - 07:38:21 EST


On Tue, Apr 29, 2014 at 01:19:39PM +0200, Peter Zijlstra wrote:
> On Tue, Apr 29, 2014 at 12:56:54PM +0200, Jiri Olsa wrote:
> >
> > perf_counter tools: Propagate signals properly
> > commit f7b7c26e01e51fe46097e11f179dc71ce7950084
> > Author: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> > Date: Wed Jun 10 15:55:59 2009 +0200
> >
> > but I dont think we need to do that
>
> But but but, then you're re-introducing that fail again? That no good.

well, I was trying the testcase you mentioned in the changelog
and it seemed to work for me.. ;-) I guess I was lucky to hit
the bash time window..

while :; do perf stat ./foo ; done

so how does this work? bash will kill the loop if perf's wait
status is WIFSIGNALED?

thanks,
jirka
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/