aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorYong Wang <yong.y.wang@linux.intel.com>2009-06-09 09:15:53 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-09 10:50:07 -0400
commitfecc8ac8496fce96069724f54daba8e7078b0082 (patch)
treed318922967fcb7a690e22782f435d75155c565d9 /arch/x86
parentaefcf37b82886260d8540c9fb815e613c8977e06 (diff)
perf_counter, x86: Correct some event and umask values for Intel processors
Correct some event and UMASK values according to Intel SDM, in the Nehalem and Atom tables. Signed-off-by: Yong Wang <yong.y.wang@intel.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <20090609131553.GA12489@ywang-moblin2.bj.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/cpu/perf_counter.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c
index 56001feeffcd..40978aac6e0f 100644
--- a/arch/x86/kernel/cpu/perf_counter.c
+++ b/arch/x86/kernel/cpu/perf_counter.c
@@ -119,7 +119,7 @@ static const u64 nehalem_hw_cache_event_ids
119 }, 119 },
120 [ C(L1I ) ] = { 120 [ C(L1I ) ] = {
121 [ C(OP_READ) ] = { 121 [ C(OP_READ) ] = {
122 [ C(RESULT_ACCESS) ] = 0x0480, /* L1I.READS */ 122 [ C(RESULT_ACCESS) ] = 0x0380, /* L1I.READS */
123 [ C(RESULT_MISS) ] = 0x0280, /* L1I.MISSES */ 123 [ C(RESULT_MISS) ] = 0x0280, /* L1I.MISSES */
124 }, 124 },
125 [ C(OP_WRITE) ] = { 125 [ C(OP_WRITE) ] = {
@@ -162,7 +162,7 @@ static const u64 nehalem_hw_cache_event_ids
162 [ C(ITLB) ] = { 162 [ C(ITLB) ] = {
163 [ C(OP_READ) ] = { 163 [ C(OP_READ) ] = {
164 [ C(RESULT_ACCESS) ] = 0x01c0, /* INST_RETIRED.ANY_P */ 164 [ C(RESULT_ACCESS) ] = 0x01c0, /* INST_RETIRED.ANY_P */
165 [ C(RESULT_MISS) ] = 0x0185, /* ITLB_MISS_RETIRED */ 165 [ C(RESULT_MISS) ] = 0x20c8, /* ITLB_MISS_RETIRED */
166 }, 166 },
167 [ C(OP_WRITE) ] = { 167 [ C(OP_WRITE) ] = {
168 [ C(RESULT_ACCESS) ] = -1, 168 [ C(RESULT_ACCESS) ] = -1,
@@ -291,7 +291,7 @@ static const u64 atom_hw_cache_event_ids
291 [ C(RESULT_MISS) ] = 0, 291 [ C(RESULT_MISS) ] = 0,
292 }, 292 },
293 [ C(OP_WRITE) ] = { 293 [ C(OP_WRITE) ] = {
294 [ C(RESULT_ACCESS) ] = 0x2241, /* L1D_CACHE.ST */ 294 [ C(RESULT_ACCESS) ] = 0x2240, /* L1D_CACHE.ST */
295 [ C(RESULT_MISS) ] = 0, 295 [ C(RESULT_MISS) ] = 0,
296 }, 296 },
297 [ C(OP_PREFETCH) ] = { 297 [ C(OP_PREFETCH) ] = {
@@ -301,8 +301,8 @@ static const u64 atom_hw_cache_event_ids
301 }, 301 },
302 [ C(L1I ) ] = { 302 [ C(L1I ) ] = {
303 [ C(OP_READ) ] = { 303 [ C(OP_READ) ] = {
304 [ C(RESULT_ACCESS) ] = 0x0080, /* L1I.READS */ 304 [ C(RESULT_ACCESS) ] = 0x0380, /* L1I.READS */
305 [ C(RESULT_MISS) ] = 0x0081, /* L1I.MISSES */ 305 [ C(RESULT_MISS) ] = 0x0280, /* L1I.MISSES */
306 }, 306 },
307 [ C(OP_WRITE) ] = { 307 [ C(OP_WRITE) ] = {
308 [ C(RESULT_ACCESS) ] = -1, 308 [ C(RESULT_ACCESS) ] = -1,
@@ -329,11 +329,11 @@ static const u64 atom_hw_cache_event_ids
329 }, 329 },
330 [ C(DTLB) ] = { 330 [ C(DTLB) ] = {
331 [ C(OP_READ) ] = { 331 [ C(OP_READ) ] = {
332 [ C(RESULT_ACCESS) ] = 0x0f40, /* L1D_CACHE_LD.MESI (alias) */ 332 [ C(RESULT_ACCESS) ] = 0x2140, /* L1D_CACHE_LD.MESI (alias) */
333 [ C(RESULT_MISS) ] = 0x0508, /* DTLB_MISSES.MISS_LD */ 333 [ C(RESULT_MISS) ] = 0x0508, /* DTLB_MISSES.MISS_LD */
334 }, 334 },
335 [ C(OP_WRITE) ] = { 335 [ C(OP_WRITE) ] = {
336 [ C(RESULT_ACCESS) ] = 0x0f41, /* L1D_CACHE_ST.MESI (alias) */ 336 [ C(RESULT_ACCESS) ] = 0x2240, /* L1D_CACHE_ST.MESI (alias) */
337 [ C(RESULT_MISS) ] = 0x0608, /* DTLB_MISSES.MISS_ST */ 337 [ C(RESULT_MISS) ] = 0x0608, /* DTLB_MISSES.MISS_ST */
338 }, 338 },
339 [ C(OP_PREFETCH) ] = { 339 [ C(OP_PREFETCH) ] = {