Lines Matching full:hpp
417 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
419 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
444 struct perf_hpp *hpp __maybe_unused, in c2c_width()
460 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
467 int width = c2c_width(fmt, hpp, hists); in c2c_header()
491 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
507 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
511 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
517 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
521 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
525 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
531 return scnprintf(hpp->buf, hpp->size, "%*s", width, c2c_he->nodestr); in dcacheline_node_entry()
535 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count() argument
539 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
542 return scnprintf(hpp->buf, hpp->size, "%*lu", width, c2c_he->paddr_cnt); in dcacheline_node_count()
545 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
549 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
555 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in offset_entry()
574 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
578 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
584 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
595 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
599 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
605 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
628 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
632 int width = c2c_width(fmt, hpp, he->hists); \
635 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
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()
741 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
745 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
751 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
775 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
779 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
787 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
789 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
837 percent_costly_snoop_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_entry() argument
841 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
847 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_costly_snoop_entry()
851 percent_costly_snoop_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_color() argument
854 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
916 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
919 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
923 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
927 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
930 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
947 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
950 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
954 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
958 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
961 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
978 percent_lcl_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_entry() argument
981 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
985 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_peer_entry()
989 percent_lcl_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_color() argument
992 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1009 percent_rmt_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_entry() argument
1012 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1016 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_rmt_peer_entry()
1020 percent_rmt_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_color() argument
1023 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1040 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
1043 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1047 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
1051 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
1054 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1071 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
1074 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1078 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1082 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1085 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1102 percent_stores_na_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_entry() argument
1105 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1109 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_na_entry()
1113 percent_stores_na_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_color() argument
1116 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1136 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1139 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1141 return scnprintf(hpp->buf, hpp->size, "%*d", width, thread__pid(he->thread)); in STAT_FN()
1159 static int display_metrics(struct perf_hpp *hpp, u32 val, u32 sum) in display_metrics() argument
1164 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", in display_metrics()
1167 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); in display_metrics()
1173 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1191 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1192 advance_hpp(hpp, ret); in node_entry()
1198 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1199 advance_hpp(hpp, ret); in node_entry()
1204 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1205 advance_hpp(hpp, ret); in node_entry()
1212 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1213 advance_hpp(hpp, ret); in node_entry()
1217 ret = display_metrics(hpp, stats->rmt_hitm, in node_entry()
1221 ret = display_metrics(hpp, stats->lcl_hitm, in node_entry()
1225 ret = display_metrics(hpp, stats->tot_hitm, in node_entry()
1229 ret = display_metrics(hpp, stats->tot_peer, in node_entry()
1236 advance_hpp(hpp, ret); in node_entry()
1239 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1242 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1245 advance_hpp(hpp, ret); in node_entry()
1249 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1250 advance_hpp(hpp, ret); in node_entry()
1252 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1253 advance_hpp(hpp, ret); in node_entry()
1255 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1256 advance_hpp(hpp, ret); in node_entry()
1269 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1272 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1276 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1281 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1285 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1295 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1299 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1305 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1309 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1313 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1319 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1323 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1326 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1328 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1900 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1914 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2429 struct perf_hpp hpp = { in print_cacheline() local
2443 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()