Lines Matching refs:ann

188 				   struct perf_annotate *ann,  in process_branch_callback()  argument
217 ret = hist_entry_iter__add(&iter, &a, PERF_MAX_STACK_DEPTH, ann); in process_branch_callback()
223 static bool has_annotation(struct perf_annotate *ann) in has_annotation() argument
225 return ui__has_annotation() || ann->use_stdio2; in has_annotation()
229 struct addr_location *al, struct perf_annotate *ann, in evsel__add_sample() argument
236 if ((!ann->has_br_stack || !has_annotation(ann)) && in evsel__add_sample()
237 ann->sym_hist_filter != NULL && in evsel__add_sample()
239 strcmp(ann->sym_hist_filter, al->sym->name) != 0)) { in evsel__add_sample()
261 if (ann->has_br_stack && has_annotation(ann)) in evsel__add_sample()
262 return process_branch_callback(evsel, sample, al, ann, machine); in evsel__add_sample()
279 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event() local
291 if (ann->cpu_list && !test_bit(sample->cpu, ann->cpu_bitmap)) in process_sample_event()
295 evsel__add_sample(evsel, sample, &al, ann, machine)) { in process_sample_event()
315 struct perf_annotate *ann) in hist_entry__tty_annotate() argument
317 if (!ann->use_stdio2) in hist_entry__tty_annotate()
318 return symbol__tty_annotate(&he->ms, evsel, &ann->opts); in hist_entry__tty_annotate()
320 return symbol__tty_annotate2(&he->ms, evsel, &ann->opts); in hist_entry__tty_annotate()
325 struct perf_annotate *ann) in hists__find_annotations() argument
337 if (ann->sym_hist_filter && in hists__find_annotations()
338 (strcmp(he->ms.sym->name, ann->sym_hist_filter) != 0)) in hists__find_annotations()
341 if (ann->min_percent) { in hists__find_annotations()
348 if (percent < ann->min_percent) in hists__find_annotations()
376 ret = annotate(he, evsel, &ann->opts, NULL); in hists__find_annotations()
377 if (!ret || !ann->skip_missing) in hists__find_annotations()
383 key = hist_entry__tui_annotate(he, evsel, NULL, &ann->opts); in hists__find_annotations()
387 if (!ann->skip_missing) in hists__find_annotations()
405 hist_entry__tty_annotate(he, evsel, ann); in hists__find_annotations()
411 static int __cmd_annotate(struct perf_annotate *ann) in __cmd_annotate() argument
414 struct perf_session *session = ann->session; in __cmd_annotate()
418 if (ann->cpu_list) { in __cmd_annotate()
419 ret = perf_session__cpu_bitmap(session, ann->cpu_list, in __cmd_annotate()
420 ann->cpu_bitmap); in __cmd_annotate()
425 if (!ann->opts.objdump_path) { in __cmd_annotate()
427 &ann->opts.objdump_path); in __cmd_annotate()
463 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
491 struct perf_annotate *ann = opt->value; in parse_percent_limit() local
494 ann->min_percent = pcnt; in parse_percent_limit()