diff options
author | Vince Weaver <vincent.weaver@maine.edu> | 2014-07-14 15:33:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-07-16 07:18:40 -0400 |
commit | 1996388e9f4e3444db8273bc08d25164d2967c21 (patch) | |
tree | b04d7178fec737871cc102edb2b201c8d5d3987a /arch/x86/kernel/cpu/perf_event_intel.c | |
parent | 1903d50cba54261a6562a476c05085f3d7a54097 (diff) |
perf/x86/intel: Use proper dTLB-load-misses event on IvyBridge
This was discussed back in February:
https://lkml.org/lkml/2014/2/18/956
But I never saw a patch come out of it.
On IvyBridge we share the SandyBridge cache event tables, but the
dTLB-load-miss event is not compatible. Patch it up after
the fact to the proper DTLB_LOAD_MISSES.DEMAND_LD_MISS_CAUSES_A_WALK
Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1407141528200.17214@vincent-weaver-1.umelst.maine.edu
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event_intel.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c index 07846d738bdb..c206815b9556 100644 --- a/arch/x86/kernel/cpu/perf_event_intel.c +++ b/arch/x86/kernel/cpu/perf_event_intel.c | |||
@@ -2474,6 +2474,9 @@ __init int intel_pmu_init(void) | |||
2474 | case 62: /* IvyBridge EP */ | 2474 | case 62: /* IvyBridge EP */ |
2475 | memcpy(hw_cache_event_ids, snb_hw_cache_event_ids, | 2475 | memcpy(hw_cache_event_ids, snb_hw_cache_event_ids, |
2476 | sizeof(hw_cache_event_ids)); | 2476 | sizeof(hw_cache_event_ids)); |
2477 | /* dTLB-load-misses on IVB is different than SNB */ | ||
2478 | hw_cache_event_ids[C(DTLB)][C(OP_READ)][C(RESULT_MISS)] = 0x8108; /* DTLB_LOAD_MISSES.DEMAND_LD_MISS_CAUSES_A_WALK */ | ||
2479 | |||
2477 | memcpy(hw_cache_extra_regs, snb_hw_cache_extra_regs, | 2480 | memcpy(hw_cache_extra_regs, snb_hw_cache_extra_regs, |
2478 | sizeof(hw_cache_extra_regs)); | 2481 | sizeof(hw_cache_extra_regs)); |
2479 | 2482 | ||