Re: [PATCH] powerpc, perf: Clear out branch entries to avoid any previous stale values

2013-05-06 Thread Michael Ellerman
On Mon, 2013-05-06 at 13:34 +0530, Anshuman Khandual wrote: > The 'to' field inside branch entries might contain stale values from previous > PMU interrupt instances which had indirect branches. So clear all the values > before reading a fresh set of BHRB entries after a PMU interrupt. > > Signed-

[PATCH] powerpc, perf: Clear out branch entries to avoid any previous stale values

2013-05-06 Thread Anshuman Khandual
The 'to' field inside branch entries might contain stale values from previous PMU interrupt instances which had indirect branches. So clear all the values before reading a fresh set of BHRB entries after a PMU interrupt. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 2 ++

[PATCH] powerpc, perf: Clear out branch entries to avoid any previous stale values

2013-05-06 Thread Anshuman Khandual
The 'to' field inside branch entries might contain stale values from previous PMU interrupt instances which had indirect branches. So clear all the values before reading a fresh set of BHRB entries after a PMU interrupt. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/core-book3s.c | 2 ++