Lines Matching refs:ann

198 				   struct perf_annotate *ann,  in process_branch_callback()  argument
228 ret = hist_entry_iter__add(&iter, &a, PERF_MAX_STACK_DEPTH, ann); in process_branch_callback()
234 static bool has_annotation(struct perf_annotate *ann) in has_annotation() argument
236 return ui__has_annotation() || ann->use_stdio2; in has_annotation()
240 struct addr_location *al, struct perf_annotate *ann, in evsel__add_sample() argument
247 if ((!ann->has_br_stack || !has_annotation(ann)) && in evsel__add_sample()
248 ann->sym_hist_filter != NULL && in evsel__add_sample()
250 strcmp(ann->sym_hist_filter, al->sym->name) != 0)) { in evsel__add_sample()
272 if (ann->has_br_stack && has_annotation(ann)) in evsel__add_sample()
273 return process_branch_callback(evsel, sample, al, ann, machine); in evsel__add_sample()
290 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event() local
302 if (ann->cpu_list && !test_bit(sample->cpu, ann->cpu_bitmap)) in process_sample_event()
306 evsel__add_sample(evsel, sample, &al, ann, machine)) { in process_sample_event()
327 struct perf_annotate *ann) in hist_entry__stdio_annotate() argument
329 if (ann->use_stdio2) in hist_entry__stdio_annotate()
411 struct perf_annotate *ann) in hists__find_annotations() argument
416 if (ann->type_stat) in hists__find_annotations()
418 if (ann->insn_stat) in hists__find_annotations()
428 if (ann->sym_hist_filter && in hists__find_annotations()
429 (strcmp(he->ms.sym->name, ann->sym_hist_filter) != 0)) in hists__find_annotations()
432 if (ann->min_percent) { in hists__find_annotations()
439 if (percent < ann->min_percent) in hists__find_annotations()
453 if (ann->data_type) { in hists__find_annotations()
458 if (ann->target_data_type) { in hists__find_annotations()
462 if (strncmp(ann->target_data_type, "struct ", 7) && in hists__find_annotations()
467 if (strncmp(ann->target_data_type, "union ", 6) && in hists__find_annotations()
471 if (strcmp(ann->target_data_type, type_name)) in hists__find_annotations()
482 if (!ann->skip_missing) in hists__find_annotations()
517 if (!ret || !ann->skip_missing) in hists__find_annotations()
527 if (!ann->skip_missing) in hists__find_annotations()
545 hist_entry__stdio_annotate(he, evsel, ann); in hists__find_annotations()
551 static int __cmd_annotate(struct perf_annotate *ann) in __cmd_annotate() argument
554 struct perf_session *session = ann->session; in __cmd_annotate()
558 if (ann->cpu_list) { in __cmd_annotate()
559 ret = perf_session__cpu_bitmap(session, ann->cpu_list, in __cmd_annotate()
560 ann->cpu_bitmap); in __cmd_annotate()
625 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
655 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
677 struct perf_annotate *ann = opt->value; in parse_percent_limit() local
680 ann->min_percent = pcnt; in parse_percent_limit()
686 struct perf_annotate *ann = opt->value; in parse_data_type() local
688 ann->data_type = !unset; in parse_data_type()
690 ann->target_data_type = strdup(str); in parse_data_type()