Yuanfang Chen <[email protected]> writes: > Hi, > > I'm trying to measure offcore events on snb. (kernel 3.6.0-rc3). For example > OFFCORE_RESPONSE.ALL_CODE_RD.LLC_HIT_N is 0x10003C0244 according to > intel manual. so I tried > > perf stat -e r1b710003C0244 -- sleep 10 > perf stat -e r10003C02441b7 -- sleep 10 > > both gives me 0, I did something wrong?
OFFCORE requires setting an external MSR. perf currently supports this for its integrated events, as the support for setting the MSR directly was not accepted. It works though to write the MSR manually through /dev/cpu/*/msr, as long as you exclude conflicts manually. For details see the Intel SDM. -Andi -- [email protected] -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
