[PATCH 15/31] perf, core: Add a concept of a weightened sample

2012-10-02 Thread Andi Kleen
From: Andi Kleen For some events it's useful to weight sample with a hardware provided number. This expresses how expensive the action the sample represent was. This allows the profiler to scale the samples to be more informative to the programmer. There is already the period which is used

[PATCH 15/31] perf, core: Add a concept of a weightened sample

2012-10-02 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com For some events it's useful to weight sample with a hardware provided number. This expresses how expensive the action the sample represent was. This allows the profiler to scale the samples to be more informative to the programmer. There is already the