diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index acb9210fd18a34545dec9d133653e6d94824e218..006d10a0dc962dd8ffac28e2ad7aec1747b9b7ae 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -225,6 +225,9 @@ static int64_t _sort__sym_cmp(struct symbol *sym_l, struct symbol *sym_r) if (sym_l == sym_r) return 0; + if (sym_l->inlined || sym_r->inlined) + return strcmp(sym_l->name, sym_r->name); + if (sym_l->start != sym_r->start) return (int64_t)(sym_r->start - sym_l->start);