[PATCH 16/31] perf, x86: Support weight samples for PEBS

2012-10-02 Thread Andi Kleen
From: Andi Kleen When a weighted sample is requested, first try to report the TSX abort cost on Haswell. If that is not available report the memory latency. This allows profiling both by abort cost and by memory latencies. Memory latencies requires enabling a different PEBS mode (LL). When both

[PATCH 16/31] perf, x86: Support weight samples for PEBS

2012-10-02 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com When a weighted sample is requested, first try to report the TSX abort cost on Haswell. If that is not available report the memory latency. This allows profiling both by abort cost and by memory latencies. Memory latencies requires enabling a different PEBS