diff options
Diffstat (limited to 'tools/perf/ui/gtk/hists.c')
| -rw-r--r-- | tools/perf/ui/gtk/hists.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c index fc654fb77ace..4b3585eed1e8 100644 --- a/tools/perf/ui/gtk/hists.c +++ b/tools/perf/ui/gtk/hists.c | |||
| @@ -89,15 +89,6 @@ void perf_gtk__init_hpp(void) | |||
| 89 | perf_gtk__hpp_color_overhead_acc; | 89 | perf_gtk__hpp_color_overhead_acc; |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | static void callchain_list__sym_name(struct callchain_list *cl, | ||
| 93 | char *bf, size_t bfsize) | ||
| 94 | { | ||
| 95 | if (cl->ms.sym) | ||
| 96 | scnprintf(bf, bfsize, "%s", cl->ms.sym->name); | ||
| 97 | else | ||
| 98 | scnprintf(bf, bfsize, "%#" PRIx64, cl->ip); | ||
| 99 | } | ||
| 100 | |||
| 101 | static void perf_gtk__add_callchain(struct rb_root *root, GtkTreeStore *store, | 92 | static void perf_gtk__add_callchain(struct rb_root *root, GtkTreeStore *store, |
| 102 | GtkTreeIter *parent, int col, u64 total) | 93 | GtkTreeIter *parent, int col, u64 total) |
| 103 | { | 94 | { |
| @@ -128,7 +119,7 @@ static void perf_gtk__add_callchain(struct rb_root *root, GtkTreeStore *store, | |||
| 128 | scnprintf(buf, sizeof(buf), "%5.2f%%", percent); | 119 | scnprintf(buf, sizeof(buf), "%5.2f%%", percent); |
| 129 | gtk_tree_store_set(store, &iter, 0, buf, -1); | 120 | gtk_tree_store_set(store, &iter, 0, buf, -1); |
| 130 | 121 | ||
| 131 | callchain_list__sym_name(chain, buf, sizeof(buf)); | 122 | callchain_list__sym_name(chain, buf, sizeof(buf), false); |
| 132 | gtk_tree_store_set(store, &iter, col, buf, -1); | 123 | gtk_tree_store_set(store, &iter, col, buf, -1); |
| 133 | 124 | ||
| 134 | if (need_new_parent) { | 125 | if (need_new_parent) { |
