Lines Matching refs:hpp
429 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
431 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
456 struct perf_hpp *hpp __maybe_unused, in c2c_width()
472 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
479 int width = c2c_width(fmt, hpp, hists); in c2c_header()
503 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
519 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
523 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
529 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
533 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
537 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
543 return scnprintf(hpp->buf, hpp->size, "%*s", width, c2c_he->nodestr); in dcacheline_node_entry()
547 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count() argument
551 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
554 return scnprintf(hpp->buf, hpp->size, "%*lu", width, c2c_he->paddr_cnt); in dcacheline_node_count()
557 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
561 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
567 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in offset_entry()
586 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
590 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
596 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
607 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
611 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
617 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
640 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
644 int width = c2c_width(fmt, hpp, he->hists); \
647 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
715 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
719 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
725 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_recs_entry()
753 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
757 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
763 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
787 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
791 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
799 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
801 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
849 percent_costly_snoop_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_entry() argument
853 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
859 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_costly_snoop_entry()
863 percent_costly_snoop_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_color() argument
866 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
928 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
931 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
935 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
939 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
942 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
959 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
962 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
966 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
970 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
973 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
990 percent_lcl_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_entry() argument
993 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
997 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_peer_entry()
1001 percent_lcl_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_color() argument
1004 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1021 percent_rmt_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_entry() argument
1024 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1028 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_rmt_peer_entry()
1032 percent_rmt_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_color() argument
1035 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1052 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
1055 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1059 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
1063 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
1066 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1083 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
1086 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1090 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1094 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1097 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1114 percent_stores_na_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_entry() argument
1117 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1121 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_na_entry()
1125 percent_stores_na_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_color() argument
1128 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1148 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1151 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1153 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1171 static int display_metrics(struct perf_hpp *hpp, u32 val, u32 sum) in display_metrics() argument
1176 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", in display_metrics()
1179 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); in display_metrics()
1185 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1203 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1204 advance_hpp(hpp, ret); in node_entry()
1210 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1211 advance_hpp(hpp, ret); in node_entry()
1216 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1217 advance_hpp(hpp, ret); in node_entry()
1224 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1225 advance_hpp(hpp, ret); in node_entry()
1229 ret = display_metrics(hpp, stats->rmt_hitm, in node_entry()
1233 ret = display_metrics(hpp, stats->lcl_hitm, in node_entry()
1237 ret = display_metrics(hpp, stats->tot_hitm, in node_entry()
1241 ret = display_metrics(hpp, stats->tot_peer, in node_entry()
1248 advance_hpp(hpp, ret); in node_entry()
1251 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1254 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1257 advance_hpp(hpp, ret); in node_entry()
1261 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1262 advance_hpp(hpp, ret); in node_entry()
1264 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1265 advance_hpp(hpp, ret); in node_entry()
1267 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1268 advance_hpp(hpp, ret); in node_entry()
1281 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1284 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1288 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1293 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1297 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1307 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1311 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1317 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1321 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1325 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1331 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1335 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1338 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1340 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1912 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1926 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2445 struct perf_hpp hpp = { in print_cacheline() local
2459 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()