Re: [PATCH v2 12/19] perf, tools, stat: Factor out generic metric printing

2017-08-28 Thread Jiri Olsa
On Fri, Aug 11, 2017 at 04:26:27PM -0700, Andi Kleen wrote: SNIP > +static void generic_metric(const char *metric_expr, > +struct perf_evsel **metric_events, > +char *name, > +const char *metric_name, > +

[PATCH v2 12/19] perf, tools, stat: Factor out generic metric printing

2017-08-11 Thread Andi Kleen
From: Andi Kleen 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. Signed-off-by: Andi Kleen --- tools/perf/util/stat-shadow.c | 69 +