Hi, I've ported the PCM Counter code across to Darwin (Mac OS), the msrtest and cpucounterstest programs both run and produce sensible values for instruction and cycle count, however the L2 & L3 cache values are always zero. Are these counters supported on my CPU revision (below) or is more likely that I've introduced a bug in my port? CPU: machdep.cpu.brand_string: Intel Core i7-2677M CPU @ 1.80GHz machdep.cpu.family: 6 machdep.cpu.model: 42 machdep.cpu.extmodel: 2 machdep.cpu.extfamily: 0 machdep.cpu.stepping: 7 Mike.
[PCM] L2/L3 Cache Miss Values Are Alway Zero on Sandy Bridge
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.


