diff options
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 9c1034d81b4f..f07b23011b22 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
@@ -204,8 +204,6 @@ static int __cmd_annotate(struct perf_annotate *ann) | |||
204 | struct perf_evsel *pos; | 204 | struct perf_evsel *pos; |
205 | u64 total_nr_samples; | 205 | u64 total_nr_samples; |
206 | 206 | ||
207 | machines__set_symbol_filter(&session->machines, symbol__annotate_init); | ||
208 | |||
209 | if (ann->cpu_list) { | 207 | if (ann->cpu_list) { |
210 | ret = perf_session__cpu_bitmap(session, ann->cpu_list, | 208 | ret = perf_session__cpu_bitmap(session, ann->cpu_list, |
211 | ann->cpu_bitmap); | 209 | ann->cpu_bitmap); |
@@ -367,7 +365,10 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused) | |||
367 | if (annotate.session == NULL) | 365 | if (annotate.session == NULL) |
368 | return -1; | 366 | return -1; |
369 | 367 | ||
370 | symbol_conf.priv_size = sizeof(struct annotation); | 368 | ret = symbol__annotation_init(); |
369 | if (ret < 0) | ||
370 | goto out_delete; | ||
371 | |||
371 | symbol_conf.try_vmlinux_path = true; | 372 | symbol_conf.try_vmlinux_path = true; |
372 | 373 | ||
373 | ret = symbol__init(&annotate.session->header.env); | 374 | ret = symbol__init(&annotate.session->header.env); |