Lines Matching defs:hists
427 if (perf_hpp__should_skip(fmt, he->hists))
454 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list);
459 struct hists *hists,
477 fmt_node = list_first_entry(&hists->hpp_formats,
501 (hists->nr_hpp_node - 2) * HIERARCHY_INDENT, "");
528 u64 total = hists__total_period(hists);
591 struct hists *hists = he->hists;
592 u64 total_period = hists->stats.total_period;
598 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp);
632 static int hists__fprintf_hierarchy_headers(struct hists *hists,
644 indent = hists->nr_hpp_node;
650 fmt_node = list_first_entry(&hists->hpp_formats,
654 fmt->header(fmt, hpp, hists, 0, NULL);
660 list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) {
667 if (perf_hpp__should_skip(fmt, hists))
674 fmt->header(fmt, hpp, hists, 0, NULL);
686 fmt_node = list_first_entry(&hists->hpp_formats,
695 width = fmt->width(fmt, hpp, hists);
700 list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) {
705 if (perf_hpp__should_skip(fmt, hists))
712 width += fmt->width(fmt, hpp, hists);
728 static void fprintf_line(struct hists *hists, struct perf_hpp *hpp,
736 hists__for_each_format(hists, fmt) {
737 if (perf_hpp__should_skip(fmt, hists))
745 fmt->header(fmt, hpp, hists, line, &span);
753 hists__fprintf_standard_headers(struct hists *hists,
757 struct perf_hpp_list *hpp_list = hists->hpp_list;
768 fprintf_line(hists, hpp, line, fp);
779 hists__for_each_format(hists, fmt) {
782 if (perf_hpp__should_skip(fmt, hists))
790 width = fmt->width(fmt, hpp, hists);
800 int hists__fprintf_headers(struct hists *hists, FILE *fp)
811 return hists__fprintf_hierarchy_headers(hists, &dummy_hpp, fp);
813 return hists__fprintf_standard_headers(hists, &dummy_hpp, fp);
817 size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows,
831 hists__reset_column_width(hists);
837 nr_rows += hists__fprintf_headers(hists, fp);
842 linesz = hists__sort_list_width(hists) + 3 + 1;
850 indent = hists__overhead_width(hists) + 4;
852 for (nd = rb_first_cached(&hists->entries); nd;
878 int depth = hists->nr_hpp_node + h->depth + 1;