Lines Matching refs:hpp

412 	int   (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
414 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
439 struct perf_hpp *hpp __maybe_unused, in c2c_width()
455 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
462 int width = c2c_width(fmt, hpp, hists); in c2c_header()
486 return scnprintf(hpp->buf, hpp->size, "%*s", width, text); in c2c_header()
502 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
506 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
512 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in dcacheline_entry()
516 dcacheline_node_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_entry() argument
520 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_entry()
526 return scnprintf(hpp->buf, hpp->size, "%*s", width, c2c_he->nodestr); in dcacheline_node_entry()
530 dcacheline_node_count(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_node_count() argument
534 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_node_count()
537 return scnprintf(hpp->buf, hpp->size, "%*lu", width, c2c_he->paddr_cnt); in dcacheline_node_count()
540 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
544 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
550 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in offset_entry()
568 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
572 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
578 return scnprintf(hpp->buf, hpp->size, "%*s", width, HEX_STR(buf, addr)); in iaddr_entry()
589 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
593 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
599 return scnprintf(hpp->buf, hpp->size, "%*u", width, tot_hitm); in tot_hitm_entry()
622 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
626 int width = c2c_width(fmt, hpp, he->hists); \
629 return scnprintf(hpp->buf, hpp->size, "%*u", width, \
685 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
689 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
695 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_recs_entry()
736 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
740 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
746 return scnprintf(hpp->buf, hpp->size, "%*" PRIu64, width, tot_recs); in tot_loads_entry()
770 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
774 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
782 return __hpp__slsmg_color_printf(hpp, "%*.2f%%", width - 1, per); in percent_color()
784 return hpp_color_scnprintf(hpp, "%*.2f%%", width - 1, per); in percent_color()
827 percent_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_entry() argument
831 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
837 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_hitm_entry()
841 percent_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_color() argument
844 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
903 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
906 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
910 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in PERCENT_FN()
914 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
917 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
934 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
937 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
941 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_lcl_hitm_entry()
945 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
948 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
965 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
968 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
972 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1hit_entry()
976 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
979 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
996 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
999 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
1003 return scnprintf(hpp->buf, hpp->size, "%*s", width, PERC_STR(buf, per)); in percent_stores_l1miss_entry()
1007 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
1010 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
1030 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
1033 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1035 return scnprintf(hpp->buf, hpp->size, "%*d", width, he->thread->pid_); in STAT_FN()
1053 static int display_metrics(struct perf_hpp *hpp, u32 val, u32 sum) in display_metrics() argument
1058 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%% ", in display_metrics()
1061 ret = scnprintf(hpp->buf, hpp->size, "%6s ", "n/a"); in display_metrics()
1067 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry() argument
1085 ret = scnprintf(hpp->buf, hpp->size, "%21s", " "); in node_entry()
1086 advance_hpp(hpp, ret); in node_entry()
1092 ret = scnprintf(hpp->buf, hpp->size, " "); in node_entry()
1093 advance_hpp(hpp, ret); in node_entry()
1098 ret = scnprintf(hpp->buf, hpp->size, "%2d", node); in node_entry()
1099 advance_hpp(hpp, ret); in node_entry()
1106 ret = scnprintf(hpp->buf, hpp->size, "%2d{%2d ", node, num); in node_entry()
1107 advance_hpp(hpp, ret); in node_entry()
1111 ret = display_metrics(hpp, stats->rmt_hitm, in node_entry()
1115 ret = display_metrics(hpp, stats->lcl_hitm, in node_entry()
1119 ret = display_metrics(hpp, stats->tot_hitm, in node_entry()
1126 advance_hpp(hpp, ret); in node_entry()
1129 ret = scnprintf(hpp->buf, hpp->size, "%5.1f%%}", in node_entry()
1132 ret = scnprintf(hpp->buf, hpp->size, "%6s}", "n/a"); in node_entry()
1135 advance_hpp(hpp, ret); in node_entry()
1139 ret = scnprintf(hpp->buf, hpp->size, "%2d{", node); in node_entry()
1140 advance_hpp(hpp, ret); in node_entry()
1142 ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); in node_entry()
1143 advance_hpp(hpp, ret); in node_entry()
1145 ret = scnprintf(hpp->buf, hpp->size, "}"); in node_entry()
1146 advance_hpp(hpp, ret); in node_entry()
1159 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1162 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1166 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in mean_entry()
1171 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1175 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1183 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1187 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1193 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cpucnt_entry()
1197 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1201 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1207 return scnprintf(hpp->buf, hpp->size, "%*s", width, buf); in cl_idx_entry()
1211 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1214 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1216 return scnprintf(hpp->buf, hpp->size, "%*s", width, ""); in cl_idx_empty_entry()
1682 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1696 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
2181 struct perf_hpp hpp = { in print_cacheline() local
2195 __hist_entry__snprintf(he_cl, &hpp, hpp_list); in print_cacheline()