diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index dae4202fa65ae7bcfc6ae600c09dcf849611e316..677e1da6bb3eae6d688cd7e1afc51070e55810ea 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -847,6 +847,9 @@ size_t hists__fprintf(struct hists *self, struct hists *pair, for (nd = rb_first(&self->entries); nd; nd = rb_next(nd)) { struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); + if (h->filtered) + continue; + if (show_displacement) { if (h->pair != NULL) displacement = ((long)h->pair->position -