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