Files
linux/arch/powerpc/kernel
Anton Blanchard 49f936fe90 powerpc/perf: power_pmu_start restores incorrect values, breaking frequency events
commit 9a45a9407c upstream.

perf on POWER stopped working after commit e050e3f0a7 (perf: Fix
broken interrupt rate throttling). That patch exposed a bug in
the POWER perf_events code.

Since the PMCs count upwards and take an exception when the top bit
is set, we want to write 0x80000000 - left in power_pmu_start. We were
instead programming in left which effectively disables the counter
until we eventually hit 0x80000000. This could take seconds or longer.

With the patch applied I get the expected number of samples:

          SAMPLE events:       9948

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-29 16:33:39 -08:00
..
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-27 13:02:02 +10:00
2011-03-30 10:44:00 +11:00
2011-05-19 17:32:29 +10:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-20 16:23:19 -07:00
2010-10-05 17:27:54 -07:00
2011-03-31 11:26:23 -03:00
2011-05-25 08:39:13 -07:00
2010-12-09 15:35:32 +11:00
2011-03-31 11:26:23 -03:00
2010-09-22 09:33:50 -07:00
2011-05-26 13:38:58 +10:00
2010-07-19 10:56:54 +02:00
2011-03-31 11:26:23 -03:00
2010-03-12 15:52:32 -08:00