perf/x86: Suppress duplicated abort LBR records
authorAndi Kleen <ak@linux.intel.com>
Fri, 20 Sep 2013 14:40:44 +0000 (07:40 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 4 Oct 2013 08:06:16 +0000 (10:06 +0200)
commitb7af41a1bc255c0098c37a4bcf5c7e5e168ce875
treed6fc45600ecb9af6eb96c114269fa22b19c732db
parent475eeab9f3c1579c8da89667496084db4867bf7c
perf/x86: Suppress duplicated abort LBR records

Haswell always give an extra LBR record after every TSX abort.
Suppress the extra record.

This only works when the abort is visible in the LBR
If the original abort has already left the 16 LBR entries
the extra entry will will stay.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1379688044-14173-7-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.h
arch/x86/kernel/cpu/perf_event_intel.c
arch/x86/kernel/cpu/perf_event_intel_lbr.c