From: Stephane Eranian Date: Thu, 26 Nov 2009 17:24:30 +0000 (-0800) Subject: perf_events: Fix read() bogus counts when in error state X-Git-Tag: v2.6.33-rc1~399^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2e74a265ded1a185f762ebaab967e9e0d008dd8;p=pandora-kernel.git perf_events: Fix read() bogus counts when in error state 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(). Fix it by clearing the error state. Signed-off-by: Stephane Eranian Acked-by: Peter Zijlstra Cc: Paul Mackerras Cc: perfmon2-devel@lists.sourceforge.net LKML-Reference: <4b0eb9ce.0508d00a.573b.ffffeab6@mx.google.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed