Lines Matching full:report

3  * builtin-report.c
5 * Builtin report command: Analyze the perf.data input file,
70 struct report { struct
114 struct report *rep = cb; in report__config() argument
116 if (!strcmp(var, "report.group")) { in report__config()
120 if (!strcmp(var, "report.percent-limit")) { in report__config()
127 if (!strcmp(var, "report.children")) { in report__config()
131 if (!strcmp(var, "report.queue-size")) in report__config()
134 if (!strcmp(var, "report.sort_order")) { in report__config()
139 if (!strcmp(var, "report.skip-empty")) { in report__config()
152 struct report *rep = arg; in hist_iter__report_callback()
195 struct report *rep = arg; in hist_iter__branch_callback()
217 static void setup_forced_leader(struct report *report, in setup_forced_leader() argument
220 if (report->group_set) in setup_forced_leader()
227 struct report *rep = container_of(session->tool, struct report, tool); in process_feature_event()
255 struct report *rep = container_of(tool, struct report, tool); in process_sample_event()
329 struct report *rep = container_of(tool, struct report, tool); in process_read_event()
347 static int report__setup_sample_type(struct report *rep) in report__setup_sample_type()
440 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events()
505 static int evlist__tui_block_hists_browse(struct evlist *evlist, struct report *rep) in evlist__tui_block_hists_browse()
522 static int evlist__tty_browse_hists(struct evlist *evlist, struct report *rep, const char *help) in evlist__tty_browse_hists()
573 static void report__warn_kptr_restrict(const struct report *rep) in report__warn_kptr_restrict()
602 static int report__gtk_browse_hists(struct report *rep, const char *help) in report__gtk_browse_hists()
617 static int report__browse_hists(struct report *rep) in report__browse_hists()
658 static int report__collapse_hists(struct report *rep) in report__collapse_hists()
693 struct report *rep = arg; in hists__resort_cb()
706 static void report__output_resort(struct report *rep) in report__output_resort()
736 static void stats_setup(struct report *rep) in stats_setup()
744 static int stats_print(struct report *rep) in stats_print()
753 static void tasks_setup(struct report *rep) in tasks_setup()
833 static int tasks_print(struct report *rep, FILE *fp) in tasks_print()
900 static int __cmd_report(struct report *rep) in __cmd_report()
1103 struct report *rep = opt->value; in parse_percent_limit()
1146 "perf report [<options>]", in cmd_report()
1149 struct report report = { in cmd_report() local
1188 OPT_BOOLEAN(0, "stats", &report.stats_mode, "Display event stats"), in cmd_report()
1189 OPT_BOOLEAN(0, "tasks", &report.tasks_mode, "Display recorded tasks"), in cmd_report()
1190 OPT_BOOLEAN(0, "mmaps", &report.mmaps_mode, "Display recorded tasks memory maps"), in cmd_report()
1202 OPT_BOOLEAN('T', "threads", &report.show_threads, in cmd_report()
1204 OPT_STRING(0, "pretty", &report.pretty_printing_style, "key", in cmd_report()
1206 OPT_BOOLEAN(0, "tui", &report.use_tui, "Use the TUI interface"), in cmd_report()
1207 OPT_BOOLEAN(0, "gtk", &report.use_gtk, "Use the GTK2 interface"), in cmd_report()
1208 OPT_BOOLEAN(0, "stdio", &report.use_stdio, in cmd_report()
1210 OPT_BOOLEAN(0, "header", &report.header, "Show data header."), in cmd_report()
1211 OPT_BOOLEAN(0, "header-only", &report.header_only, in cmd_report()
1232 OPT_INTEGER(0, "max-stack", &report.max_stack, in cmd_report()
1236 OPT_BOOLEAN('G', "inverted", &report.inverted_callchain, in cmd_report()
1251 OPT_STRING(0, "symbol-filter", &report.symbol_filter_str, "filter", in cmd_report()
1264 OPT_STRING('C', "cpu", &report.cpu_list, "cpu", in cmd_report()
1266 OPT_BOOLEAN('I', "show-info", &report.show_full_info, in cmd_report()
1268 OPT_BOOLEAN(0, "source", &report.annotation_opts.annotate_src, in cmd_report()
1270 OPT_BOOLEAN(0, "asm-raw", &report.annotation_opts.show_asm_raw, in cmd_report()
1272 …OPT_STRING('M', "disassembler-style", &report.annotation_opts.disassembler_style, "disassembler st… in cmd_report()
1274 OPT_STRING(0, "prefix", &report.annotation_opts.prefix, "prefix", in cmd_report()
1276 OPT_STRING(0, "prefix-strip", &report.annotation_opts.prefix_strip, "N", in cmd_report()
1280 OPT_BOOLEAN_SET(0, "group", &symbol_conf.event_group, &report.group_set, in cmd_report()
1291 OPT_STRING(0, "objdump", &report.annotation_opts.objdump_path, "path", in cmd_report()
1297 OPT_BOOLEAN(0, "mem-mode", &report.mem_mode, "mem access profile"), in cmd_report()
1300 OPT_CALLBACK(0, "percent-limit", &report, "percent", in cmd_report()
1311 OPT_BOOLEAN(0, "stitch-lbr", &report.stitch_lbr, in cmd_report()
1313 OPT_INTEGER(0, "socket-filter", &report.socket_filter, in cmd_report()
1322 OPT_STRING(0, "time", &report.time_str, "str", in cmd_report()
1326 OPT_CALLBACK(0, "percent-type", &report.annotation_opts, "local-period", in cmd_report()
1333 OPTS_EVSWITCH(&report.evswitch), in cmd_report()
1334 OPT_BOOLEAN(0, "total-cycles", &report.total_cycles_mode, in cmd_report()
1336 OPT_BOOLEAN(0, "disable-order", &report.disable_order, in cmd_report()
1338 OPT_BOOLEAN(0, "skip-empty", &report.skip_empty, in cmd_report()
1351 ret = perf_config(report__config, &report); in cmd_report()
1364 report.symbol_filter_str = argv[0]; in cmd_report()
1367 if (annotate_check_args(&report.annotation_opts) < 0) { in cmd_report()
1372 if (report.mmaps_mode) in cmd_report()
1373 report.tasks_mode = true; in cmd_report()
1375 if (dump_trace && report.disable_order) in cmd_report()
1376 report.tool.ordered_events = false; in cmd_report()
1394 if (report.inverted_callchain) in cmd_report()
1400 (int)itrace_synth_opts.callchain_sz > report.max_stack) in cmd_report()
1401 report.max_stack = itrace_synth_opts.callchain_sz; in cmd_report()
1414 session = perf_session__new(&data, &report.tool); in cmd_report()
1420 ret = evswitch__init(&report.evswitch, session->evlist, stderr); in cmd_report()
1427 if (report.queue_size) { in cmd_report()
1429 report.queue_size); in cmd_report()
1434 report.session = session; in cmd_report()
1441 setup_forced_leader(&report, session->evlist); in cmd_report()
1455 memset(&report.brtype_stat, 0, sizeof(struct branch_type_stat)); in cmd_report()
1476 if (report.mem_mode) { in cmd_report()
1499 if (report.use_stdio) in cmd_report()
1501 else if (report.use_tui) in cmd_report()
1503 else if (report.use_gtk) in cmd_report()
1507 if (report.header || report.header_only || report.show_threads) in cmd_report()
1509 if (report.header || report.header_only) in cmd_report()
1510 report.tool.show_feat_hdr = SHOW_FEAT_HEADER; in cmd_report()
1511 if (report.show_full_info) in cmd_report()
1512 report.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO; in cmd_report()
1513 if (report.stats_mode || report.tasks_mode) in cmd_report()
1515 if (report.stats_mode && report.tasks_mode) { in cmd_report()
1520 if (report.total_cycles_mode) { in cmd_report()
1522 report.total_cycles_mode = false; in cmd_report()
1541 report.symbol_ipc = true; in cmd_report()
1560 if ((report.header || report.header_only) && !quiet) { in cmd_report()
1562 report.show_full_info); in cmd_report()
1563 if (report.header_only) { in cmd_report()
1575 !report.stats_mode && !report.tasks_mode) { in cmd_report()
1585 if (ui__has_annotation() || report.symbol_ipc || in cmd_report()
1586 report.total_cycles_mode) { in cmd_report()
1605 annotation_config__init(&report.annotation_opts); in cmd_report()
1611 if (report.time_str) { in cmd_report()
1612 ret = perf_time__parse_for_ranges(report.time_str, session, in cmd_report()
1613 &report.ptime_range, in cmd_report()
1614 &report.range_size, in cmd_report()
1615 &report.range_num); in cmd_report()
1620 report.ptime_range, in cmd_report()
1621 report.range_num); in cmd_report()
1635 ret = __cmd_report(&report); in cmd_report()
1644 if (report.ptime_range) { in cmd_report()
1646 zfree(&report.ptime_range); in cmd_report()
1649 if (report.block_reports) { in cmd_report()
1650 block_info__free_report(report.block_reports, in cmd_report()
1651 report.nr_block_reports); in cmd_report()
1652 report.block_reports = NULL; in cmd_report()