Lines Matching refs:hpp

419 	int   (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
421 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
446 struct perf_hpp *hpp __maybe_unused, in c2c_width()
462 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
469 int width = c2c_width(fmt, hpp, hists); in c2c_header()
493 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
509 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
513 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
519 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
523 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
527 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
533 return scnprintf(hpp->buf, hpp->size, "%*s", width, c2c_he->nodestr); in dcacheline_node_entry()
537 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count() argument
541 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
544 return scnprintf(hpp->buf, hpp->size, "%*lu", width, c2c_he->paddr_cnt); in dcacheline_node_count()
547 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
551 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
557 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in offset_entry()
576 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
580 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
586 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
597 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
601 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
607 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
630 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
634 int width = c2c_width(fmt, hpp, he->hists); \
637 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
705 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
709 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
715 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_recs_entry()
743 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
747 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
753 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
777 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
781 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
789 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
791 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
839 percent_costly_snoop_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_entry() argument
843 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
849 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_costly_snoop_entry()
853 percent_costly_snoop_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_color() argument
856 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
918 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
921 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
925 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
929 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
932 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
949 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
952 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
956 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
960 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
963 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
980 percent_lcl_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_entry() argument
983 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
987 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_peer_entry()
991 percent_lcl_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_color() argument
994 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1011 percent_rmt_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_entry() argument
1014 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1018 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_rmt_peer_entry()
1022 percent_rmt_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_color() argument
1025 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1042 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
1045 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1049 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
1053 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
1056 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1073 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
1076 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1080 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1084 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1087 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1104 percent_stores_na_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_entry() argument
1107 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1111 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_na_entry()
1115 percent_stores_na_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_color() argument
1118 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1138 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1141 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1143 return scnprintf(hpp->buf, hpp->size, "%*d", width, thread__pid(he->thread)); in STAT_FN()
1161 static int display_metrics(struct perf_hpp *hpp, u32 val, u32 sum) in display_metrics() argument
1166 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", in display_metrics()
1169 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); in display_metrics()
1175 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1193 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1194 advance_hpp(hpp, ret); in node_entry()
1200 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1201 advance_hpp(hpp, ret); in node_entry()
1206 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1207 advance_hpp(hpp, ret); in node_entry()
1214 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1215 advance_hpp(hpp, ret); in node_entry()
1219 ret = display_metrics(hpp, stats->rmt_hitm, in node_entry()
1223 ret = display_metrics(hpp, stats->lcl_hitm, in node_entry()
1227 ret = display_metrics(hpp, stats->tot_hitm, in node_entry()
1231 ret = display_metrics(hpp, stats->tot_peer, in node_entry()
1238 advance_hpp(hpp, ret); in node_entry()
1241 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1244 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1247 advance_hpp(hpp, ret); in node_entry()
1251 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1252 advance_hpp(hpp, ret); in node_entry()
1254 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1255 advance_hpp(hpp, ret); in node_entry()
1257 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1258 advance_hpp(hpp, ret); in node_entry()
1271 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1274 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1278 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1283 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1287 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1297 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1301 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1307 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1311 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1315 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1321 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1325 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1328 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1330 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1902 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1916 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2438 struct perf_hpp hpp = { in print_cacheline() local
2452 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()