perf/x86: Report TSX transaction abort cost as weight
authorAndi Kleen <ak@linux.intel.com>
Fri, 6 Sep 2013 03:37:39 +0000 (20:37 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 Sep 2013 17:13:34 +0000 (19:13 +0200)
commit748e86aa90edfddfa6016f1cf383ff5bc6aada91
tree593a34c47e1ba18adfc11108f57fdc2d90f68727
parent2dbf0116aa8c7bfa900352d3f7b2609748fcc1c5
perf/x86: Report TSX transaction abort cost as weight

Use the existing weight reporting facility to report the transaction
abort cost, that is the number of cycles wasted in aborts.
Haswell reports this in the PEBS record.

This was in fact the original user for weight.

This is a very useful sort key to concentrate on the most
costly aborts and a good metric for TSX tuning.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1378438661-24765-3-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_ds.c