Re: [PATCH] powerpc: perf: Handle events that raise an exception without overflowing

2011-03-16 Thread Ingo Molnar
* Anton Blanchard an...@samba.org wrote: Events on POWER7 can roll back if a speculative event doesn't eventually complete. Unfortunately in some rare cases they will raise a performance monitor exception. We need to catch this to ensure we reset the PMC. In all cases the PMC will be 256

Re: [PATCH] powerpc: perf: Handle events that raise an exception without overflowing

2011-03-16 Thread Benjamin Herrenschmidt
On Wed, 2011-03-16 at 13:50 +0100, Ingo Molnar wrote: * Anton Blanchard an...@samba.org wrote: Events on POWER7 can roll back if a speculative event doesn't eventually complete. Unfortunately in some rare cases they will raise a performance monitor exception. We need to catch this to

[PATCH] powerpc: perf: Handle events that raise an exception without overflowing

2011-03-08 Thread Anton Blanchard
Events on POWER7 can roll back if a speculative event doesn't eventually complete. Unfortunately in some rare cases they will raise a performance monitor exception. We need to catch this to ensure we reset the PMC. In all cases the PMC will be 256 or less cycles from overflow. Signed-off-by: