Lines Matching refs:report
74 struct report { struct
123 struct report *rep = cb; in report__config() argument
166 struct report *rep = arg; in hist_iter__report_callback()
209 struct report *rep = arg; in hist_iter__branch_callback()
231 static void setup_forced_leader(struct report *report, in setup_forced_leader() argument
234 if (report->group_set) in setup_forced_leader()
241 struct report *rep = container_of(session->tool, struct report, tool); in process_feature_event()
269 struct report *rep = container_of(tool, struct report, tool); in process_sample_event()
345 struct report *rep = container_of(tool, struct report, tool); in process_read_event()
363 static int report__setup_sample_type(struct report *rep) in report__setup_sample_type()
470 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events()
535 static int evlist__tui_block_hists_browse(struct evlist *evlist, struct report *rep) in evlist__tui_block_hists_browse()
552 static int evlist__tty_browse_hists(struct evlist *evlist, struct report *rep, const char *help) in evlist__tty_browse_hists()
603 static void report__warn_kptr_restrict(const struct report *rep) in report__warn_kptr_restrict()
632 static int report__gtk_browse_hists(struct report *rep, const char *help) in report__gtk_browse_hists()
647 static int report__browse_hists(struct report *rep) in report__browse_hists()
691 static int report__collapse_hists(struct report *rep) in report__collapse_hists()
726 struct report *rep = arg; in hists__resort_cb()
738 static void report__output_resort(struct report *rep) in report__output_resort()
769 struct report *rep = container_of(tool, struct report, tool); in count_lost_samples_event()
784 static void stats_setup(struct report *rep) in stats_setup()
793 static int stats_print(struct report *rep) in stats_print()
802 static void tasks_setup(struct report *rep) in tasks_setup()
887 static int tasks_print(struct report *rep, FILE *fp) in tasks_print()
954 static int __cmd_report(struct report *rep) in __cmd_report()
1157 struct report *rep = opt->value; in parse_percent_limit()
1203 struct report report = { in cmd_report() local
1244 OPT_BOOLEAN(0, "stats", &report.stats_mode, "Display event stats"), in cmd_report()
1245 OPT_BOOLEAN(0, "tasks", &report.tasks_mode, "Display recorded tasks"), in cmd_report()
1246 OPT_BOOLEAN(0, "mmaps", &report.mmaps_mode, "Display recorded tasks memory maps"), in cmd_report()
1258 OPT_BOOLEAN('T', "threads", &report.show_threads, in cmd_report()
1260 OPT_STRING(0, "pretty", &report.pretty_printing_style, "key", in cmd_report()
1263 OPT_BOOLEAN(0, "tui", &report.use_tui, "Use the TUI interface"), in cmd_report()
1266 OPT_BOOLEAN(0, "gtk", &report.use_gtk, "Use the GTK2 interface"), in cmd_report()
1268 OPT_BOOLEAN(0, "stdio", &report.use_stdio, in cmd_report()
1270 OPT_BOOLEAN(0, "header", &report.header, "Show data header."), in cmd_report()
1271 OPT_BOOLEAN(0, "header-only", &report.header_only, in cmd_report()
1292 OPT_INTEGER(0, "max-stack", &report.max_stack, in cmd_report()
1296 OPT_BOOLEAN('G', "inverted", &report.inverted_callchain, in cmd_report()
1311 OPT_STRING(0, "symbol-filter", &report.symbol_filter_str, "filter", in cmd_report()
1324 OPT_STRING('C', "cpu", &report.cpu_list, "cpu", in cmd_report()
1326 OPT_BOOLEAN('I', "show-info", &report.show_full_info, in cmd_report()
1340 OPT_BOOLEAN_SET(0, "group", &symbol_conf.event_group, &report.group_set, in cmd_report()
1359 OPT_BOOLEAN(0, "mem-mode", &report.mem_mode, "mem access profile"), in cmd_report()
1362 OPT_CALLBACK(0, "percent-limit", &report, "percent", in cmd_report()
1373 OPT_BOOLEAN(0, "stitch-lbr", &report.stitch_lbr, in cmd_report()
1375 OPT_INTEGER(0, "socket-filter", &report.socket_filter, in cmd_report()
1384 OPT_STRING(0, "time", &report.time_str, "str", in cmd_report()
1395 OPTS_EVSWITCH(&report.evswitch), in cmd_report()
1396 OPT_BOOLEAN(0, "total-cycles", &report.total_cycles_mode, in cmd_report()
1398 OPT_BOOLEAN(0, "disable-order", &report.disable_order, in cmd_report()
1400 OPT_BOOLEAN(0, "skip-empty", &report.skip_empty, in cmd_report()
1422 ret = perf_config(report__config, &report); in cmd_report()
1435 report.symbol_filter_str = argv[0]; in cmd_report()
1459 if (report.mmaps_mode) in cmd_report()
1460 report.tasks_mode = true; in cmd_report()
1462 if (dump_trace && report.disable_order) in cmd_report()
1463 report.tool.ordered_events = false; in cmd_report()
1472 if (report.inverted_callchain) in cmd_report()
1478 (int)itrace_synth_opts.callchain_sz > report.max_stack) in cmd_report()
1479 report.max_stack = itrace_synth_opts.callchain_sz; in cmd_report()
1492 session = perf_session__new(&data, &report.tool); in cmd_report()
1498 ret = evswitch__init(&report.evswitch, session->evlist, stderr); in cmd_report()
1505 if (report.queue_size) { in cmd_report()
1507 report.queue_size); in cmd_report()
1512 report.session = session; in cmd_report()
1519 setup_forced_leader(&report, session->evlist); in cmd_report()
1533 memset(&report.brtype_stat, 0, sizeof(struct branch_type_stat)); in cmd_report()
1554 if (report.mem_mode) { in cmd_report()
1577 if (report.use_stdio) in cmd_report()
1580 else if (report.use_tui) in cmd_report()
1584 else if (report.use_gtk) in cmd_report()
1589 if (report.header || report.header_only || report.show_threads) in cmd_report()
1591 if (report.header || report.header_only) in cmd_report()
1592 report.tool.show_feat_hdr = SHOW_FEAT_HEADER; in cmd_report()
1593 if (report.show_full_info) in cmd_report()
1594 report.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO; in cmd_report()
1595 if (report.stats_mode || report.tasks_mode) in cmd_report()
1597 if (report.stats_mode && report.tasks_mode) { in cmd_report()
1602 if (report.total_cycles_mode) { in cmd_report()
1604 report.total_cycles_mode = false; in cmd_report()
1623 report.symbol_ipc = true; in cmd_report()
1642 if ((report.header || report.header_only) && !quiet) { in cmd_report()
1644 report.show_full_info); in cmd_report()
1645 if (report.header_only) { in cmd_report()
1657 !report.stats_mode && !report.tasks_mode) { in cmd_report()
1667 if (ui__has_annotation() || report.symbol_ipc || in cmd_report()
1668 report.total_cycles_mode) { in cmd_report()
1692 if (report.time_str) { in cmd_report()
1693 ret = perf_time__parse_for_ranges(report.time_str, session, in cmd_report()
1694 &report.ptime_range, in cmd_report()
1695 &report.range_size, in cmd_report()
1696 &report.range_num); in cmd_report()
1701 report.ptime_range, in cmd_report()
1702 report.range_num); in cmd_report()
1717 ret = __cmd_report(&report); in cmd_report()
1726 if (report.ptime_range) { in cmd_report()
1728 zfree(&report.ptime_range); in cmd_report()
1731 if (report.block_reports) { in cmd_report()
1732 block_info__free_report(report.block_reports, in cmd_report()
1733 report.nr_block_reports); in cmd_report()
1734 report.block_reports = NULL; in cmd_report()