diff options
-rw-r--r-- | tools/perf/util/ui/browsers/hists.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index 951e2e985c87..40fd42470447 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c | |||
@@ -989,6 +989,8 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
989 | bi && | 989 | bi && |
990 | bi->to.sym != NULL && | 990 | bi->to.sym != NULL && |
991 | !bi->to.map->dso->annotate_warned && | 991 | !bi->to.map->dso->annotate_warned && |
992 | (bi->to.sym != bi->from.sym || | ||
993 | bi->to.map->dso != bi->from.map->dso) && | ||
992 | asprintf(&options[nr_options], "Annotate %s", | 994 | asprintf(&options[nr_options], "Annotate %s", |
993 | bi->to.sym->name) > 0) | 995 | bi->to.sym->name) > 0) |
994 | annotate_t = nr_options++; | 996 | annotate_t = nr_options++; |