Lines Matching refs:annotate

503 			int (*annotate)(struct hist_entry *he,  in hists__find_annotations()  local
507 annotate = dlsym(perf_gtk_handle, in hists__find_annotations()
509 if (annotate == NULL) { in hists__find_annotations()
514 ret = annotate(he, evsel, NULL); in hists__find_annotations()
700 struct perf_annotate annotate = {}; in cmd_annotate() local
713 OPT_STRING('s', "symbol", &annotate.sym_hist_filter, "symbol", in cmd_annotate()
722 OPT_BOOLEAN(0, "gtk", &annotate.use_gtk, "Use the GTK interface"), in cmd_annotate()
725 OPT_BOOLEAN(0, "tui", &annotate.use_tui, "Use the TUI interface"), in cmd_annotate()
727 OPT_BOOLEAN(0, "stdio", &annotate.use_stdio, "Use the stdio interface"), in cmd_annotate()
728 OPT_BOOLEAN(0, "stdio2", &annotate.use_stdio2, "Use the stdio interface"), in cmd_annotate()
739 OPT_BOOLEAN(0, "skip-missing", &annotate.skip_missing, in cmd_annotate()
742 &annotate.group_set, in cmd_annotate()
744 OPT_STRING('C', "cpu", &annotate.cpu_list, "cpu", "list of cpus to profile"), in cmd_annotate()
776 OPT_CALLBACK(0, "percent-limit", &annotate, "percent", in cmd_annotate()
781 OPT_CALLBACK_OPTARG(0, "data-type", &annotate, NULL, "name", in cmd_annotate()
784 OPT_BOOLEAN(0, "type-stat", &annotate.type_stat, in cmd_annotate()
786 OPT_BOOLEAN(0, "insn-stat", &annotate.insn_stat, in cmd_annotate()
814 annotate.sym_hist_filter = argv[0]; in cmd_annotate()
837 if (symbol_conf.show_nr_samples && annotate.use_gtk) { in cmd_annotate()
844 if (annotate.data_type) { in cmd_annotate()
859 perf_tool__init(&annotate.tool, /*ordered_events=*/true); in cmd_annotate()
860 annotate.tool.sample = process_sample_event; in cmd_annotate()
861 annotate.tool.mmap = perf_event__process_mmap; in cmd_annotate()
862 annotate.tool.mmap2 = perf_event__process_mmap2; in cmd_annotate()
863 annotate.tool.comm = perf_event__process_comm; in cmd_annotate()
864 annotate.tool.exit = perf_event__process_exit; in cmd_annotate()
865 annotate.tool.fork = perf_event__process_fork; in cmd_annotate()
866 annotate.tool.namespaces = perf_event__process_namespaces; in cmd_annotate()
867 annotate.tool.attr = perf_event__process_attr; in cmd_annotate()
868 annotate.tool.build_id = perf_event__process_build_id; in cmd_annotate()
870 annotate.tool.tracing_data = perf_event__process_tracing_data; in cmd_annotate()
872 annotate.tool.id_index = perf_event__process_id_index; in cmd_annotate()
873 annotate.tool.auxtrace_info = perf_event__process_auxtrace_info; in cmd_annotate()
874 annotate.tool.auxtrace = perf_event__process_auxtrace; in cmd_annotate()
875 annotate.tool.feature = process_feature_event; in cmd_annotate()
876 annotate.tool.ordering_requires_timestamps = true; in cmd_annotate()
878 annotate.session = perf_session__new(&data, &annotate.tool); in cmd_annotate()
879 if (IS_ERR(annotate.session)) in cmd_annotate()
880 return PTR_ERR(annotate.session); in cmd_annotate()
882 annotate.session->itrace_synth_opts = &itrace_synth_opts; in cmd_annotate()
884 annotate.has_br_stack = perf_header__has_feat(&annotate.session->header, in cmd_annotate()
887 if (annotate.group_set) in cmd_annotate()
888 evlist__force_leader(annotate.session->evlist); in cmd_annotate()
896 ret = symbol__init(&annotate.session->header.env); in cmd_annotate()
900 if (annotate.use_stdio || annotate.use_stdio2) in cmd_annotate()
903 else if (annotate.use_tui) in cmd_annotate()
907 else if (annotate.use_gtk) in cmd_annotate()
911 if (annotate.data_type) { in cmd_annotate()
924 if (annotate.data_type) in cmd_annotate()
934 if ((use_browser == 1 || annotate.use_stdio2) && annotate.has_br_stack) { in cmd_annotate()
936 if (annotate.session->evlist->nr_br_cntr > 0) in cmd_annotate()
943 ret = __cmd_annotate(&annotate); in cmd_annotate()
951 perf_session__delete(annotate.session); in cmd_annotate()