diff options
-rw-r--r-- | tools/perf/builtin-stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index aa706fca410e..39a97ade2cf3 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -284,7 +284,7 @@ static int process_counter(struct perf_evsel *counter) | |||
284 | int i, ret; | 284 | int i, ret; |
285 | 285 | ||
286 | aggr->val = aggr->ena = aggr->run = 0; | 286 | aggr->val = aggr->ena = aggr->run = 0; |
287 | memset(ps->res_stats, 0, sizeof(ps->res_stats)); | 287 | init_stats(ps->res_stats); |
288 | 288 | ||
289 | if (counter->per_pkg) | 289 | if (counter->per_pkg) |
290 | zero_per_pkg(counter); | 290 | zero_per_pkg(counter); |