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

From: Jiri Olsa
Date: Wed Jun 10 2015 - 16:21:36 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/