Lines Matching refs:hpp

413 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp,  in __hist_entry__snprintf()  argument
418 char *start = hpp->buf; in __hist_entry__snprintf()
434 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf()
435 advance_hpp(hpp, ret); in __hist_entry__snprintf()
440 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf()
442 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf()
444 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf()
445 advance_hpp(hpp, ret); in __hist_entry__snprintf()
448 return hpp->buf - start; in __hist_entry__snprintf()
451 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
453 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf()
457 struct perf_hpp *hpp, in hist_entry__hierarchy_fprintf() argument
464 char *buf = hpp->buf; in hist_entry__hierarchy_fprintf()
465 size_t size = hpp->size; in hist_entry__hierarchy_fprintf()
472 ret = scnprintf(hpp->buf, hpp->size, "%*s", he->depth * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf()
473 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
478 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hist_entry__hierarchy_fprintf()
484 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__hierarchy_fprintf()
485 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
490 ret = fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
492 ret = fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
494 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in hist_entry__hierarchy_fprintf()
495 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
499 ret = scnprintf(hpp->buf, hpp->size, "%*s", in hist_entry__hierarchy_fprintf()
501 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
506 hpp->buf = buf; in hist_entry__hierarchy_fprintf()
507 hpp->size = size; in hist_entry__hierarchy_fprintf()
514 fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
516 fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
545 struct perf_hpp hpp = { in hist_entry__block_fprintf() local
552 hist_entry__snprintf(he, &hpp); in hist_entry__block_fprintf()
554 if (!hpp.skip) in hist_entry__block_fprintf()
567 struct perf_hpp hpp = { in hist_entry__fprintf() local
575 size = hpp.size = bfsz; in hist_entry__fprintf()
578 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf()
583 hist_entry__snprintf(he, &hpp); in hist_entry__fprintf()
610 struct perf_hpp *hpp, FILE *fp) in hists__fprintf_hierarchy_headers() argument
630 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
631 fmt->header(fmt, hpp, hists, 0, NULL); in hists__fprintf_hierarchy_headers()
632 fprintf(fp, "%s%s", hpp->buf, sep ?: " "); in hists__fprintf_hierarchy_headers()
643 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
651 fmt->header(fmt, hpp, hists, 0, NULL); in hists__fprintf_hierarchy_headers()
653 header_width += fprintf(fp, "%s", strim(hpp->buf)); in hists__fprintf_hierarchy_headers()
667 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
672 width = fmt->width(fmt, hpp, hists); in hists__fprintf_hierarchy_headers()
681 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
689 width += fmt->width(fmt, hpp, hists); in hists__fprintf_hierarchy_headers()
705 static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, in fprintf_line() argument
722 fmt->header(fmt, hpp, hists, line, &span); in fprintf_line()
725 fprintf(fp, "%s", hpp->buf); in fprintf_line()
731 struct perf_hpp *hpp, in hists__fprintf_standard_headers() argument
745 fprintf_line(hists, hpp, line, fp); in hists__fprintf_standard_headers()
767 width = fmt->width(fmt, hpp, hists); in hists__fprintf_standard_headers()