Lines Matching refs:hpp

406 	int   (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
408 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
433 struct perf_hpp *hpp __maybe_unused, in c2c_width()
449 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
456 int width = c2c_width(fmt, hpp, hists); in c2c_header()
480 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
496 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
500 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
506 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
510 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
514 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
520 return scnprintf(hpp->buf, hpp->size, "%*s", width, c2c_he->nodestr); in dcacheline_node_entry()
524 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count() argument
528 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
531 return scnprintf(hpp->buf, hpp->size, "%*lu", width, c2c_he->paddr_cnt); in dcacheline_node_count()
534 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
538 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
544 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in offset_entry()
562 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
566 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
572 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
583 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
587 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
593 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
616 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
620 int width = c2c_width(fmt, hpp, he->hists); \
623 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
679 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
683 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
689 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_recs_entry()
730 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
734 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
740 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
764 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
768 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
776 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
778 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
821 percent_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_entry() argument
825 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
831 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_hitm_entry()
835 percent_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_color() argument
838 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
897 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
900 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
904 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
908 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
911 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
928 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
931 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
935 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
939 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
942 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
959 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
962 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
966 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
970 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
973 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
990 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
993 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
997 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1001 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1004 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1024 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1027 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1029 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1048 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1066 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1067 advance_hpp(hpp, ret); in node_entry()
1073 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1074 advance_hpp(hpp, ret); in node_entry()
1079 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1080 advance_hpp(hpp, ret); in node_entry()
1087 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1088 advance_hpp(hpp, ret); in node_entry()
1092 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", \ in node_entry()
1095 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); \ in node_entry()
1113 advance_hpp(hpp, ret); in node_entry()
1116 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1119 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1122 advance_hpp(hpp, ret); in node_entry()
1126 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1127 advance_hpp(hpp, ret); in node_entry()
1129 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1130 advance_hpp(hpp, ret); in node_entry()
1132 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1133 advance_hpp(hpp, ret); in node_entry()
1146 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1149 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1153 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1158 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1162 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1170 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1174 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1180 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1184 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1188 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1194 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1198 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1201 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1203 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1669 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1683 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2149 struct perf_hpp hpp = { in print_cacheline() local
2163 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()