projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f7f73a
)
perf/x86: Disable PEBS-LL in intel_pmu_pebs_disable()
author
Stephane Eranian
<eranian@google.com>
Fri, 21 Jun 2013 14:20:41 +0000
(16:20 +0200)
committer
Ingo Molnar
<mingo@kernel.org>
Wed, 26 Jun 2013 19:58:51 +0000
(21:58 +0200)
Make sure intel_pmu_pebs_disable() and intel_pmu_pebs_enable()
are symmetrical w.r.t. PEBS-LL and precise store.
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link:
http://lkml.kernel.org/r/1371824448-7306-2-git-send-email-eranian@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_event_intel_ds.c
b/arch/x86/kernel/cpu/perf_event_intel_ds.c
index ed3e5533ce332af468d2bf12730444dad73cd944..3065c57a63c19873e07d18e13122f04704e2de96 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_event_intel_ds.c
+++ b/
arch/x86/kernel/cpu/perf_event_intel_ds.c
@@
-653,6
+653,12
@@
void intel_pmu_pebs_disable(struct perf_event *event)
struct hw_perf_event *hwc = &event->hw;
cpuc->pebs_enabled &= ~(1ULL << hwc->idx);
+
+ if (event->hw.constraint->flags & PERF_X86_EVENT_PEBS_LDLAT)
+ cpuc->pebs_enabled &= ~(1ULL << (hwc->idx + 32));
+ else if (event->hw.constraint->flags & PERF_X86_EVENT_PEBS_ST)
+ cpuc->pebs_enabled &= ~(1ULL << 63);
+
if (cpuc->enabled)
wrmsrl(MSR_IA32_PEBS_ENABLE, cpuc->pebs_enabled);