Re: [PATCH 21/25] perf stat: Move perf_stat initialization counter process code

Jiri Olsa
2015-06-10T20:21:33Z

On Wed, Jun 10, 2015 at 12:47:02PM -0600, David Ahern wrote:
> On 6/10/15 12:10 PM, Jiri Olsa wrote:
> >diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
> >index efc4d420f12e..3ababdb83aad 100644
> >--- a/tools/perf/builtin-stat.c
> >+++ b/tools/perf/builtin-stat.c
> >@@ -290,6 +290,7 @@ static int process_counter(struct perf_evsel *counter)
> > int i, ret;
> >
> > aggr->val = aggr->ena = aggr->run = 0;
> >+ memset(ps->res_stats, 0, sizeof(ps->res_stats));
> >
>
> init_stats()?
>

right, thanks

jirka