]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
perf stat: Factor out generic metric printing
authorAndi Kleen <ak@linux.intel.com>
Thu, 31 Aug 2017 19:40:28 +0000 (12:40 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Sep 2017 12:49:12 +0000 (09:49 -0300)
commitbba49af87393ebc8960bf8abdcbb9af53bf1aba1
tree35042c51d2182f6905a84e2d84cba4bd5002ca06
parent3ba36d3620d08be31f5ee9ae20abb9bf3bdeb05a
perf stat: Factor out generic metric printing

The 'perf stat' shadow metric printing already supports generic metrics.
Factor out the code doing that into a separate function that can be
re-used in a later patch.

No behavior changes.

v2: Fix indentation

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170831194036.30146-4-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stat-shadow.c