Skip to content

Commit f1a5278

Browse files
Stephane EranianIngo Molnar
authored andcommitted
perf/x86: Fix broken PEBS-LL support on SNB-EP/IVB-EP
This patch fixes broken support of PEBS-LL on SNB-EP/IVB-EP. For some reason, the LDLAT extra reg definition for snb_ep showed up as duplicate in the snb table. This patch moves the definition of LDLAT back into the snb_ep table. Thanks to Don Zickus for tracking this one down. Signed-off-by: Stephane Eranian <eranian@google.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20130607212210.GA11849@quad Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 9bb5d40 commit f1a5278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/perf_event_intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ static struct extra_reg intel_snb_extra_regs[] __read_mostly = {
165165
INTEL_EVENT_EXTRA_REG(0xb7, MSR_OFFCORE_RSP_0, 0x3f807f8fffull, RSP_0),
166166
INTEL_EVENT_EXTRA_REG(0xbb, MSR_OFFCORE_RSP_1, 0x3f807f8fffull, RSP_1),
167167
INTEL_UEVENT_PEBS_LDLAT_EXTRA_REG(0x01cd),
168-
INTEL_UEVENT_PEBS_LDLAT_EXTRA_REG(0x01cd),
169168
EVENT_EXTRA_END
170169
};
171170

172171
static struct extra_reg intel_snbep_extra_regs[] __read_mostly = {
173172
INTEL_EVENT_EXTRA_REG(0xb7, MSR_OFFCORE_RSP_0, 0x3fffff8fffull, RSP_0),
174173
INTEL_EVENT_EXTRA_REG(0xbb, MSR_OFFCORE_RSP_1, 0x3fffff8fffull, RSP_1),
174+
INTEL_UEVENT_PEBS_LDLAT_EXTRA_REG(0x01cd),
175175
EVENT_EXTRA_END
176176
};
177177

0 commit comments

Comments
 (0)