LWN.net Logo

perf, x86: Add parts of the remaining haswell PMU functionality v4

From:  Andi Kleen <andi@firstfloor.org>
To:  mingo@kernel.org
Subject:  perf, x86: Add parts of the remaining haswell PMU functionality v4
Date:  Sat, 31 Aug 2013 06:37:02 -0700
Message-ID:  <1377956226-18594-1-git-send-email-andi@firstfloor.org>
Cc:  peterz@infradead.org, acme@infradead.org, linux-kernel@vger.kernel.org
Archive-link:  Article, Thread

[v2: Added Peter's changes to the PEBS handler]
[v3: Addressed Arnaldo's feedback for the perf stat -T change
     and avoid conflict]
[v4: Remove XXX comment in checkpoint patch.
     Add Arnaldo's ack for tools patch]

Add some more TSX functionality to the basic Haswell PMU.

A lot of the infrastructure needed for these patches has
been merged earlier, so it is all quite straight forward
now.

- Add the checkpointed counter workaround.
(Parts of this have been already merged earlier)
- Add support for reporting PEBS transaction abort cost as weight.
This is useful to judge the cost of aborts and concentrate
on expensive ones first.
(Large parts of this have been already merged earlier,
this is just adding the final few lines to the PEBS handler)
- Add TSX event aliases, needed for perf stat -T and general
usability.
(Infrastructure also already in)
- Add perf stat -T support to give a user friendly highlevel
counting frontend for transaction..
This version should also be usable for POWER8 eventually.

Not included:

Support for transaction flags and TSX LBR flags.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds