aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/ui/browsers/hists.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index f69371b7f49b..ebd9d3afe2d6 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -1623,17 +1623,17 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
1623 1623
1624 if (bi->from.sym != NULL && 1624 if (bi->from.sym != NULL &&
1625 !bi->from.map->dso->annotate_warned && 1625 !bi->from.map->dso->annotate_warned &&
1626 asprintf(&options[nr_options], "Annotate %s", 1626 asprintf(&options[nr_options], "Annotate %s", bi->from.sym->name) > 0) {
1627 bi->from.sym->name) > 0)
1628 annotate_f = nr_options++; 1627 annotate_f = nr_options++;
1628 }
1629 1629
1630 if (bi->to.sym != NULL && 1630 if (bi->to.sym != NULL &&
1631 !bi->to.map->dso->annotate_warned && 1631 !bi->to.map->dso->annotate_warned &&
1632 (bi->to.sym != bi->from.sym || 1632 (bi->to.sym != bi->from.sym ||
1633 bi->to.map->dso != bi->from.map->dso) && 1633 bi->to.map->dso != bi->from.map->dso) &&
1634 asprintf(&options[nr_options], "Annotate %s", 1634 asprintf(&options[nr_options], "Annotate %s", bi->to.sym->name) > 0) {
1635 bi->to.sym->name) > 0)
1636 annotate_t = nr_options++; 1635 annotate_t = nr_options++;
1636 }
1637 } else { 1637 } else {
1638 if (browser->selection->sym != NULL && 1638 if (browser->selection->sym != NULL &&
1639 !browser->selection->map->dso->annotate_warned) { 1639 !browser->selection->map->dso->annotate_warned) {
@@ -1643,8 +1643,9 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
1643 1643
1644 if (notes->src && 1644 if (notes->src &&
1645 asprintf(&options[nr_options], "Annotate %s", 1645 asprintf(&options[nr_options], "Annotate %s",
1646 browser->selection->sym->name) > 0) 1646 browser->selection->sym->name) > 0) {
1647 annotate = nr_options++; 1647 annotate = nr_options++;
1648 }
1648 } 1649 }
1649 } 1650 }
1650skip_annotation: 1651skip_annotation: