[perfmon2] TSX event modifiers for libpfm4

2013-08-20 Thread Bhavishya Goel
Hi, I am trying to use the TSX event modifiers for libpfm4 on Intel Haswell microarchitecture. But it doesn't seem to be working for me. The counts that I see for performance events are the same with or without the intx/intxcp attibute. Following is an example of command that I run: task -i -e UN

Re: [perfmon2] TSX event modifiers for libpfm4

2013-08-20 Thread Stephane Eranian
On Tue, Aug 20, 2013 at 9:56 AM, Bhavishya Goel wrote: > Hi, > > I am trying to use the TSX event modifiers for libpfm4 on Intel Haswell > microarchitecture. But it doesn't seem to be working for me. The counts > that I see for performance events are the same with or without the > intx/intxcp atti

Re: [perfmon2] TSX event modifiers for libpfm4

2013-08-20 Thread Bhavishya Goel
Oh, I am using version 3.10.0. I will try with version 3.11-rc6. Thanks. :) On Tue, Aug 20, 2013 at 10:41 AM, Stephane Eranian wrote: > > > > On Tue, Aug 20, 2013 at 9:56 AM, Bhavishya Goel > wrote: > >> Hi, >> >> I am trying to use the TSX event modifiers for libpfm4 on Intel Haswell >> microa

Re: [perfmon2] TSX event modifiers for libpfm4

2013-08-20 Thread Stephane Eranian
On Tue, Aug 20, 2013 at 11:02 AM, Bhavishya Goel wrote: > Oh, I am using version 3.10.0. I will try with version 3.11-rc6. Thanks. :) > > > 3.10 is not sufficient. HSW support went in 3.11 > On Tue, Aug 20, 2013 at 10:41 AM, Stephane Eranian > wrote: > >> >> >> >> On Tue, Aug 20, 2013 at 9:56 A

Re: [perfmon2] TSX event modifiers for libpfm4

2013-08-20 Thread Bhavishya Goel
With the kernel version 3.11-rc6, I am able to get the intx attribute (events within transactions) working. But there seems to be some problem with intxcp attribute (events within transactions - events within aborted transactions). This is what I get now: task -i -e UNHALTED_CORE_CYCLES,UNHALTED_C

Re: [perfmon2] TSX event modifiers for libpfm4

2013-08-20 Thread Stephane Eranian
On Tue, Aug 20, 2013 at 6:34 PM, Bhavishya Goel wrote: > With the kernel version 3.11-rc6, I am able to get the intx attribute > (events within transactions) working. But there seems to be some problem > with intxcp attribute (events within transactions - events within aborted > transactions). Thi

Re: [perfmon2] TSX event modifiers for libpfm4

2013-08-20 Thread Bhavishya Goel
Aah, my bad. I didn't realize that I need to set both intx and intxcp flags to get events within transactions - events within aborted transactions, which is what I was aiming for. I should have used UNHALTED_CORE_CYCLES:intx:intxcp instead of UNHALTED_CORE_CYCLES:intxcp. Thanks for pointing that o