perf/x86/intel: Support Haswell/v4 LBR format
authorAndi Kleen <ak@linux.intel.com>
Tue, 18 Jun 2013 00:36:51 +0000 (17:36 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Jun 2013 12:43:35 +0000 (14:43 +0200)
commit135c5612c460f89657c4698fe2ea753f6f667963
tree0f191e399ad6f07a150944e33c4c7f6dfcba8c3f
parent72db55964695dcd4aa15950f3b2fb7c09ad79829
perf/x86/intel: Support Haswell/v4 LBR format

Haswell has two additional LBR from flags for TSX: in_tx and
abort_tx, implemented as a new "v4" version of the LBR format.

Handle those in and adjust the sign extension code to still
correctly extend. The flags are exported similarly in the LBR
record to the existing misprediction flag

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Andi Kleen <ak@linux.jf.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/r/1371515812-9646-6-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_lbr.c
include/linux/perf_event.h
include/uapi/linux/perf_event.h