diff options
Diffstat (limited to 'tools/perf/builtin-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index db491e9a812b..5ebd0c3b71b6 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
| @@ -90,8 +90,7 @@ static int process_sample_event(struct perf_tool *tool, | |||
| 90 | struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); | 90 | struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); |
| 91 | struct addr_location al; | 91 | struct addr_location al; |
| 92 | 92 | ||
| 93 | if (perf_event__preprocess_sample(event, machine, &al, sample, | 93 | if (perf_event__preprocess_sample(event, machine, &al, sample) < 0) { |
| 94 | symbol__annotate_init) < 0) { | ||
| 95 | pr_warning("problem processing %d event, skipping it.\n", | 94 | pr_warning("problem processing %d event, skipping it.\n", |
| 96 | event->header.type); | 95 | event->header.type); |
| 97 | return -1; | 96 | return -1; |
| @@ -195,6 +194,8 @@ static int __cmd_annotate(struct perf_annotate *ann) | |||
| 195 | if (session == NULL) | 194 | if (session == NULL) |
| 196 | return -ENOMEM; | 195 | return -ENOMEM; |
| 197 | 196 | ||
| 197 | machines__set_symbol_filter(&session->machines, symbol__annotate_init); | ||
| 198 | |||
| 198 | if (ann->cpu_list) { | 199 | if (ann->cpu_list) { |
| 199 | ret = perf_session__cpu_bitmap(session, ann->cpu_list, | 200 | ret = perf_session__cpu_bitmap(session, ann->cpu_list, |
| 200 | ann->cpu_bitmap); | 201 | ann->cpu_bitmap); |
| @@ -276,6 +277,7 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused) | |||
| 276 | .tool = { | 277 | .tool = { |
| 277 | .sample = process_sample_event, | 278 | .sample = process_sample_event, |
| 278 | .mmap = perf_event__process_mmap, | 279 | .mmap = perf_event__process_mmap, |
| 280 | .mmap2 = perf_event__process_mmap2, | ||
| 279 | .comm = perf_event__process_comm, | 281 | .comm = perf_event__process_comm, |
| 280 | .exit = perf_event__process_exit, | 282 | .exit = perf_event__process_exit, |
| 281 | .fork = perf_event__process_fork, | 283 | .fork = perf_event__process_fork, |
