summaryrefslogtreecommitdiffstats
path: root/arch/x86/events
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-04-14 10:30:28 +0200
committerIngo Molnar <mingo@kernel.org>2017-04-14 10:30:28 +0200
commit18c5c7c6186eb17c5814c095ddcbb5002aec4d74 (patch)
tree8e21d94f32ee783d9c2ac6ff0a55c048b7d4a87d /arch/x86/events
parentkprobes/x86: Consolidate insn decoder users for copying code (diff)
parentperf/x86: Avoid exposing wrong/stale data in intel_pmu_lbr_read_32() (diff)
downloadlinux-18c5c7c6186eb17c5814c095ddcbb5002aec4d74.tar.xz
linux-18c5c7c6186eb17c5814c095ddcbb5002aec4d74.zip
Merge branch 'perf/urgent' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/events')
-rw-r--r--arch/x86/events/intel/lbr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c
index 81b321ace8e0..f924629836a8 100644
--- a/arch/x86/events/intel/lbr.c
+++ b/arch/x86/events/intel/lbr.c
@@ -507,6 +507,9 @@ static void intel_pmu_lbr_read_32(struct cpu_hw_events *cpuc)
cpuc->lbr_entries[i].to = msr_lastbranch.to;
cpuc->lbr_entries[i].mispred = 0;
cpuc->lbr_entries[i].predicted = 0;
+ cpuc->lbr_entries[i].in_tx = 0;
+ cpuc->lbr_entries[i].abort = 0;
+ cpuc->lbr_entries[i].cycles = 0;
cpuc->lbr_entries[i].reserved = 0;
}
cpuc->lbr_stack.nr = i;