Lines Matching refs:hpp
414 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument
419 char *start = hpp->buf; in __hist_entry__snprintf()
435 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf()
436 advance_hpp(hpp, ret); in __hist_entry__snprintf()
441 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf()
443 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf()
445 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf()
446 advance_hpp(hpp, ret); in __hist_entry__snprintf()
449 return hpp->buf - start; in __hist_entry__snprintf()
452 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
454 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf()
458 struct perf_hpp *hpp, in hist_entry__hierarchy_fprintf() argument
465 char *buf = hpp->buf; in hist_entry__hierarchy_fprintf()
466 size_t size = hpp->size; in hist_entry__hierarchy_fprintf()
473 ret = scnprintf(hpp->buf, hpp->size, "%*s", he->depth * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf()
474 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
479 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hist_entry__hierarchy_fprintf()
485 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__hierarchy_fprintf()
486 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
491 ret = fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
493 ret = fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
495 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in hist_entry__hierarchy_fprintf()
496 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
500 ret = scnprintf(hpp->buf, hpp->size, "%*s", in hist_entry__hierarchy_fprintf()
502 advance_hpp(hpp, ret); in hist_entry__hierarchy_fprintf()
507 hpp->buf = buf; in hist_entry__hierarchy_fprintf()
508 hpp->size = size; in hist_entry__hierarchy_fprintf()
515 fmt->color(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
517 fmt->entry(fmt, hpp, he); in hist_entry__hierarchy_fprintf()
546 struct perf_hpp hpp = { in hist_entry__block_fprintf() local
553 hist_entry__snprintf(he, &hpp); in hist_entry__block_fprintf()
555 if (!hpp.skip) in hist_entry__block_fprintf()
568 struct perf_hpp hpp = { in hist_entry__individual_block_fprintf() local
574 hist_entry__snprintf(he, &hpp); in hist_entry__individual_block_fprintf()
575 if (!hpp.skip) in hist_entry__individual_block_fprintf()
587 struct perf_hpp hpp = { in hist_entry__fprintf() local
595 size = hpp.size = bfsz; in hist_entry__fprintf()
598 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf()
606 hist_entry__snprintf(he, &hpp); in hist_entry__fprintf()
633 struct perf_hpp *hpp, FILE *fp) in hists__fprintf_hierarchy_headers() argument
653 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
654 fmt->header(fmt, hpp, hists, 0, NULL); in hists__fprintf_hierarchy_headers()
655 fprintf(fp, "%s%s", hpp->buf, sep ?: " "); in hists__fprintf_hierarchy_headers()
666 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
674 fmt->header(fmt, hpp, hists, 0, NULL); in hists__fprintf_hierarchy_headers()
676 header_width += fprintf(fp, "%s", strim(hpp->buf)); in hists__fprintf_hierarchy_headers()
690 perf_hpp_list__for_each_format(&fmt_node->hpp, fmt) { in hists__fprintf_hierarchy_headers()
695 width = fmt->width(fmt, hpp, hists); in hists__fprintf_hierarchy_headers()
704 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()
728 static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, in fprintf_line() argument
745 fmt->header(fmt, hpp, hists, line, &span); in fprintf_line()
748 fprintf(fp, "%s", hpp->buf); in fprintf_line()
754 struct perf_hpp *hpp, in hists__fprintf_standard_headers() argument
768 fprintf_line(hists, hpp, line, fp); in hists__fprintf_standard_headers()
790 width = fmt->width(fmt, hpp, hists); in hists__fprintf_standard_headers()