From: Andi Kleen Date: Thu, 3 Mar 2011 02:34:48 +0000 (+0800) Subject: perf: Fix LLC-* events on Intel Nehalem/Westmere X-Git-Tag: v2.6.39-rc1~510^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e994d7d23a0bae34cd28834e85522ed4e782faf7;p=pandora-kernel.git perf: Fix LLC-* events on Intel Nehalem/Westmere On Intel Nehalem and Westmere CPUs the generic perf LLC-* events count the L2 caches, not the real L3 LLC - this was inconsistent with behavior on other CPUs. Fixing this requires the use of the special OFFCORE_RESPONSE events which need a separate mask register. This has been implemented by the previous patch, now use this infrastructure to set correct events for the LLC-* on Nehalem and Westmere. Signed-off-by: Andi Kleen Signed-off-by: Lin Ming Signed-off-by: Peter Zijlstra LKML-Reference: <1299119690-13991-3-git-send-email-ming.m.lin@intel.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed