diff options
author | Carl E. Love <cel@linux.vnet.ibm.com> | 2012-08-03 03:02:17 (GMT) |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-07 01:10:54 (GMT) |
commit | adbf115d66649b3a52e6875f93c9f131ba690cce (patch) | |
tree | 710646c039a4449858f8c3e853bac22b04390647 /arch/powerpc/kernel/fadump.c | |
parent | 22d8ce887991f8f70a68fb68972f187ec79d44b7 (diff) | |
download | linux-fsl-qoriq-adbf115d66649b3a52e6875f93c9f131ba690cce.tar.xz |
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>
Diffstat (limited to 'arch/powerpc/kernel/fadump.c')
0 files changed, 0 insertions, 0 deletions