Lines Matching refs:hpp
393 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
395 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
420 struct perf_hpp *hpp __maybe_unused, in c2c_width()
436 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
443 int width = c2c_width(fmt, hpp, hists); in c2c_header()
467 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
483 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
487 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
493 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
497 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
501 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
507 return scnprintf(hpp->buf, hpp->size, "%*s", width, c2c_he->nodestr); in dcacheline_node_entry()
511 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count() argument
515 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
518 return scnprintf(hpp->buf, hpp->size, "%*lu", width, c2c_he->paddr_cnt); in dcacheline_node_count()
521 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
525 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
531 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in offset_entry()
549 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
553 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
559 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
570 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
574 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
580 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
603 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
607 int width = c2c_width(fmt, hpp, he->hists); \
610 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
654 ld_llcmiss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in ld_llcmiss_entry() argument
658 int width = c2c_width(fmt, hpp, he->hists); in ld_llcmiss_entry()
662 return scnprintf(hpp->buf, hpp->size, "%*lu", width, in ld_llcmiss_entry()
703 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
707 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
713 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_recs_entry()
754 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
758 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
764 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
788 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
792 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
800 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
802 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
845 percent_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_entry() argument
849 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
855 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_hitm_entry()
859 percent_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_color() argument
862 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
921 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
924 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
928 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
932 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
935 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
952 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
955 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
959 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
963 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
966 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
983 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
986 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
990 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
994 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
997 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1014 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
1017 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1021 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1025 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1028 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1048 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1051 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1053 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1072 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1090 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1091 advance_hpp(hpp, ret); in node_entry()
1097 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1098 advance_hpp(hpp, ret); in node_entry()
1103 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1104 advance_hpp(hpp, ret); in node_entry()
1111 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1112 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()
1137 advance_hpp(hpp, ret); in node_entry()
1140 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1143 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1146 advance_hpp(hpp, ret); in node_entry()
1150 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1151 advance_hpp(hpp, ret); in node_entry()
1153 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1154 advance_hpp(hpp, ret); in node_entry()
1156 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1157 advance_hpp(hpp, ret); in node_entry()
1170 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1173 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1177 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1182 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1186 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1194 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1198 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1204 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1208 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1212 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1218 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1222 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1225 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1227 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1702 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1716 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2178 struct perf_hpp hpp = { in print_cacheline() local
2192 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()