• Carl E. Love's avatar
    powerpc/oprofile: Fix marked events support on Power7+ not set. · adbf115d
    Carl E. Love authored
    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: default avatarCarl Love <cel@us.ibm.com>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    adbf115d
op_model_power4.c 11.4 KB