Lines Matching +full:stdout +full:- +full:path
1 // SPDX-License-Identifier: GPL-2.0
3 * builtin-report.c
23 #include "util/mem-events.h"
38 #include <subcmd/parse-options.h>
39 #include <subcmd/exec-cmd.h>
40 #include "util/parse-events.h"
47 #include "util/time-utils.h"
53 #include "util/block-info.h"
118 if (!strcmp(var, "report.percent-limit")) { in report__config()
121 rep->min_percent = pcnt; in report__config()
129 if (!strcmp(var, "report.queue-size")) in report__config()
130 return perf_config_u64(&rep->queue_size, var, value); in report__config()
146 struct hist_entry *he = iter->he; in hist_iter__report_callback()
147 struct evsel *evsel = iter->evsel; in hist_iter__report_callback()
148 struct perf_sample *sample = iter->sample; in hist_iter__report_callback()
152 if (!ui__has_annotation() && !rep->symbol_ipc) in hist_iter__report_callback()
156 bi = he->branch_info; in hist_iter__report_callback()
157 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); in hist_iter__report_callback()
161 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel); in hist_iter__report_callback()
163 } else if (rep->mem_mode) { in hist_iter__report_callback()
164 mi = he->mem_info; in hist_iter__report_callback()
165 err = addr_map_symbol__inc_samples(&mi->daddr, sample, evsel); in hist_iter__report_callback()
169 err = hist_entry__inc_addr_samples(he, sample, evsel, al->addr); in hist_iter__report_callback()
173 err = hist_entry__inc_addr_samples(he, sample, evsel, al->addr); in hist_iter__report_callback()
175 err = hist_entry__inc_addr_samples(he, sample, evsel, al->addr); in hist_iter__report_callback()
187 struct hist_entry *he = iter->he; in hist_iter__branch_callback()
189 struct branch_info *bi = he->branch_info; in hist_iter__branch_callback()
190 struct perf_sample *sample = iter->sample; in hist_iter__branch_callback()
191 struct evsel *evsel = iter->evsel; in hist_iter__branch_callback()
194 branch_type_count(&rep->brtype_stat, &bi->flags, in hist_iter__branch_callback()
195 bi->from.addr, bi->to.addr); in hist_iter__branch_callback()
197 if (!ui__has_annotation() && !rep->symbol_ipc) in hist_iter__branch_callback()
200 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); in hist_iter__branch_callback()
204 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel); in hist_iter__branch_callback()
213 if (report->group_set) in setup_forced_leader()
220 struct report *rep = container_of(session->tool, struct report, tool); in process_feature_event()
222 if (event->feat.feat_id < HEADER_LAST_FEATURE) in process_feature_event()
225 if (event->feat.feat_id != HEADER_LAST_FEATURE) { in process_feature_event()
227 event->feat.feat_id); in process_feature_event()
228 return -1; in process_feature_event()
236 setup_forced_leader(rep, session->evlist); in process_feature_event()
256 if (perf_time__ranges_skip_sample(rep->ptime_range, rep->range_num, in process_sample_event()
257 sample->time)) { in process_sample_event()
261 if (evswitch__discard(&rep->evswitch, evsel)) in process_sample_event()
266 event->header.type); in process_sample_event()
267 return -1; in process_sample_event()
270 if (rep->stitch_lbr) in process_sample_event()
271 al.thread->lbr_stitch_enable = true; in process_sample_event()
276 if (rep->cpu_list && !test_bit(sample->cpu, rep->cpu_bitmap)) in process_sample_event()
281 * A non-synthesized event might not have a branch stack if in process_sample_event()
284 if (!sample->branch_stack) in process_sample_event()
289 } else if (rep->mem_mode) { in process_sample_event()
298 al.map->dso->hit = 1; in process_sample_event()
300 if (ui__has_annotation() || rep->symbol_ipc || rep->total_cycles_mode) { in process_sample_event()
301 hist__account_cycles(sample->branch_stack, &al, sample, in process_sample_event()
302 rep->nonany_branch_mode, in process_sample_event()
303 &rep->total_cycles); in process_sample_event()
306 ret = hist_entry_iter__add(&iter, &al, rep->max_stack, rep); in process_sample_event()
322 if (rep->show_threads) { in process_read_event()
324 int err = perf_read_values_add_value(&rep->show_threads_values, in process_read_event()
325 event->read.pid, event->read.tid, in process_read_event()
326 evsel->idx, in process_read_event()
328 event->read.value); in process_read_event()
340 struct perf_session *session = rep->session; in report__setup_sample_type()
341 u64 sample_type = evlist__combined_sample_type(session->evlist); in report__setup_sample_type()
342 bool is_pipe = perf_data__is_pipe(session->data); in report__setup_sample_type()
344 if (session->itrace_synth_opts->callchain || in report__setup_sample_type()
345 session->itrace_synth_opts->add_callchain || in report__setup_sample_type()
347 perf_header__has_feat(&session->header, HEADER_AUXTRACE) && in report__setup_sample_type()
348 !session->itrace_synth_opts->set)) in report__setup_sample_type()
351 if (session->itrace_synth_opts->last_branch || in report__setup_sample_type()
352 session->itrace_synth_opts->add_last_branch) in report__setup_sample_type()
357 ui__error("Selected --sort parent, but no " in report__setup_sample_type()
359 "'perf record' without -g?\n"); in report__setup_sample_type()
360 return -EINVAL; in report__setup_sample_type()
364 ui__error("Selected -g or --branch-history.\n" in report__setup_sample_type()
366 "Did you call 'perf record' without -g or -b?\n"); in report__setup_sample_type()
367 return -1; in report__setup_sample_type()
375 return -EINVAL; in report__setup_sample_type()
390 ui__error("Selected -b but no branch data. " in report__setup_sample_type()
391 "Did you call perf record without -b?\n"); in report__setup_sample_type()
392 return -1; in report__setup_sample_type()
398 ui__error("Selected --mem-mode but no mem data. " in report__setup_sample_type()
399 "Did you call perf record without -d?\n"); in report__setup_sample_type()
400 return -1; in report__setup_sample_type()
406 if (rep->stitch_lbr && (callchain_param.record_mode != CALLCHAIN_LBR)) { in report__setup_sample_type()
407 ui__warning("Can't find LBR callchain. Switch off --stitch-lbr.\n" in report__setup_sample_type()
408 "Please apply --call-graph lbr when recording.\n"); in report__setup_sample_type()
409 rep->stitch_lbr = false; in report__setup_sample_type()
413 if (!(evlist__combined_branch_type(session->evlist) & PERF_SAMPLE_BRANCH_ANY)) in report__setup_sample_type()
414 rep->nonany_branch_mode = true; in report__setup_sample_type()
436 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
437 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events()
441 int socked_id = hists->socket_filter; in hists__fprintf_nr_sample_events()
447 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
448 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
461 nr_samples += pos_hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
462 nr_events += pos_hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
464 nr_samples += pos_hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
465 nr_events += pos_hists->stats.total_period; in hists__fprintf_nr_sample_events()
474 evsel->core.nr_members > 1 ? "s" : "", evname); in hists__fprintf_nr_sample_events()
477 if (rep->time_str) in hists__fprintf_nr_sample_events()
478 ret += fprintf(fp, " (time slices: %s)", rep->time_str); in hists__fprintf_nr_sample_events()
480 if (symbol_conf.show_ref_callgraph && evname && strstr(evname, "call-graph=no")) { in hists__fprintf_nr_sample_events()
484 if (rep->mem_mode) { in hists__fprintf_nr_sample_events()
490 if (socked_id > -1) in hists__fprintf_nr_sample_events()
503 ret = report__browse_block_hists(&rep->block_reports[i++].hist, in perf_evlist__tui_block_hists_browse()
504 rep->min_percent, pos, in perf_evlist__tui_block_hists_browse()
505 &rep->session->header.env, in perf_evlist__tui_block_hists_browse()
506 &rep->annotation_opts); in perf_evlist__tui_block_hists_browse()
522 fprintf(stdout, "#\n# Total Lost Samples: %" PRIu64 "\n#\n", in perf_evlist__tty_browse_hists()
523 evlist->stats.total_lost_samples); in perf_evlist__tty_browse_hists()
533 hists__fprintf_nr_sample_events(hists, rep, evname, stdout); in perf_evlist__tty_browse_hists()
535 if (rep->total_cycles_mode) { in perf_evlist__tty_browse_hists()
536 report__browse_block_hists(&rep->block_reports[i++].hist, in perf_evlist__tty_browse_hists()
537 rep->min_percent, pos, in perf_evlist__tty_browse_hists()
542 hists__fprintf(hists, !quiet, 0, 0, rep->min_percent, stdout, in perf_evlist__tty_browse_hists()
545 fprintf(stdout, "\n\n"); in perf_evlist__tty_browse_hists()
549 fprintf(stdout, "#\n# (%s)\n#\n", help); in perf_evlist__tty_browse_hists()
551 if (rep->show_threads) { in perf_evlist__tty_browse_hists()
552 bool style = !strcmp(rep->pretty_printing_style, "raw"); in perf_evlist__tty_browse_hists()
553 perf_read_values_display(stdout, &rep->show_threads_values, in perf_evlist__tty_browse_hists()
555 perf_read_values_destroy(&rep->show_threads_values); in perf_evlist__tty_browse_hists()
559 branch_type_stat_display(stdout, &rep->brtype_stat); in perf_evlist__tty_browse_hists()
566 struct map *kernel_map = machine__kernel_map(&rep->session->machines.host); in report__warn_kptr_restrict()
569 if (perf_evlist__exclude_kernel(rep->session->evlist)) in report__warn_kptr_restrict()
573 (kernel_map->dso->hit && in report__warn_kptr_restrict()
574 (kernel_kmap->ref_reloc_sym == NULL || in report__warn_kptr_restrict()
575 kernel_kmap->ref_reloc_sym->addr == 0))) { in report__warn_kptr_restrict()
602 return -1; in report__gtk_browse_hists()
605 return hist_browser(rep->session->evlist, help, NULL, rep->min_percent); in report__gtk_browse_hists()
611 struct perf_session *session = rep->session; in report__browse_hists()
612 struct evlist *evlist = session->evlist; in report__browse_hists()
616 /* fallback for people who don't install perf ;-) */ in report__browse_hists()
624 if (rep->total_cycles_mode) { in report__browse_hists()
630 rep->min_percent, in report__browse_hists()
631 &session->header.env, in report__browse_hists()
632 true, &rep->annotation_opts); in report__browse_hists()
657 ui_progress__init(&prog, rep->nr_entries, "Merging related events..."); in report__collapse_hists()
659 evlist__for_each_entry(rep->session->evlist, pos) { in report__collapse_hists()
662 if (pos->idx == 0) in report__collapse_hists()
663 hists->symbol_filter_str = rep->symbol_filter_str; in report__collapse_hists()
665 hists->socket_filter = rep->socket_filter; in report__collapse_hists()
671 /* Non-group events are considered as leader */ in report__collapse_hists()
673 struct hists *leader_hists = evsel__hists(pos->leader); in report__collapse_hists()
687 struct symbol *sym = he->ms.sym; in hists__resort_cb()
689 if (rep->symbol_ipc && sym && !sym->annotate2) { in hists__resort_cb()
690 struct evsel *evsel = hists_to_evsel(he->hists); in hists__resort_cb()
692 symbol__annotate2(&he->ms, evsel, in hists__resort_cb()
704 ui_progress__init(&prog, rep->nr_entries, "Sorting events for output..."); in report__output_resort()
706 evlist__for_each_entry(rep->session->evlist, pos) { in report__output_resort()
715 memset(&rep->tool, 0, sizeof(rep->tool)); in stats_setup()
716 rep->tool.no_warn = true; in stats_setup()
721 struct perf_session *session = rep->session; in stats_print()
723 perf_session__fprintf_nr_events(session, stdout); in stats_print()
729 memset(&rep->tool, 0, sizeof(rep->tool)); in tasks_setup()
730 rep->tool.ordered_events = true; in tasks_setup()
731 if (rep->mmaps_mode) { in tasks_setup()
732 rep->tool.mmap = perf_event__process_mmap; in tasks_setup()
733 rep->tool.mmap2 = perf_event__process_mmap2; in tasks_setup()
735 rep->tool.comm = perf_event__process_comm; in tasks_setup()
736 rep->tool.exit = perf_event__process_exit; in tasks_setup()
737 rep->tool.fork = perf_event__process_fork; in tasks_setup()
738 rep->tool.no_warn = true; in tasks_setup()
749 struct thread *parent_thread, *thread = task->thread; in tasks_list()
753 if (!list_empty(&task->list)) in tasks_list()
757 if (thread->ppid == -1) in tasks_list()
760 parent_thread = machine__find_thread(machine, -1, thread->ppid); in tasks_list()
762 return ERR_PTR(-ENOENT); in tasks_list()
765 list_add_tail(&task->list, &parent_task->children); in tasks_list()
775 printed += fprintf(fp, "%*s %" PRIx64 "-%" PRIx64 " %c%c%c%c %08" PRIx64 " %" PRIu64 " %s\n", in maps__fprintf_task()
776 indent, "", map->start, map->end, in maps__fprintf_task()
777 map->prot & PROT_READ ? 'r' : '-', in maps__fprintf_task()
778 map->prot & PROT_WRITE ? 'w' : '-', in maps__fprintf_task()
779 map->prot & PROT_EXEC ? 'x' : '-', in maps__fprintf_task()
780 map->flags & MAP_SHARED ? 's' : 'p', in maps__fprintf_task()
781 map->pgoff, in maps__fprintf_task()
782 map->dso->id.ino, map->dso->name); in maps__fprintf_task()
790 struct thread *thread = task->thread; in task__print_level()
793 thread->pid_, thread->tid, thread->ppid, in task__print_level()
798 maps__fprintf_task(thread->maps, comm_indent, fp); in task__print_level()
800 if (!list_empty(&task->children)) { in task__print_level()
801 list_for_each_entry(child, &task->children, list) in task__print_level()
808 struct perf_session *session = rep->session; in tasks_print()
809 struct machine *machine = &session->machines.host; in tasks_print()
816 * No locking needed while accessing machine->threads, in tasks_print()
817 * because --tasks is single threaded command. in tasks_print()
822 nr += machine->threads[i].nr; in tasks_print()
826 return -ENOMEM; in tasks_print()
829 struct threads *threads = &machine->threads[i]; in tasks_print()
831 for (nd = rb_first_cached(&threads->entries); nd; in tasks_print()
835 task->thread = rb_entry(nd, struct thread, rb_node); in tasks_print()
836 INIT_LIST_HEAD(&task->children); in tasks_print()
837 INIT_LIST_HEAD(&task->list); in tasks_print()
838 thread__set_priv(task->thread, task); in tasks_print()
850 if (!list_empty(&task->list)) in tasks_print()
861 list_add_tail(&task->list, &list); in tasks_print()
876 struct perf_session *session = rep->session; in __cmd_report()
878 struct perf_data *data = session->data; in __cmd_report()
882 if (rep->cpu_list) { in __cmd_report()
883 ret = perf_session__cpu_bitmap(session, rep->cpu_list, in __cmd_report()
884 rep->cpu_bitmap); in __cmd_report()
889 session->itrace_synth_opts->cpu_bitmap = rep->cpu_bitmap; in __cmd_report()
892 if (rep->show_threads) { in __cmd_report()
893 ret = perf_read_values_init(&rep->show_threads_values); in __cmd_report()
904 if (rep->stats_mode) in __cmd_report()
907 if (rep->tasks_mode) in __cmd_report()
916 if (rep->stats_mode) in __cmd_report()
919 if (rep->tasks_mode) in __cmd_report()
920 return tasks_print(rep, stdout); in __cmd_report()
924 evlist__for_each_entry(session->evlist, pos) in __cmd_report()
925 rep->nr_entries += evsel__hists(pos)->nr_entries; in __cmd_report()
929 perf_session__fprintf(session, stdout); in __cmd_report()
932 perf_session__fprintf_dsos(session, stdout); in __cmd_report()
935 perf_session__fprintf_nr_events(session, stdout); in __cmd_report()
936 perf_evlist__fprintf_nr_events(session->evlist, stdout); in __cmd_report()
954 rep->nr_entries = 0; in __cmd_report()
955 evlist__for_each_entry(session->evlist, pos) in __cmd_report()
956 rep->nr_entries += evsel__hists(pos)->nr_entries; in __cmd_report()
958 if (rep->nr_entries == 0) { in __cmd_report()
959 ui__error("The %s data has no samples!\n", data->path); in __cmd_report()
965 if (rep->total_cycles_mode) { in __cmd_report()
975 rep->block_reports = block_info__create_report(session->evlist, in __cmd_report()
976 rep->total_cycles, in __cmd_report()
978 &rep->nr_block_reports); in __cmd_report()
979 if (!rep->block_reports) in __cmd_report()
980 return -1; in __cmd_report()
989 struct callchain_param *callchain = opt->value; in report_parse_callchain_opt()
991 callchain->enabled = !unset; in report_parse_callchain_opt()
993 * --no-call-graph in report_parse_callchain_opt()
997 callchain->mode = CHAIN_NONE; in report_parse_callchain_opt()
1008 unsigned long *time_q = opt->value; in parse_time_quantum()
1016 return -1; in parse_time_quantum()
1037 return -1; in parse_time_quantum()
1049 pr_err("Invalid --ignore-callees regex: %s\n%s", arg, buf); in report_parse_ignore_callees_opt()
1050 return -1; in report_parse_ignore_callees_opt()
1062 int *branch_mode = opt->value; in parse_branch_mode()
1072 struct report *rep = opt->value; in parse_percent_limit()
1075 rep->min_percent = pcnt; in parse_percent_limit()
1106 int branch_mode = -1; in cmd_report()
1143 .socket_filter = -1, in cmd_report()
1152 OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace, in cmd_report()
1159 OPT_BOOLEAN(0, "ignore-vmlinux", &symbol_conf.ignore_vmlinux, in cmd_report()
1165 "load module symbols - WARNING: use only with -k and LIVE kernel"), in cmd_report()
1166 OPT_BOOLEAN('n', "show-nr-samples", &symbol_conf.show_nr_samples, in cmd_report()
1169 "Show per-thread event counters"), in cmd_report()
1177 OPT_BOOLEAN(0, "header-only", &report.header_only, in cmd_report()
1183 OPT_BOOLEAN(0, "show-cpu-utilization", &symbol_conf.show_cpu_utilization, in cmd_report()
1188 "regex filter to identify parent, see: '--sort parent'"), in cmd_report()
1189 OPT_BOOLEAN('x', "exclude-other", &symbol_conf.exclude_other, in cmd_report()
1190 "Only display entries with parent-match"), in cmd_report()
1191 OPT_CALLBACK_DEFAULT('g', "call-graph", &callchain_param, in cmd_report()
1197 "Enabled by default, use --no-children to disable."), in cmd_report()
1198 OPT_INTEGER(0, "max-stack", &report.max_stack, in cmd_report()
1204 OPT_CALLBACK(0, "ignore-callees", NULL, "regex", in cmd_report()
1217 OPT_STRING(0, "symbol-filter", &report.symbol_filter_str, "filter", in cmd_report()
1219 OPT_STRING('w', "column-widths", &symbol_conf.col_width_list_str, in cmd_report()
1222 OPT_STRING_NOEMPTY('t', "field-separator", &symbol_conf.field_sep, "separator", in cmd_report()
1225 OPT_BOOLEAN('U', "hide-unresolved", &symbol_conf.hide_unresolved, in cmd_report()
1232 OPT_BOOLEAN('I', "show-info", &report.show_full_info, in cmd_report()
1236 OPT_BOOLEAN(0, "asm-raw", &report.annotation_opts.show_asm_raw, in cmd_report()
1238 …OPT_STRING('M', "disassembler-style", &report.annotation_opts.disassembler_style, "disassembler st… in cmd_report()
1239 "Specify disassembler style (e.g. -M intel for intel syntax)"), in cmd_report()
1241 "Add prefix to source file path names in programs (with --prefix-strip)"), in cmd_report()
1242 OPT_STRING(0, "prefix-strip", &report.annotation_opts.prefix_strip, "N", in cmd_report()
1243 "Strip first N entries of source file path name in programs (with --prefix)"), in cmd_report()
1244 OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period, in cmd_report()
1248 OPT_INTEGER(0, "group-sort-idx", &symbol_conf.group_sort_idx, in cmd_report()
1252 OPT_CALLBACK_NOOPT('b', "branch-stack", &branch_mode, "", in cmd_report()
1255 OPT_BOOLEAN(0, "branch-history", &branch_call_mode, in cmd_report()
1257 OPT_STRING(0, "objdump", &report.annotation_opts.objdump_path, "path", in cmd_report()
1261 OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel, in cmd_report()
1263 OPT_BOOLEAN(0, "mem-mode", &report.mem_mode, "mem access profile"), in cmd_report()
1266 OPT_CALLBACK(0, "percent-limit", &report, "percent", in cmd_report()
1273 OPT_BOOLEAN(0, "full-source-path", &srcline_full_filename, in cmd_report()
1274 "Show full source file name path for source lines"), in cmd_report()
1275 OPT_BOOLEAN(0, "show-ref-call-graph", &symbol_conf.show_ref_callgraph, in cmd_report()
1277 OPT_BOOLEAN(0, "stitch-lbr", &report.stitch_lbr, in cmd_report()
1279 OPT_INTEGER(0, "socket-filter", &report.socket_filter, in cmd_report()
1281 OPT_BOOLEAN(0, "raw-trace", &symbol_conf.raw_trace, in cmd_report()
1285 OPT_CALLBACK_DEFAULT(0, "stdio-color", NULL, "mode", in cmd_report()
1286 "'always' (default), 'never' or 'auto' only applicable to --stdio mode", in cmd_report()
1292 OPT_CALLBACK(0, "percent-type", &report.annotation_opts, "local-period", in cmd_report()
1293 "Set percent type local/global-period/hits", in cmd_report()
1296 OPT_CALLBACK(0, "time-quantum", &symbol_conf.time_quantum, "time (ms|us|ns|s)", in cmd_report()
1300 OPT_BOOLEAN(0, "total-cycles", &report.total_cycles_mode, in cmd_report()
1330 return -EINVAL; in cmd_report()
1344 return -EINVAL; in cmd_report()
1349 return -EINVAL; in cmd_report()
1363 input_name = "-"; in cmd_report()
1368 data.path = input_name; in cmd_report()
1376 ret = evswitch__init(&report.evswitch, session->evlist, stderr); in cmd_report()
1380 if (zstd_init(&(session->zstd_data), 0) < 0) in cmd_report()
1384 ordered_events__set_alloc_size(&session->ordered_events, in cmd_report()
1388 session->itrace_synth_opts = &itrace_synth_opts; in cmd_report()
1392 has_br_stack = perf_header__has_feat(&session->header, in cmd_report()
1394 if (evlist__combined_sample_type(session->evlist) & PERF_SAMPLE_STACK_USER) in cmd_report()
1397 setup_forced_leader(&report, session->evlist); in cmd_report()
1399 if (symbol_conf.group_sort_idx && !session->evlist->nr_groups) { in cmd_report()
1400 parse_options_usage(NULL, options, "group-sort-idx", 0); in cmd_report()
1401 ret = -EINVAL; in cmd_report()
1415 * -1 means default, so decide based on the file having branch data. in cmd_report()
1418 if (((branch_mode == -1 && has_br_stack) || branch_mode == 1) && in cmd_report()
1446 pr_err("Error: --hierarchy and --fields options cannot be used together\n"); in cmd_report()
1462 /* Force tty output for header output and per-thread stat. */ in cmd_report()
1472 pr_err("Error: --tasks and --mmaps can't be used together with --stats\n"); in cmd_report()
1483 if (strcmp(input_name, "-") != 0) in cmd_report()
1507 (setup_sorting(session->evlist) < 0)) { in cmd_report()
1517 perf_session__fprintf_info(session, stdout, in cmd_report()
1525 fputs("# To display the perf.data header info, please use --header/--header-only options.\n#\n", in cmd_report()
1526 stdout); in cmd_report()
1557 if (symbol__init(&session->header.env) < 0) in cmd_report()
1573 if (session->tevent.pevent && in cmd_report()
1574 tep_set_function_resolver(session->tevent.pevent, in cmd_report()
1576 &session->machines.host) < 0) { in cmd_report()
1579 return -1; in cmd_report()
1582 sort__setup_elide(stdout); in cmd_report()
1604 zstd_fini(&(session->zstd_data)); in cmd_report()