diff options
-rw-r--r-- | tools/perf/builtin-top.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 6d40a4ef58c5..b46b3c9f57a0 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -101,7 +101,7 @@ static void perf_top__resize(struct perf_top *top) | |||
101 | 101 | ||
102 | static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) | 102 | static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) |
103 | { | 103 | { |
104 | struct perf_evsel *evsel = hists_to_evsel(he->hists); | 104 | struct perf_evsel *evsel; |
105 | struct symbol *sym; | 105 | struct symbol *sym; |
106 | struct annotation *notes; | 106 | struct annotation *notes; |
107 | struct map *map; | 107 | struct map *map; |
@@ -110,6 +110,8 @@ static int perf_top__parse_source(struct perf_top *top, struct hist_entry *he) | |||
110 | if (!he || !he->ms.sym) | 110 | if (!he || !he->ms.sym) |
111 | return -1; | 111 | return -1; |
112 | 112 | ||
113 | evsel = hists_to_evsel(he->hists); | ||
114 | |||
113 | sym = he->ms.sym; | 115 | sym = he->ms.sym; |
114 | map = he->ms.map; | 116 | map = he->ms.map; |
115 | 117 | ||
@@ -226,7 +228,7 @@ static void perf_top__record_precise_ip(struct perf_top *top, | |||
226 | static void perf_top__show_details(struct perf_top *top) | 228 | static void perf_top__show_details(struct perf_top *top) |
227 | { | 229 | { |
228 | struct hist_entry *he = top->sym_filter_entry; | 230 | struct hist_entry *he = top->sym_filter_entry; |
229 | struct perf_evsel *evsel = hists_to_evsel(he->hists); | 231 | struct perf_evsel *evsel; |
230 | struct annotation *notes; | 232 | struct annotation *notes; |
231 | struct symbol *symbol; | 233 | struct symbol *symbol; |
232 | int more; | 234 | int more; |
@@ -234,6 +236,8 @@ static void perf_top__show_details(struct perf_top *top) | |||
234 | if (!he) | 236 | if (!he) |
235 | return; | 237 | return; |
236 | 238 | ||
239 | evsel = hists_to_evsel(he->hists); | ||
240 | |||
237 | symbol = he->ms.sym; | 241 | symbol = he->ms.sym; |
238 | notes = symbol__annotation(symbol); | 242 | notes = symbol__annotation(symbol); |
239 | 243 | ||