diff options
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r-- | tools/perf/builtin-diff.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index c9cc771f182a..52d91ac4e6c8 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -573,10 +573,7 @@ static void hists__compute_resort(struct hists *hists) | |||
573 | hists->entries = RB_ROOT; | 573 | hists->entries = RB_ROOT; |
574 | next = rb_first(root); | 574 | next = rb_first(root); |
575 | 575 | ||
576 | hists->nr_entries = 0; | 576 | hists__reset_stats(hists); |
577 | hists->nr_non_filtered_entries = 0; | ||
578 | hists->stats.total_period = 0; | ||
579 | hists->stats.total_non_filtered_period = 0; | ||
580 | hists__reset_col_len(hists); | 577 | hists__reset_col_len(hists); |
581 | 578 | ||
582 | while (next != NULL) { | 579 | while (next != NULL) { |