Lines Matching defs:ann
195 struct perf_annotate *ann,
224 ret = hist_entry_iter__add(&iter, &a, PERF_MAX_STACK_DEPTH, ann);
230 static bool has_annotation(struct perf_annotate *ann)
232 return ui__has_annotation() || ann->use_stdio2;
236 struct addr_location *al, struct perf_annotate *ann,
243 if ((!ann->has_br_stack || !has_annotation(ann)) &&
244 ann->sym_hist_filter != NULL &&
246 strcmp(ann->sym_hist_filter, al->sym->name) != 0)) {
268 if (ann->has_br_stack && has_annotation(ann))
269 return process_branch_callback(sample, al, ann, machine);
285 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool);
298 if (ann->cpu_list && (sample->cpu >= MAX_NR_CPUS ||
299 !test_bit(sample->cpu, ann->cpu_bitmap)))
303 add_sample(sample, &al, ann, machine)) {
315 struct perf_annotate *ann)
317 if (ann->use_stdio2)
399 struct perf_annotate *ann)
404 if (ann->type_stat)
406 if (ann->insn_stat)
416 if (ann->sym_hist_filter &&
417 (strcmp(he->ms.sym->name, ann->sym_hist_filter) != 0))
420 if (ann->min_percent) {
427 if (percent < ann->min_percent)
441 if (ann->data_type) {
446 if (ann->target_data_type) {
450 if (strncmp(ann->target_data_type, "struct ", 7) &&
455 if (strncmp(ann->target_data_type, "union ", 6) &&
459 if (strcmp(ann->target_data_type, type_name))
470 if (!ann->skip_missing)
505 if (!ret || !ann->skip_missing)
515 if (!ann->skip_missing)
533 hist_entry__stdio_annotate(he, evsel, ann);
539 static int __cmd_annotate(struct perf_annotate *ann)
542 struct perf_session *session = ann->session;
546 if (ann->cpu_list) {
547 ret = perf_session__cpu_bitmap(session, ann->cpu_list,
548 ann->cpu_bitmap);
564 if ((use_browser == 1 || ann->use_stdio2) && ann->has_br_stack)
617 hists__find_annotations(hists, pos, ann);
647 hists__find_annotations(hists, pos, ann);
669 struct perf_annotate *ann = opt->value;
672 ann->min_percent = pcnt;
678 struct perf_annotate *ann = opt->value;
680 ann->data_type = !unset;
682 ann->target_data_type = strdup(str);