Lines Matching defs:annotate

3  * builtin-annotate.c
5 * Builtin annotate command: Analyze the perf.data input file,
23 #include "util/annotate.h"
337 int (*annotate)(struct hist_entry *he,
341 annotate = dlsym(perf_gtk_handle,
343 if (annotate == NULL) {
348 ret = annotate(he, evsel, NULL);
466 "perf annotate [<options>]",
472 struct perf_annotate annotate = {
498 OPT_STRING('s', "symbol", &annotate.sym_hist_filter, "symbol",
499 "symbol to annotate"),
506 OPT_BOOLEAN(0, "gtk", &annotate.use_gtk, "Use the GTK interface"),
507 OPT_BOOLEAN(0, "tui", &annotate.use_tui, "Use the TUI interface"),
508 OPT_BOOLEAN(0, "stdio", &annotate.use_stdio, "Use the stdio interface"),
509 OPT_BOOLEAN(0, "stdio2", &annotate.use_stdio2, "Use the stdio interface"),
516 OPT_BOOLEAN('l', "print-line", &annotate.opts.print_lines,
518 OPT_BOOLEAN('P', "full-paths", &annotate.opts.full_path,
520 OPT_BOOLEAN(0, "skip-missing", &annotate.skip_missing,
523 &annotate.group_set,
525 OPT_STRING('C', "cpu", &annotate.cpu_list, "cpu", "list of cpus to profile"),
529 OPT_BOOLEAN(0, "source", &annotate.opts.annotate_src,
531 OPT_BOOLEAN(0, "asm-raw", &annotate.opts.show_asm_raw,
533 OPT_STRING('M', "disassembler-style", &annotate.opts.disassembler_style, "disassembler style",
535 OPT_STRING(0, "prefix", &annotate.opts.prefix, "prefix",
537 OPT_STRING(0, "prefix-strip", &annotate.opts.prefix_strip, "N",
539 OPT_STRING(0, "objdump", &annotate.opts.objdump_path, "path",
550 OPT_CALLBACK(0, "percent-type", &annotate.opts, "local-period",
566 annotation_config__init(&annotate.opts);
577 annotate.sym_hist_filter = argv[0];
580 if (annotate_check_args(&annotate.opts) < 0)
583 if (symbol_conf.show_nr_samples && annotate.use_gtk) {
593 annotate.session = perf_session__new(&data, false, &annotate.tool);
594 if (IS_ERR(annotate.session))
595 return PTR_ERR(annotate.session);
597 annotate.has_br_stack = perf_header__has_feat(&annotate.session->header,
600 if (annotate.group_set)
601 perf_evlist__force_leader(annotate.session->evlist);
609 ret = symbol__init(&annotate.session->header.env);
613 if (annotate.use_stdio || annotate.use_stdio2)
615 else if (annotate.use_tui)
617 else if (annotate.use_gtk)
622 if ((use_browser == 1 || annotate.use_stdio2) && annotate.has_br_stack) {
624 if (setup_sorting(annotate.session->evlist) < 0)
631 ret = __cmd_annotate(&annotate);