Lines Matching refs:hpp

418 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp,  in __hist_entry__snprintf()  argument
423 char *start = hpp->buf; in __hist_entry__snprintf()
439 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf()
440 advance_hpp(hpp, ret); in __hist_entry__snprintf()
445 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf()
447 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf()
449 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf()
450 advance_hpp(hpp, ret); in __hist_entry__snprintf()
453 return hpp->buf - start; in __hist_entry__snprintf()
456 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
458 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf()
462 struct perf_hpp *hpp, in hist_entry__hierarchy_fprintf() argument
469 char *buf = hpp->buf; in hist_entry__hierarchy_fprintf()
470 size_t size = hpp->size; in hist_entry__hierarchy_fprintf()
477 ret = scnprintf(hpp->buf, hpp->size, "%*s", he->depth * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf()
478 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
483 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hist_entry__hierarchy_fprintf()
489 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__hierarchy_fprintf()
490 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
495 ret = fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
497 ret = fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
499 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in hist_entry__hierarchy_fprintf()
500 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
504 ret = scnprintf(hpp->buf, hpp->size, "%*s", in hist_entry__hierarchy_fprintf()
506 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
511 hpp->buf = buf; in hist_entry__hierarchy_fprintf()
512 hpp->size = size; in hist_entry__hierarchy_fprintf()
519 fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
521 fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
550 struct perf_hpp hpp = { in hist_entry__block_fprintf() local
557 hist_entry__snprintf(he, &hpp); in hist_entry__block_fprintf()
559 if (!hpp.skip) in hist_entry__block_fprintf()
572 struct perf_hpp hpp = { in hist_entry__individual_block_fprintf() local
578 hist_entry__snprintf(he, &hpp); in hist_entry__individual_block_fprintf()
579 if (!hpp.skip) in hist_entry__individual_block_fprintf()
591 struct perf_hpp hpp = { in hist_entry__fprintf() local
599 size = hpp.size = bfsz; in hist_entry__fprintf()
602 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf()
610 hist_entry__snprintf(he, &hpp); in hist_entry__fprintf()
637 struct perf_hpp *hpp, FILE *fp) in hists__fprintf_hierarchy_headers() argument
663 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
664 fmt->header(fmt, hpp, hists, line, NULL); in hists__fprintf_hierarchy_headers()
665 fprintf(fp, "%s%s", hpp->buf, sep ?: " "); in hists__fprintf_hierarchy_headers()
679 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
687 fmt->header(fmt, hpp, hists, line, NULL); in hists__fprintf_hierarchy_headers()
689 header_width += fprintf(fp, "%s", strim(hpp->buf)); in hists__fprintf_hierarchy_headers()
707 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
712 width = fmt->width(fmt, hpp, hists); in hists__fprintf_hierarchy_headers()
721 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
729 width += fmt->width(fmt, hpp, hists); in hists__fprintf_hierarchy_headers()
745 static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, in fprintf_line() argument
762 fmt->header(fmt, hpp, hists, line, &span); in fprintf_line()
765 fprintf(fp, "%s", hpp->buf); in fprintf_line()
771 struct perf_hpp *hpp, in hists__fprintf_standard_headers() argument
785 fprintf_line(hists, hpp, line, fp); in hists__fprintf_standard_headers()
807 width = fmt->width(fmt, hpp, hists); in hists__fprintf_standard_headers()