perf/x86: Avoid exposing wrong/stale data in intel_pmu_lbr_read_32()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 11 Apr 2017 08:10:28 +0000 (10:10 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 14 Apr 2017 08:18:00 +0000 (10:18 +0200)
commitf2200ac311302fcdca6556fd0c5127eab6c65a3e
tree5c12d5baf4edc09c47eec34a7c7214028ef4cfba
parent0718b334068475d5eac4e25f1a88981880917f1d
perf/x86: Avoid exposing wrong/stale data in intel_pmu_lbr_read_32()

When the perf_branch_entry::{in_tx,abort,cycles} fields were added,
intel_pmu_lbr_read_32() wasn't updated to initialize them.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: <stable@vger.kernel.org>
Fixes: 135c5612c460 ("perf/x86/intel: Support Haswell/v4 LBR format")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/lbr.c