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:


      22 020 143 037 UNHALTED_CORE_CYCLES (0,00% scaling, ena=9 670 910 328, run=9 670 910 328)
      14 974 191 218 UNHALTED_CORE_CYCLES:intx (0,00% scaling, ena=9 670 910 328, run=9 670 910 328)
      19 240 174 502 UNHALTED_CORE_CYCLES:intxcp (0,00% scaling, ena=9 670 910 328, run=9 670 910 328)

Note that the value for UNHALTED_CORE_CYCLES:intxcp is greater than for UNHALTED_CORE_CYCLES:intx which as per my understanding is not possible. The UNHALTED_CORE_CYCLES and UNHALTED_CORE_CYCLES:intx values match what I get from Intel's PCM-TSX tool.

On Tue, Aug 20, 2013 at 11:04 AM, Stephane Eranian <eranian@googlemail.com> wrote:

On Tue, Aug 20, 2013 at 11:02 AM, Bhavishya Goel <bhavishya.goel@gmail.com> 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 <eranian@googlemail.com> wrote:

On Tue, Aug 20, 2013 at 9:56 AM, Bhavishya Goel <bhavishya.goel@gmail.com> wrote:

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 UNHALTED_CORE_CYCLES:intx ./tsx_example

The count for UNHALTED_CORE_CYCLES remains the same with and without intx attribute. The intxcp attribute also doesn't make a difference. Intel's PCM-TSX tool for the same code shows that cycles spent within transaction are only 56% of the total cycles.

And what kernel version are you using?
You need kernel support to get Haswell support. In fact, you need 3.11.0-rc5 or so.
With any older kernels, the tsx modifiers will be ignored.


Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
perfmon2-devel mailing list