Re: [PATCH 1/9] perf, tools, stat: Abstract stat metrics printing

2016-01-22 Thread Jiri Olsa
On Tue, Jan 19, 2016 at 06:26:44PM -0800, Andi Kleen wrote: SNIP > > -void perf_stat__print_shadow_stats(FILE *out, struct perf_evsel *evsel, > -double avg, int cpu, enum aggr_mode aggr) > +void perf_stat__print_shadow_stats(struct perf_evsel *evsel, > +

Re: [PATCH 1/9] perf, tools, stat: Abstract stat metrics printing

2016-01-22 Thread Jiri Olsa
On Tue, Jan 19, 2016 at 06:26:44PM -0800, Andi Kleen wrote: > From: Andi Kleen > > Abstract the printing of shadow metrics. Instead of every > metric calling fprintf directly and taking care of indentation, > use two call backs: one to print metrics and another to > start a new line. > > This wi