perf stat: Use common printout function to avoid duplicated code
authorAndi Kleen <ak@linux.intel.com>
Tue, 3 Nov 2015 01:50:21 +0000 (17:50 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 4 Nov 2015 18:12:04 +0000 (15:12 -0300)
commiteedfcb4bc5f0185a14fc9e1e5a9770ad833ea5a4
treec5a7078dfb8507bb2b5ed5927556ee4ddf6df0d6
parent4579ecc8b3e0c611b5c8f6ca7f7b07d1412d8a7b
perf stat: Use common printout function to avoid duplicated code

Instead of every caller deciding whether to call abs or nsec printout
do it all in a single central function. No functional changes.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1446515428-7450-3-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c