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

David Ahern
2015-06-10T18:47:17Z

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()?