Lines Matching refs:hpp

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