Lines Matching refs:fmt
358 int64_t (*cmp)(struct perf_hpp_fmt *fmt,
360 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
362 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
367 struct perf_hpp_fmt fmt; member
386 static int c2c_width(struct perf_hpp_fmt *fmt, in c2c_width() argument
393 c2c_fmt = container_of(fmt, struct c2c_fmt, fmt); in c2c_width()
403 static int c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_header() argument
410 int width = c2c_width(fmt, hpp, hists); in c2c_header()
412 c2c_fmt = container_of(fmt, struct c2c_fmt, fmt); in c2c_header()
444 dcacheline_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in dcacheline_cmp()
450 static int dcacheline_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in dcacheline_entry() argument
454 int width = c2c_width(fmt, hpp, he->hists); in dcacheline_entry()
463 static int offset_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in offset_entry() argument
467 int width = c2c_width(fmt, hpp, he->hists); in offset_entry()
477 offset_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in offset_cmp()
491 iaddr_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in iaddr_entry() argument
495 int width = c2c_width(fmt, hpp, he->hists); in iaddr_entry()
505 iaddr_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in iaddr_cmp()
512 tot_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_hitm_entry() argument
516 int width = c2c_width(fmt, hpp, he->hists); in tot_hitm_entry()
526 tot_hitm_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in tot_hitm_cmp()
545 __f ## _entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, \
549 int width = c2c_width(fmt, hpp, he->hists); \
558 __f ## _cmp(struct perf_hpp_fmt *fmt __maybe_unused, \
597 ld_llcmiss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in ld_llcmiss_entry() argument
601 int width = c2c_width(fmt, hpp, he->hists); in ld_llcmiss_entry()
610 ld_llcmiss_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in ld_llcmiss_cmp()
647 tot_recs_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_recs_entry() argument
651 int width = c2c_width(fmt, hpp, he->hists); in tot_recs_entry()
661 tot_recs_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in tot_recs_cmp()
698 tot_loads_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in tot_loads_entry() argument
702 int width = c2c_width(fmt, hpp, he->hists); in tot_loads_entry()
712 tot_loads_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in tot_loads_cmp()
732 percent_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_color() argument
736 int width = c2c_width(fmt, hpp, he->hists); in percent_color()
789 percent_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_entry() argument
793 int width = c2c_width(fmt, hpp, he->hists); in percent_hitm_entry()
803 percent_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_hitm_color() argument
806 return percent_color(fmt, hpp, he, percent_hitm); in percent_hitm_color()
810 percent_hitm_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in percent_hitm_cmp()
865 percent_rmt_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in PERCENT_FN()
868 int width = c2c_width(fmt, hpp, he->hists); in PERCENT_FN()
876 percent_rmt_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_rmt_hitm_color() argument
879 return percent_color(fmt, hpp, he, percent_rmt_hitm); in percent_rmt_hitm_color()
883 percent_rmt_hitm_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in percent_rmt_hitm_cmp()
896 percent_lcl_hitm_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_entry() argument
899 int width = c2c_width(fmt, hpp, he->hists); in percent_lcl_hitm_entry()
907 percent_lcl_hitm_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_lcl_hitm_color() argument
910 return percent_color(fmt, hpp, he, percent_lcl_hitm); in percent_lcl_hitm_color()
914 percent_lcl_hitm_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in percent_lcl_hitm_cmp()
927 percent_stores_l1hit_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_entry() argument
930 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1hit_entry()
938 percent_stores_l1hit_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1hit_color() argument
941 return percent_color(fmt, hpp, he, percent_st_l1hit); in percent_stores_l1hit_color()
945 percent_stores_l1hit_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in percent_stores_l1hit_cmp()
958 percent_stores_l1miss_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_entry() argument
961 int width = c2c_width(fmt, hpp, he->hists); in percent_stores_l1miss_entry()
969 percent_stores_l1miss_color(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in percent_stores_l1miss_color() argument
972 return percent_color(fmt, hpp, he, percent_st_l1miss); in percent_stores_l1miss_color()
976 percent_stores_l1miss_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in percent_stores_l1miss_cmp()
992 pid_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in STAT_FN()
995 int width = c2c_width(fmt, hpp, he->hists); in STAT_FN()
1001 pid_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in pid_cmp()
1008 empty_cmp(struct perf_hpp_fmt *fmt __maybe_unused, in empty_cmp()
1016 node_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp, in node_entry()
1114 mean_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in mean_entry() argument
1117 int width = c2c_width(fmt, hpp, he->hists); in mean_entry()
1126 __func(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hist_entry *he) \
1130 return mean_entry(fmt, hpp, he, avg_stats(&c2c_he->cstats.__val)); \
1138 cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cpucnt_entry() argument
1142 int width = c2c_width(fmt, hpp, he->hists); in cpucnt_entry()
1152 cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_entry() argument
1156 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_entry()
1166 cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in cl_idx_empty_entry() argument
1169 int width = c2c_width(fmt, hpp, he->hists); in cl_idx_empty_entry()
1589 static void fmt_free(struct perf_hpp_fmt *fmt) in fmt_free() argument
1593 c2c_fmt = container_of(fmt, struct c2c_fmt, fmt); in fmt_free()
1599 struct c2c_fmt *c2c_a = container_of(a, struct c2c_fmt, fmt); in fmt_equal()
1600 struct c2c_fmt *c2c_b = container_of(b, struct c2c_fmt, fmt); in fmt_equal()
1619 static int c2c_se_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in c2c_se_entry() argument
1622 struct c2c_fmt *c2c_fmt = container_of(fmt, struct c2c_fmt, fmt); in c2c_se_entry()
1624 size_t len = fmt->user_len; in c2c_se_entry()
1636 static int64_t c2c_se_cmp(struct perf_hpp_fmt *fmt, in c2c_se_cmp() argument
1639 struct c2c_fmt *c2c_fmt = container_of(fmt, struct c2c_fmt, fmt); in c2c_se_cmp()
1645 static int64_t c2c_se_collapse(struct perf_hpp_fmt *fmt, in c2c_se_collapse() argument
1648 struct c2c_fmt *c2c_fmt = container_of(fmt, struct c2c_fmt, fmt); in c2c_se_collapse()
1660 struct perf_hpp_fmt *fmt; in get_format() local
1671 fmt = &c2c_fmt->fmt; in get_format()
1672 INIT_LIST_HEAD(&fmt->list); in get_format()
1673 INIT_LIST_HEAD(&fmt->sort_list); in get_format()
1675 fmt->cmp = dim->se ? c2c_se_cmp : dim->cmp; in get_format()
1676 fmt->sort = dim->se ? c2c_se_cmp : dim->cmp; in get_format()
1677 fmt->color = dim->se ? NULL : dim->color; in get_format()
1678 fmt->entry = dim->se ? c2c_se_entry : dim->entry; in get_format()
1679 fmt->header = c2c_header; in get_format()
1680 fmt->width = c2c_width; in get_format()
1681 fmt->collapse = dim->se ? c2c_se_collapse : dim->cmp; in get_format()
1682 fmt->equal = fmt_equal; in get_format()
1683 fmt->free = fmt_free; in get_format()
1697 perf_hpp_list__column_register(hpp_list, &c2c_fmt->fmt); in c2c_hists__init_output()
1715 perf_hpp_list__register_sort_field(hpp_list, &c2c_fmt->fmt); in c2c_hists__init_sort()