summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/oprofile/common.c
diff options
context:
space:
mode:
authorCarl E. Love <cel@linux.vnet.ibm.com>2012-08-03 03:02:17 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-07 11:10:54 +1000
commitadbf115d66649b3a52e6875f93c9f131ba690cce (patch)
tree710646c039a4449858f8c3e853bac22b04390647 /arch/powerpc/oprofile/common.c
parent22d8ce887991f8f70a68fb68972f187ec79d44b7 (diff)
downloadlinux-adbf115d66649b3a52e6875f93c9f131ba690cce.tar.bz2
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/oprofile/common.c')
0 files changed, 0 insertions, 0 deletions