Lines Matching full: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()
585 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
589 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
595 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
606 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
610 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
616 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
639 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
643 int width = c2c_width(fmt, hpp, he->hists); \
646 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
714 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
718 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
724 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_recs_entry()
752 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
756 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
762 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
786 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
790 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
798 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
800 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
848 percent_costly_snoop_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_entry() argument
852 int width = c2c_width(fmt, hpp, he->hists); in percent_costly_snoop_entry()
858 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_costly_snoop_entry()
862 percent_costly_snoop_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_costly_snoop_color() argument
865 return percent_color(fmt, hpp, he, percent_costly_snoop); in percent_costly_snoop_color()
927 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
930 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
934 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
938 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
941 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
958 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
961 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
965 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
969 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
972 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
989 percent_lcl_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_entry() argument
992 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_peer_entry()
996 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_peer_entry()
1000 percent_lcl_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_peer_color() argument
1003 return percent_color(fmt, hpp, he, percent_lcl_peer); in percent_lcl_peer_color()
1020 percent_rmt_peer_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_entry() argument
1023 int width = c2c_width(fmt, hpp, he->hists); in percent_rmt_peer_entry()
1027 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_rmt_peer_entry()
1031 percent_rmt_peer_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_peer_color() argument
1034 return percent_color(fmt, hpp, he, percent_rmt_peer); in percent_rmt_peer_color()
1051 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
1054 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
1058 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
1062 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
1065 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
1082 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
1085 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1089 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1093 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1096 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1113 percent_stores_na_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_entry() argument
1116 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_na_entry()
1120 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_na_entry()
1124 percent_stores_na_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_na_color() argument
1127 return percent_color(fmt, hpp, he, percent_st_na); in percent_stores_na_color()
1147 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1150 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1152 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1170 static int display_metrics(struct perf_hpp *hpp, u32 val, u32 sum) in display_metrics() argument
1175 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", in display_metrics()
1178 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); in display_metrics()
1184 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1202 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1203 advance_hpp(hpp, ret); in node_entry()
1209 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1210 advance_hpp(hpp, ret); in node_entry()
1215 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1216 advance_hpp(hpp, ret); in node_entry()
1223 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1224 advance_hpp(hpp, ret); in node_entry()
1228 ret = display_metrics(hpp, stats->rmt_hitm, in node_entry()
1232 ret = display_metrics(hpp, stats->lcl_hitm, in node_entry()
1236 ret = display_metrics(hpp, stats->tot_hitm, in node_entry()
1240 ret = display_metrics(hpp, stats->tot_peer, in node_entry()
1247 advance_hpp(hpp, ret); in node_entry()
1250 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1253 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1256 advance_hpp(hpp, ret); in node_entry()
1260 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1261 advance_hpp(hpp, ret); in node_entry()
1263 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1264 advance_hpp(hpp, ret); in node_entry()
1266 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1267 advance_hpp(hpp, ret); in node_entry()
1280 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1283 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1287 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1292 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1296 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1306 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1310 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1316 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1320 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1324 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1330 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1334 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1337 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1339 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1911 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1925 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2444 struct perf_hpp hpp = { in print_cacheline() local
2458 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()