[PATCH 05/12] perf, x86: Support Haswell v4 LBR format

2013-01-31 Thread Andi Kleen
From: Andi Kleen Haswell has two additional LBR from flags for TSX: intx and abort, 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 fl

Re: [PATCH 05/12] perf, x86: Support Haswell v4 LBR format

2013-01-28 Thread Stephane Eranian
On Mon, Jan 28, 2013 at 11:08 PM, Andi Kleen wrote: >> > - if (lbr_format == LBR_FORMAT_EIP_FLAGS) { >> > + if (lbr_format == LBR_FORMAT_EIP_FLAGS || >> > + lbr_format == LBR_FORMAT_EIP_FLAGS2) { >> > mis = !!(from & LBR_FROM_FL

Re: [PATCH 05/12] perf, x86: Support Haswell v4 LBR format

2013-01-28 Thread Andi Kleen
> > - if (lbr_format == LBR_FORMAT_EIP_FLAGS) { > > + if (lbr_format == LBR_FORMAT_EIP_FLAGS || > > + lbr_format == LBR_FORMAT_EIP_FLAGS2) { > > mis = !!(from & LBR_FROM_FLAG_MISPRED); > > pred = !mis; > >

Re: [PATCH 05/12] perf, x86: Support Haswell v4 LBR format

2013-01-28 Thread Stephane Eranian
On Fri, Jan 25, 2013 at 11:00 PM, Andi Kleen wrote: > From: Andi Kleen > > Haswell has two additional LBR from flags for TSX: intx and abort, 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 expo

[PATCH 05/12] perf, x86: Support Haswell v4 LBR format

2013-01-25 Thread Andi Kleen
From: Andi Kleen Haswell has two additional LBR from flags for TSX: intx and abort, 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 fl