Lines Matching refs:ann

178 				   struct perf_annotate *ann,  in process_branch_callback()  argument
201 ret = hist_entry_iter__add(&iter, &a, PERF_MAX_STACK_DEPTH, ann); in process_branch_callback()
205 static bool has_annotation(struct perf_annotate *ann) in has_annotation() argument
207 return ui__has_annotation() || ann->use_stdio2; in has_annotation()
213 struct perf_annotate *ann, in perf_evsel__add_sample() argument
220 if ((!ann->has_br_stack || !has_annotation(ann)) && in perf_evsel__add_sample()
221 ann->sym_hist_filter != NULL && in perf_evsel__add_sample()
223 strcmp(ann->sym_hist_filter, al->sym->name) != 0)) { in perf_evsel__add_sample()
244 if (ann->has_br_stack && has_annotation(ann)) in perf_evsel__add_sample()
245 return process_branch_callback(evsel, sample, al, ann, machine); in perf_evsel__add_sample()
262 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event() local
272 if (ann->cpu_list && !test_bit(sample->cpu, ann->cpu_bitmap)) in process_sample_event()
276 perf_evsel__add_sample(evsel, sample, &al, ann, machine)) { in process_sample_event()
297 struct perf_annotate *ann) in hist_entry__tty_annotate() argument
299 if (!ann->use_stdio2) in hist_entry__tty_annotate()
300 return symbol__tty_annotate(he->ms.sym, he->ms.map, evsel, &ann->opts); in hist_entry__tty_annotate()
302 return symbol__tty_annotate2(he->ms.sym, he->ms.map, evsel, &ann->opts); in hist_entry__tty_annotate()
307 struct perf_annotate *ann) in hists__find_annotations() argument
319 if (ann->sym_hist_filter && in hists__find_annotations()
320 (strcmp(he->ms.sym->name, ann->sym_hist_filter) != 0)) in hists__find_annotations()
347 if (!ret || !ann->skip_missing) in hists__find_annotations()
353 key = hist_entry__tui_annotate(he, evsel, NULL, &ann->opts); in hists__find_annotations()
357 if (!ann->skip_missing) in hists__find_annotations()
373 hist_entry__tty_annotate(he, evsel, ann); in hists__find_annotations()
386 static int __cmd_annotate(struct perf_annotate *ann) in __cmd_annotate() argument
389 struct perf_session *session = ann->session; in __cmd_annotate()
393 if (ann->cpu_list) { in __cmd_annotate()
394 ret = perf_session__cpu_bitmap(session, ann->cpu_list, in __cmd_annotate()
395 ann->cpu_bitmap); in __cmd_annotate()
400 if (!ann->opts.objdump_path) { in __cmd_annotate()
402 &ann->opts.objdump_path); in __cmd_annotate()
439 hists__find_annotations(hists, pos, ann); in __cmd_annotate()