Re: [PATCH] perf/x86: Fix LLC-* and node-* events on Intel SandyBridge

From: Yan, Zheng
Date: Sun Jul 22 2012 - 07:43:37 EST

On Sat, Jul 21, 2012 at 12:48 AM, Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:
> On Tue, 2012-07-17 at 17:27 +0800, Yan, Zheng wrote:
>> From: "Yan, Zheng" <zheng.z.yan@xxxxxxxxx>
>> LLC-* and node-* events require using the OFFCORE_RESPONSE events
>> on SandyBridge, but the hw_cache_extra_regs is left uninitialized.
>> This patch adds the missing extra register configure table for
>> SandyBridge.
> Last time I tried this I couldn't get sane numbers out of it..
> Does these encodings work, if so, do explain them.

I have tested them and compared the results with Nehalme. I think
they do work.

normal LLC reads + LLC reads generated by L2 prefetcher

normal RFO requests + RFO requests generated by L2 prefetcher

>> +
>> + SNB_HITM)
SNB_SNP_ANY contains all snoop related bits, because we don't care the snoop

>> +
>> +
For LLC access, we don't care the supplier and snoop information.

If the supplier is DRAM, we consider it as LLC miss.

> Also:
>> +#define SNB_REMOTE (0xffULL << 23)
> I guess I can take this as an 'official' publication of this fact?
> (I knew those bits meant this, but I never got a response if I could
> publish that information.)
See chapter 18.8.7 of Intel 64 SDM Volume 3 (Order Number 325384)

Yan, Zheng
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at