diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 536ee148bff82576d7ab21949b1c20d749929539..5d74a30fe00f1f96873c5123e65631c1f8c51d5a 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -1263,6 +1263,9 @@ annotation_line__print(struct annotation_line *al, struct symbol *sym, u64 start max_percent = sample->percent; } + if (al->samples_nr > nr_percent) + nr_percent = al->samples_nr; + if (max_percent < min_pcnt) return -1;