Re: [PATCH] perf_events: fix read() bogus counts when in error state

From: Stephane Eranian
Date: Thu Nov 26 2009 - 12:48:54 EST


On Thu, Nov 26, 2009 at 6:36 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> On Thu, 2009-11-26 at 09:24 -0800, Stephane Eranian wrote:
>> Â Â Â When a pinned group cannot be scheduled it goes into error state.
>> Â Â Â Normally a group cannot go out of error state without being explicitly
>> Â Â Â re-enabled or disabled. There was a bug in per-thread mode, whereby
>> Â Â Â upon termination of the thread, the group would transition from error
>> Â Â Â to off leading to bogus counts and timing information returned by
>> Â Â Â read().
>
>> Â Â Â Signed-off-by: Stephane Eranian <eranian@xxxxxxxxxx>
>
> Right, good catch, totally forgot about error state :/
>
You need to clarify what pin actually means for per-thread
and I'd like to see an explanation for what happens when
sampling.
--
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/