Lines Matching refs:fmt
38 struct perf_hpp_fmt fmt; member
49 struct diff_hpp_fmt fmt[PERF_HPP_DIFF__MAX_INDEX]; member
393 static struct data__file *fmt_to_data_file(struct perf_hpp_fmt *fmt) in fmt_to_data_file() argument
395 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); in fmt_to_data_file()
397 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file()
419 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
592 hist_entry__cmp_nop(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_nop()
600 hist_entry__cmp_baseline(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_baseline()
609 hist_entry__cmp_delta(struct perf_hpp_fmt *fmt, in hist_entry__cmp_delta() argument
612 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_delta()
618 hist_entry__cmp_ratio(struct perf_hpp_fmt *fmt, in hist_entry__cmp_ratio() argument
621 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_ratio()
627 hist_entry__cmp_wdiff(struct perf_hpp_fmt *fmt, in hist_entry__cmp_wdiff() argument
630 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_wdiff()
636 hist_entry__cmp_delta_idx(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_delta_idx()
644 hist_entry__cmp_ratio_idx(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_ratio_idx()
652 hist_entry__cmp_wdiff_idx(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_wdiff_idx()
731 struct diff_hpp_fmt *fmt = &d->fmt[col]; in data__free() local
733 zfree(&fmt->header); in data__free()
825 static int hpp__color_baseline(struct perf_hpp_fmt *fmt, in hpp__color_baseline() argument
829 container_of(fmt, struct diff_hpp_fmt, fmt); in hpp__color_baseline()
845 const char *fmt = symbol_conf.field_sep ? "%.2f" : "%6.2f%%"; in hpp__entry_baseline() local
849 ret = scnprintf(buf, size, fmt, percent); in hpp__entry_baseline()
854 static int __hpp__color_compare(struct perf_hpp_fmt *fmt, in __hpp__color_compare() argument
859 container_of(fmt, struct diff_hpp_fmt, fmt); in __hpp__color_compare()
912 static int hpp__color_delta(struct perf_hpp_fmt *fmt, in hpp__color_delta() argument
915 return __hpp__color_compare(fmt, hpp, he, COMPUTE_DELTA); in hpp__color_delta()
918 static int hpp__color_ratio(struct perf_hpp_fmt *fmt, in hpp__color_ratio() argument
921 return __hpp__color_compare(fmt, hpp, he, COMPUTE_RATIO); in hpp__color_ratio()
924 static int hpp__color_wdiff(struct perf_hpp_fmt *fmt, in hpp__color_wdiff() argument
927 return __hpp__color_compare(fmt, hpp, he, COMPUTE_WEIGHTED_DIFF); in hpp__color_wdiff()
1028 container_of(_fmt, struct diff_hpp_fmt, fmt); in hpp__entry_global()
1040 static int hpp__header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header() argument
1044 container_of(fmt, struct diff_hpp_fmt, fmt); in hpp__header()
1050 static int hpp__width(struct perf_hpp_fmt *fmt, in hpp__width() argument
1055 container_of(fmt, struct diff_hpp_fmt, fmt); in hpp__width()
1095 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register()
1096 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register() local
1100 fmt->header = hpp__header; in data__hpp_register()
1101 fmt->width = hpp__width; in data__hpp_register()
1102 fmt->entry = hpp__entry_global; in data__hpp_register()
1103 fmt->cmp = hist_entry__cmp_nop; in data__hpp_register()
1104 fmt->collapse = hist_entry__cmp_nop; in data__hpp_register()
1109 fmt->color = hpp__color_baseline; in data__hpp_register()
1110 fmt->sort = hist_entry__cmp_baseline; in data__hpp_register()
1113 fmt->color = hpp__color_delta; in data__hpp_register()
1114 fmt->sort = hist_entry__cmp_delta; in data__hpp_register()
1117 fmt->color = hpp__color_ratio; in data__hpp_register()
1118 fmt->sort = hist_entry__cmp_ratio; in data__hpp_register()
1121 fmt->color = hpp__color_wdiff; in data__hpp_register()
1122 fmt->sort = hist_entry__cmp_wdiff; in data__hpp_register()
1125 fmt->sort = hist_entry__cmp_nop; in data__hpp_register()
1130 perf_hpp__column_register(fmt); in data__hpp_register()
1131 perf_hpp__register_sort_field(fmt); in data__hpp_register()
1137 struct perf_hpp_fmt *fmt; in ui_init() local
1182 fmt = zalloc(sizeof(*fmt)); in ui_init()
1183 if (fmt == NULL) { in ui_init()
1188 fmt->cmp = hist_entry__cmp_nop; in ui_init()
1189 fmt->collapse = hist_entry__cmp_nop; in ui_init()
1193 fmt->sort = hist_entry__cmp_delta_idx; in ui_init()
1196 fmt->sort = hist_entry__cmp_ratio_idx; in ui_init()
1199 fmt->sort = hist_entry__cmp_wdiff_idx; in ui_init()
1205 list_add(&fmt->sort_list, &perf_hpp__sort_list); in ui_init()