Anton Blanchard
9a45a9407c
powerpc/perf: power_pmu_start restores incorrect values, breaking frequency events
...
perf on POWER stopped working after commit e050e3f0a71b (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>
Cc: <stable@kernel.org>
2012-02-16 16:24:35 +11:00
..
2011-12-08 14:22:53 +11:00
2011-10-31 19:30:44 -04:00
2011-12-21 14:29:42 -08:00
2011-10-31 19:30:44 -04:00
2011-11-25 14:11:28 +11:00
2011-05-19 00:36:43 -05:00
2011-07-12 13:16:58 +03:00
2011-07-12 13:16:58 +03:00
2011-12-09 07:51:02 -05:00
2011-12-20 10:20:19 -05:00
2012-01-25 09:47:45 +11:00
2011-05-19 15:31:03 +10:00
2011-11-06 19:44:47 -08:00
2011-09-20 09:19:35 +10:00
2011-11-06 19:44:47 -08:00
2011-07-01 11:06:38 +02:00
2011-11-16 14:47:54 +11:00
2011-06-29 16:40:59 +10:00
2012-02-16 16:15:10 +11:00
2011-10-31 19:30:41 -04:00
2011-05-26 13:38:57 +10:00
2011-09-20 09:19:47 +10:00
2011-09-20 09:19:47 +10:00
2011-09-20 09:19:47 +10:00
2011-12-20 10:21:57 -05:00
2011-09-20 16:09:54 +10:00
2011-06-22 21:44:55 -05:00
2011-12-20 10:20:19 -05:00
2011-10-31 19:30:44 -04:00
2011-11-06 19:44:47 -08:00
2011-10-11 23:23:24 -05:00
2011-12-08 14:22:53 +11:00
2012-01-11 11:54:20 +11:00
2011-10-31 19:30:44 -04:00
2011-10-31 19:30:37 -04:00
2011-10-31 19:30:44 -04:00
2011-11-28 21:13:18 +02:00
2011-09-23 10:27:03 +10:00
2012-02-14 15:01:38 +11:00
2011-10-31 19:30:37 -04:00
2011-11-16 14:25:19 +11:00
2011-05-23 09:12:26 -07:00
2011-11-16 14:47:54 +11:00
2012-01-25 13:33:22 +11:00
2012-01-03 22:54:56 -05:00
2012-01-12 20:13:03 -08:00
2012-01-12 20:13:03 -08:00
2012-01-06 17:58:22 -08:00
2011-12-20 10:21:08 -05:00
2011-11-16 14:47:54 +11:00
2011-06-29 17:48:20 +10:00
2011-07-24 22:06:04 +09:30
2011-07-24 22:06:04 +09:30
2011-10-31 19:30:44 -04:00
2011-07-25 22:59:39 -07:00
2011-10-31 19:30:44 -04:00
2011-10-31 19:30:44 -04:00
2011-10-31 19:30:38 -04:00
2012-01-06 12:11:08 -08:00
2011-11-25 14:53:15 +11:00
2011-10-31 19:30:37 -04:00
2012-01-11 18:50:26 -08:00
2011-08-05 14:47:56 +10:00
2011-07-01 11:06:35 +02:00
2012-02-16 16:24:35 +11:00
2011-10-31 19:30:44 -04:00
2011-07-25 22:59:39 -07:00
2011-07-25 22:59:39 -07:00
2011-07-25 22:59:39 -07:00
2011-09-29 17:04:59 +10:00
2011-09-20 16:12:56 +10:00
2011-07-25 22:59:39 -07:00
2011-10-31 19:30:44 -04:00
2012-02-16 16:11:23 +11:00
2011-09-20 16:09:48 +10:00
2011-12-20 10:20:19 -05:00
2011-10-31 19:30:44 -04:00
2011-12-08 10:22:08 -08:00
2012-01-17 16:16:56 -05:00
2011-12-20 10:21:08 -05:00
2011-11-25 14:11:29 +11:00
2011-07-12 09:28:04 -05:00
2011-06-29 15:30:43 +10:00
2012-02-14 15:01:39 +11:00
2011-11-25 14:11:29 +11:00
2011-11-16 14:47:54 +11:00
2011-12-07 16:26:23 +11:00
2011-10-31 19:30:44 -04:00
2011-11-17 16:41:10 +11:00
2011-10-31 19:30:44 -04:00
2011-07-26 16:49:47 -07:00
2012-01-07 12:03:30 -08:00
2011-10-31 19:30:44 -04:00
2011-10-31 19:30:40 -04:00
2011-09-20 09:19:58 +10:00
2012-01-07 12:03:30 -08:00
2011-12-19 14:41:20 +11:00
2011-12-08 14:02:23 +11:00
2011-05-06 13:32:41 +10:00
2011-11-06 17:12:03 -08:00
2011-10-31 19:30:44 -04:00
2011-05-19 14:30:42 +10:00
2011-12-21 22:03:32 +01:00
2011-12-20 10:21:08 -05:00