aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/hist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index b675857883a2..8d5cfcc3bc63 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -716,8 +716,8 @@ static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h
716 if (h->filtered) 716 if (h->filtered)
717 return; 717 return;
718 718
719 if (h->ms.unfolded) 719 /* force fold unfiltered entry for simplicity */
720 hists->nr_non_filtered_entries += h->nr_rows; 720 h->ms.unfolded = false;
721 h->row_offset = 0; 721 h->row_offset = 0;
722 722
723 hists->stats.nr_non_filtered_samples += h->stat.nr_events; 723 hists->stats.nr_non_filtered_samples += h->stat.nr_events;