Re: [PATCH 09/14] perf ftrace: Add 'record' sub-command

From: Namhyung Kim
Date: Wed May 08 2013 - 01:27:49 EST


Hi Jiri,

On Mon, 6 May 2013 14:04:11 +0200, Jiri Olsa wrote:
> On Mon, May 06, 2013 at 10:44:56AM +0900, Namhyung Kim wrote:
>> Hi Jiri,
>>
>> Sorry for late reply. I've been busy these days.
>>
>> On Thu, 25 Apr 2013 15:24:18 +0900, Namhyung Kim wrote:
>> > But it looks there's a race between cond_wait() and cond_broatcast().
>> > I'll take a look at that.
>>
>> I think the problem is that a recorder can be blocked if it received a
>> broadcast signal before calling cond_wait(). So I modified the code to
>> place signaling ready_cond and waiting start_cond in the same cs.
>>
>> Does the patch below fix your problem?
>
> yes.. without the patch I get lockup in like 10 minutes
> with the patch the test is now ok for almost an hour..

Many thanks for your test!

Namhyung
--
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/