aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/ui/browsers/hists.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 92d128f3acdc..169224c31586 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -812,10 +812,7 @@ static struct rb_node *hists__filter_entries(struct rb_node *nd,
812 if (total) 812 if (total)
813 percent = h->stat.period * 100.0 / total; 813 percent = h->stat.period * 100.0 / total;
814 814
815 if (percent < min_pcnt) 815 if (!h->filtered && percent >= min_pcnt)
816 return NULL;
817
818 if (!h->filtered)
819 return nd; 816 return nd;
820 817
821 nd = rb_next(nd); 818 nd = rb_next(nd);