aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 8879463807e..cd9dec46c19 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -58,12 +58,13 @@ static int hists__add_entry(struct hists *self, struct addr_location *al)
58 return hist_entry__inc_addr_samples(he, al->addr); 58 return hist_entry__inc_addr_samples(he, al->addr);
59} 59}
60 60
61static int process_sample_event(event_t *event, struct sample_data *sample, 61static int process_sample_event(union perf_event *event,
62 struct perf_sample *sample,
62 struct perf_session *session) 63 struct perf_session *session)
63{ 64{
64 struct addr_location al; 65 struct addr_location al;
65 66
66 if (event__preprocess_sample(event, session, &al, sample, NULL) < 0) { 67 if (perf_event__preprocess_sample(event, session, &al, sample, NULL) < 0) {
67 pr_warning("problem processing %d event, skipping it.\n", 68 pr_warning("problem processing %d event, skipping it.\n",
68 event->header.type); 69 event->header.type);
69 return -1; 70 return -1;
@@ -372,9 +373,9 @@ find_next:
372 373
373static struct perf_event_ops event_ops = { 374static struct perf_event_ops event_ops = {
374 .sample = process_sample_event, 375 .sample = process_sample_event,
375 .mmap = event__process_mmap, 376 .mmap = perf_event__process_mmap,
376 .comm = event__process_comm, 377 .comm = perf_event__process_comm,
377 .fork = event__process_task, 378 .fork = perf_event__process_task,
378 .ordered_samples = true, 379 .ordered_samples = true,
379 .ordering_requires_timestamps = true, 380 .ordering_requires_timestamps = true,
380}; 381};
@@ -451,7 +452,7 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __used)
451 else if (use_tui) 452 else if (use_tui)
452 use_browser = 1; 453 use_browser = 1;
453 454
454 setup_browser(); 455 setup_browser(true);
455 456
456 symbol_conf.priv_size = sizeof(struct sym_priv); 457 symbol_conf.priv_size = sizeof(struct sym_priv);
457 symbol_conf.try_vmlinux_path = true; 458 symbol_conf.try_vmlinux_path = true;