linux-stable/arch/powerpc/oprofile
Carl E. Love adbf115d66 powerpc/oprofile: Fix marked events support on Power7+ not set.
Starting with Power 7+ we need to check for marked events if the SIAR
register is valid, i.e. it contains the correct address of the instruction
at the time the performance counter overflowed.  The mmcra register on
Power 7+, contains a new bit to indicate that the contents of the SIAR
is valid. If the event is not marked, then the sample is recorded
independently of the SIAR valid bit setting.  For older processors, there
is no SIAR valid bit to check so the samples are always recorded.  This is
done by forcing the cntr_marked_events bit mask to zero.  The code will
always record the sample in this case since the bit mask says the event is
not a marked event even if it really is a marked event.

Signed-off-by: Carl Love <cel@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-09-07 11:10:54 +10:00
..
cell include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
backtrace.c powerpc: Use is_32bit_task() helper to test 32-bit binary 2010-09-02 14:07:32 +10:00
common.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
Makefile powerpc/Makefiles: Change to new flag variables 2010-10-13 16:19:22 +11:00
op_model_7450.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
op_model_cell.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
op_model_fsl_emb.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
op_model_pa6t.c powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
op_model_power4.c powerpc/oprofile: Fix marked events support on Power7+ not set. 2012-09-07 11:10:54 +10:00
op_model_rs64.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00