Lines Matching full:hpp
434 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
436 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
461 struct perf_hpp *hpp __maybe_unused, in c2c_width()
477 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
484 int width = c2c_width(fmt, hpp, hists); in c2c_header()
508 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
524 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
528 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
534 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
538 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
542 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
548 return scnprintf(hpp->buf, hpp->size, "%*s", width, c2c_he->nodestr); in dcacheline_node_entry()
552 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count() argument
556 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
559 return scnprintf(hpp->buf, hpp->size, "%*lu", width, c2c_he->paddr_cnt); in dcacheline_node_count()
562 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
566 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
572 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in offset_entry()
591 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
595 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
601 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
612 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
616 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
622 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
645 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
649 int width = c2c_width(fmt, hpp, he->hists); \
652 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
720 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
724 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
730 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_recs_entry()
758 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
762 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
768 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
792 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
796 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
804 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
806 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
854 percent_costly_snoop_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_entry() argument
858 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
864 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_costly_snoop_entry()
868 percent_costly_snoop_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_color() argument
871 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
933 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
936 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
940 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
944 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
947 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
964 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
967 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
971 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
975 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
978 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
995 percent_lcl_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_entry() argument
998 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
1002 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_peer_entry()
1006 percent_lcl_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_color() argument
1009 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1026 percent_rmt_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_entry() argument
1029 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1033 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_rmt_peer_entry()
1037 percent_rmt_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_color() argument
1040 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1057 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
1060 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1064 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
1068 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
1071 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1088 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
1091 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1095 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1099 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1102 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1119 percent_stores_na_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_entry() argument
1122 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1126 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_na_entry()
1130 percent_stores_na_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_color() argument
1133 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1153 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1156 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1158 return scnprintf(hpp->buf, hpp->size, "%*d", width, thread__pid(he->thread)); in STAT_FN()
1176 static int display_metrics(struct perf_hpp *hpp, u32 val, u32 sum) in display_metrics() argument
1181 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", in display_metrics()
1184 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); in display_metrics()
1190 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1208 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1209 advance_hpp(hpp, ret); in node_entry()
1215 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1216 advance_hpp(hpp, ret); in node_entry()
1221 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1222 advance_hpp(hpp, ret); in node_entry()
1229 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1230 advance_hpp(hpp, ret); in node_entry()
1234 ret = display_metrics(hpp, stats->rmt_hitm, in node_entry()
1238 ret = display_metrics(hpp, stats->lcl_hitm, in node_entry()
1242 ret = display_metrics(hpp, stats->tot_hitm, in node_entry()
1246 ret = display_metrics(hpp, stats->tot_peer, in node_entry()
1253 advance_hpp(hpp, ret); in node_entry()
1256 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1259 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1262 advance_hpp(hpp, ret); in node_entry()
1266 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1267 advance_hpp(hpp, ret); in node_entry()
1269 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1270 advance_hpp(hpp, ret); in node_entry()
1272 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1273 advance_hpp(hpp, ret); in node_entry()
1286 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1289 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1293 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1298 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1302 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1312 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1316 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1322 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1326 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1330 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1336 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1340 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1343 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1345 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1917 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1931 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2450 struct perf_hpp hpp = { in print_cacheline() local
2464 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()