perf stat: Factor out callback for collecting event values
authorAndi Kleen <ak@linux.intel.com>
Mon, 20 Mar 2017 20:16:59 +0000 (13:16 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 21 Mar 2017 19:03:39 +0000 (16:03 -0300)
commitfbe51fba82901fd15d3e0a068388fcd7d02dc047
tree1c00b1edd5b37a175929be92e9c88f457977ed92
parented7b339fb570749042332169e62541b208fc4296
perf stat: Factor out callback for collecting event values

To be used in next patch to support automatic summing of alias events.

v2: Move check for bad results to next patch
v3: Remove trivial addition.
v4: Use perf_evsel__cpus instead of evsel->cpus

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