Lines Matching refs:rep
67 struct report *rep = cb; in report__config() local
74 rep->min_percent = strtof(value, NULL); in report__config()
82 rep->queue_size = perf_config_u64(var, value); in report__config()
89 static void report__inc_stats(struct report *rep, struct hist_entry *he) in report__inc_stats() argument
97 rep->nr_entries++; in report__inc_stats()
105 struct report *rep = arg; in hist_iter__report_callback() local
111 report__inc_stats(rep, he); in hist_iter__report_callback()
124 } else if (rep->mem_mode) { in hist_iter__report_callback()
150 struct report *rep = container_of(tool, struct report, tool); in process_sample_event() local
153 .hide_unresolved = rep->hide_unresolved, in process_sample_event()
164 if (rep->hide_unresolved && al.sym == NULL) in process_sample_event()
167 if (rep->cpu_list && !test_bit(sample->cpu, rep->cpu_bitmap)) in process_sample_event()
172 else if (rep->mem_mode) in process_sample_event()
182 ret = hist_entry_iter__add(&iter, &al, evsel, sample, rep->max_stack, in process_sample_event()
183 rep); in process_sample_event()
196 struct report *rep = container_of(tool, struct report, tool); in process_read_event() local
198 if (rep->show_threads) { in process_read_event()
200 perf_read_values_add_value(&rep->show_threads_values, in process_read_event()
215 static int report__setup_sample_type(struct report *rep) in report__setup_sample_type() argument
217 struct perf_session *session = rep->session; in report__setup_sample_type()
233 } else if (!rep->dont_use_callchains && in report__setup_sample_type()
275 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events() argument
315 if (rep->mem_mode) { in hists__fprintf_nr_sample_events()
324 struct report *rep, in perf_evlist__tty_browse_hists() argument
337 hists__fprintf_nr_sample_events(hists, rep, evname, stdout); in perf_evlist__tty_browse_hists()
338 hists__fprintf(hists, true, 0, 0, rep->min_percent, stdout); in perf_evlist__tty_browse_hists()
346 if (rep->show_threads) { in perf_evlist__tty_browse_hists()
347 bool style = !strcmp(rep->pretty_printing_style, "raw"); in perf_evlist__tty_browse_hists()
348 perf_read_values_display(stdout, &rep->show_threads_values, in perf_evlist__tty_browse_hists()
350 perf_read_values_destroy(&rep->show_threads_values); in perf_evlist__tty_browse_hists()
357 static void report__warn_kptr_restrict(const struct report *rep) in report__warn_kptr_restrict() argument
359 struct map *kernel_map = rep->session->machines.host.vmlinux_maps[MAP__FUNCTION]; in report__warn_kptr_restrict()
386 static int report__gtk_browse_hists(struct report *rep, const char *help) in report__gtk_browse_hists() argument
398 return hist_browser(rep->session->evlist, help, NULL, rep->min_percent); in report__gtk_browse_hists()
401 static int report__browse_hists(struct report *rep) in report__browse_hists() argument
404 struct perf_session *session = rep->session; in report__browse_hists()
411 rep->min_percent, in report__browse_hists()
421 ret = report__gtk_browse_hists(rep, help); in report__browse_hists()
424 ret = perf_evlist__tty_browse_hists(evlist, rep, help); in report__browse_hists()
431 static void report__collapse_hists(struct report *rep) in report__collapse_hists() argument
436 ui_progress__init(&prog, rep->nr_entries, "Merging related events..."); in report__collapse_hists()
438 evlist__for_each(rep->session->evlist, pos) { in report__collapse_hists()
442 hists->symbol_filter_str = rep->symbol_filter_str; in report__collapse_hists()
459 static int __cmd_report(struct report *rep) in __cmd_report() argument
462 struct perf_session *session = rep->session; in __cmd_report()
468 if (rep->cpu_list) { in __cmd_report()
469 ret = perf_session__cpu_bitmap(session, rep->cpu_list, in __cmd_report()
470 rep->cpu_bitmap); in __cmd_report()
475 if (rep->show_threads) in __cmd_report()
476 perf_read_values_init(&rep->show_threads_values); in __cmd_report()
478 ret = report__setup_sample_type(rep); in __cmd_report()
482 ret = perf_session__process_events(session, &rep->tool); in __cmd_report()
486 report__warn_kptr_restrict(rep); in __cmd_report()
502 report__collapse_hists(rep); in __cmd_report()
507 if (rep->nr_entries == 0) { in __cmd_report()
515 return report__browse_hists(rep); in __cmd_report()
521 struct report *rep = (struct report *)opt->value; in report_parse_callchain_opt() local
527 rep->dont_use_callchains = true; in report_parse_callchain_opt()
566 struct report *rep = opt->value; in parse_percent_limit() local
568 rep->min_percent = strtof(str, NULL); in parse_percent_limit()