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()
326 struct perf_annotate *ann) in hist_entry__stdio_annotate() argument
328 if (ann->use_stdio2) in hist_entry__stdio_annotate()
410 struct perf_annotate *ann) in hists__find_annotations() argument
415 if (ann->type_stat) in hists__find_annotations()
417 if (ann->insn_stat) in hists__find_annotations()
427 if (ann->sym_hist_filter && in hists__find_annotations()
428 (strcmp(he->ms.sym->name, ann->sym_hist_filter) != 0)) in hists__find_annotations()
431 if (ann->min_percent) { in hists__find_annotations()
438 if (percent < ann->min_percent) in hists__find_annotations()
452 if (ann->data_type) { in hists__find_annotations()
457 if (ann->target_data_type) { in hists__find_annotations()
461 if (strncmp(ann->target_data_type, "struct ", 7) && in hists__find_annotations()
466 if (strncmp(ann->target_data_type, "union ", 6) && in hists__find_annotations()
470 if (strcmp(ann->target_data_type, type_name)) in hists__find_annotations()
481 if (!ann->skip_missing) in hists__find_annotations()
516 if (!ret || !ann->skip_missing) in hists__find_annotations()
526 if (!ann->skip_missing) in hists__find_annotations()
544 hist_entry__stdio_annotate(he, evsel, ann); in hists__find_annotations()
550 static int __cmd_annotate(struct perf_annotate *ann) in __cmd_annotate() argument
553 struct perf_session *session = ann->session; in __cmd_annotate()
557 if (ann->cpu_list) { in __cmd_annotate()
558 ret = perf_session__cpu_bitmap(session, ann->cpu_list, in __cmd_annotate()
559 ann->cpu_bitmap); in __cmd_annotate()
624 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
654 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
676 struct perf_annotate *ann = opt->value; in parse_percent_limit() local
679 ann->min_percent = pcnt; in parse_percent_limit()
685 struct perf_annotate *ann = opt->value; in parse_data_type() local
687 ann->data_type = !unset; in parse_data_type()
689 ann->target_data_type = strdup(str); in parse_data_type()