Lines Matching refs:report

3  * builtin-report.c
5 * Builtin report command: Analyze the perf.data input file,
70 struct report {
112 struct report *rep = cb;
114 if (!strcmp(var, "report.group")) {
118 if (!strcmp(var, "report.percent-limit")) {
125 if (!strcmp(var, "report.children")) {
129 if (!strcmp(var, "report.queue-size"))
132 if (!strcmp(var, "report.sort_order")) {
145 struct report *rep = arg;
188 struct report *rep = arg;
210 static void setup_forced_leader(struct report *report,
213 if (report->group_set)
220 struct report *rep = container_of(session->tool, struct report, tool);
246 struct report *rep = container_of(tool, struct report, tool);
320 struct report *rep = container_of(tool, struct report, tool);
338 static int report__setup_sample_type(struct report *rep)
445 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep,
511 struct report *rep)
529 struct report *rep,
578 static void report__warn_kptr_restrict(const struct report *rep)
607 static int report__gtk_browse_hists(struct report *rep, const char *help)
622 static int report__browse_hists(struct report *rep)
668 static int report__collapse_hists(struct report *rep)
703 struct report *rep = arg;
716 static void report__output_resort(struct report *rep)
730 static void stats_setup(struct report *rep)
736 static int stats_print(struct report *rep)
744 static void tasks_setup(struct report *rep)
823 static int tasks_print(struct report *rep, FILE *fp)
890 static int __cmd_report(struct report *rep)
1089 struct report *rep = opt->value;
1132 "perf report [<options>]",
1135 struct report report = {
1173 OPT_BOOLEAN(0, "stats", &report.stats_mode, "Display event stats"),
1174 OPT_BOOLEAN(0, "tasks", &report.tasks_mode, "Display recorded tasks"),
1175 OPT_BOOLEAN(0, "mmaps", &report.mmaps_mode, "Display recorded tasks memory maps"),
1187 OPT_BOOLEAN('T', "threads", &report.show_threads,
1189 OPT_STRING(0, "pretty", &report.pretty_printing_style, "key",
1191 OPT_BOOLEAN(0, "tui", &report.use_tui, "Use the TUI interface"),
1192 OPT_BOOLEAN(0, "gtk", &report.use_gtk, "Use the GTK2 interface"),
1193 OPT_BOOLEAN(0, "stdio", &report.use_stdio,
1195 OPT_BOOLEAN(0, "header", &report.header, "Show data header."),
1196 OPT_BOOLEAN(0, "header-only", &report.header_only,
1217 OPT_INTEGER(0, "max-stack", &report.max_stack,
1221 OPT_BOOLEAN('G', "inverted", &report.inverted_callchain,
1236 OPT_STRING(0, "symbol-filter", &report.symbol_filter_str, "filter",
1249 OPT_STRING('C', "cpu", &report.cpu_list, "cpu",
1251 OPT_BOOLEAN('I', "show-info", &report.show_full_info,
1253 OPT_BOOLEAN(0, "source", &report.annotation_opts.annotate_src,
1255 OPT_BOOLEAN(0, "asm-raw", &report.annotation_opts.show_asm_raw,
1257 OPT_STRING('M', "disassembler-style", &report.annotation_opts.disassembler_style, "disassembler style",
1259 OPT_STRING(0, "prefix", &report.annotation_opts.prefix, "prefix",
1261 OPT_STRING(0, "prefix-strip", &report.annotation_opts.prefix_strip, "N",
1265 OPT_BOOLEAN_SET(0, "group", &symbol_conf.event_group, &report.group_set,
1276 OPT_STRING(0, "objdump", &report.annotation_opts.objdump_path, "path",
1282 OPT_BOOLEAN(0, "mem-mode", &report.mem_mode, "mem access profile"),
1285 OPT_CALLBACK(0, "percent-limit", &report, "percent",
1296 OPT_BOOLEAN(0, "stitch-lbr", &report.stitch_lbr,
1298 OPT_INTEGER(0, "socket-filter", &report.socket_filter,
1307 OPT_STRING(0, "time", &report.time_str, "str",
1311 OPT_CALLBACK(0, "percent-type", &report.annotation_opts, "local-period",
1318 OPTS_EVSWITCH(&report.evswitch),
1319 OPT_BOOLEAN(0, "total-cycles", &report.total_cycles_mode,
1332 ret = perf_config(report__config, &report);
1345 report.symbol_filter_str = argv[0];
1348 if (annotate_check_args(&report.annotation_opts) < 0) {
1353 if (report.mmaps_mode)
1354 report.tasks_mode = true;
1357 report.tool.ordered_events = false;
1375 if (report.inverted_callchain)
1381 (int)itrace_synth_opts.callchain_sz > report.max_stack)
1382 report.max_stack = itrace_synth_opts.callchain_sz;
1395 session = perf_session__new(&data, false, &report.tool);
1401 ret = evswitch__init(&report.evswitch, session->evlist, stderr);
1408 if (report.queue_size) {
1410 report.queue_size);
1415 report.session = session;
1422 setup_forced_leader(&report, session->evlist);
1436 memset(&report.brtype_stat, 0, sizeof(struct branch_type_stat));
1457 if (report.mem_mode) {
1480 if (report.use_stdio)
1482 else if (report.use_tui)
1484 else if (report.use_gtk)
1488 if (report.header || report.header_only || report.show_threads)
1490 if (report.header || report.header_only)
1491 report.tool.show_feat_hdr = SHOW_FEAT_HEADER;
1492 if (report.show_full_info)
1493 report.tool.show_feat_hdr = SHOW_FEAT_HEADER_FULL_INFO;
1494 if (report.stats_mode || report.tasks_mode)
1496 if (report.stats_mode && report.tasks_mode) {
1501 if (report.total_cycles_mode) {
1503 report.total_cycles_mode = false;
1522 report.symbol_ipc = true;
1541 if ((report.header || report.header_only) && !quiet) {
1543 report.show_full_info);
1544 if (report.header_only) {
1549 !report.stats_mode && !report.tasks_mode) {
1559 if (ui__has_annotation() || report.symbol_ipc ||
1560 report.total_cycles_mode) {
1579 annotation_config__init(&report.annotation_opts);
1585 if (report.time_str) {
1586 ret = perf_time__parse_for_ranges(report.time_str, session,
1587 &report.ptime_range,
1588 &report.range_size,
1589 &report.range_num);
1594 report.ptime_range,
1595 report.range_num);
1609 ret = __cmd_report(&report);
1618 if (report.ptime_range) {
1620 zfree(&report.ptime_range);
1623 if (report.block_reports) {
1624 block_info__free_report(report.block_reports,
1625 report.nr_block_reports);
1626 report.block_reports = NULL;