]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Scale values by unit before metrics
authorAndi Kleen <ak@linux.intel.com>
Thu, 5 May 2016 23:04:04 +0000 (16:04 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 May 2016 16:42:09 +0000 (13:42 -0300)
commit0da726f3f29b79eb1d4c5688c032c002a9fa5eda
tree8ec154bf1f61e1d829404bfe750634c5b36e5a26
parenteea5f457aaca7d7ed335c49735663074a97b908f
perf stat: Scale values by unit before metrics

Scale values by unit before passing them to the metrics printing
functions.  This is needed for TopDown, because it needs to scale the
slots correctly by pipeline width / SMTness.

For existing metrics it shouldn't make any difference, as those
generally use events that don't have any units.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1462489447-31832-8-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stat.c