Lines Matching refs:fmt

38 	struct perf_hpp_fmt	 fmt;  member
49 struct diff_hpp_fmt fmt[PERF_HPP_DIFF__MAX_INDEX]; member
396 static struct data__file *fmt_to_data_file(struct perf_hpp_fmt *fmt) in fmt_to_data_file() argument
398 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); in fmt_to_data_file()
400 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file()
422 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
595 hist_entry__cmp_nop(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_nop()
603 hist_entry__cmp_baseline(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_baseline()
612 hist_entry__cmp_delta(struct perf_hpp_fmt *fmt, in hist_entry__cmp_delta() argument
615 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_delta()
621 hist_entry__cmp_ratio(struct perf_hpp_fmt *fmt, in hist_entry__cmp_ratio() argument
624 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_ratio()
630 hist_entry__cmp_wdiff(struct perf_hpp_fmt *fmt, in hist_entry__cmp_wdiff() argument
633 struct data__file *d = fmt_to_data_file(fmt); in hist_entry__cmp_wdiff()
639 hist_entry__cmp_delta_idx(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_delta_idx()
647 hist_entry__cmp_ratio_idx(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_ratio_idx()
655 hist_entry__cmp_wdiff_idx(struct perf_hpp_fmt *fmt __maybe_unused, in hist_entry__cmp_wdiff_idx()
737 struct diff_hpp_fmt *fmt = &d->fmt[col]; in data__free() local
739 zfree(&fmt->header); in data__free()
831 static int hpp__color_baseline(struct perf_hpp_fmt *fmt, in hpp__color_baseline() argument
835 container_of(fmt, struct diff_hpp_fmt, fmt); in hpp__color_baseline()
851 const char *fmt = symbol_conf.field_sep ? "%.2f" : "%6.2f%%"; in hpp__entry_baseline() local
855 ret = scnprintf(buf, size, fmt, percent); in hpp__entry_baseline()
860 static int __hpp__color_compare(struct perf_hpp_fmt *fmt, in __hpp__color_compare() argument
865 container_of(fmt, struct diff_hpp_fmt, fmt); in __hpp__color_compare()
918 static int hpp__color_delta(struct perf_hpp_fmt *fmt, in hpp__color_delta() argument
921 return __hpp__color_compare(fmt, hpp, he, COMPUTE_DELTA); in hpp__color_delta()
924 static int hpp__color_ratio(struct perf_hpp_fmt *fmt, in hpp__color_ratio() argument
927 return __hpp__color_compare(fmt, hpp, he, COMPUTE_RATIO); in hpp__color_ratio()
930 static int hpp__color_wdiff(struct perf_hpp_fmt *fmt, in hpp__color_wdiff() argument
933 return __hpp__color_compare(fmt, hpp, he, COMPUTE_WEIGHTED_DIFF); in hpp__color_wdiff()
1034 container_of(_fmt, struct diff_hpp_fmt, fmt); in hpp__entry_global()
1046 static int hpp__header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header() argument
1050 container_of(fmt, struct diff_hpp_fmt, fmt); in hpp__header()
1056 static int hpp__width(struct perf_hpp_fmt *fmt, in hpp__width() argument
1061 container_of(fmt, struct diff_hpp_fmt, fmt); in hpp__width()
1101 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register()
1102 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register() local
1106 fmt->header = hpp__header; in data__hpp_register()
1107 fmt->width = hpp__width; in data__hpp_register()
1108 fmt->entry = hpp__entry_global; in data__hpp_register()
1109 fmt->cmp = hist_entry__cmp_nop; in data__hpp_register()
1110 fmt->collapse = hist_entry__cmp_nop; in data__hpp_register()
1115 fmt->color = hpp__color_baseline; in data__hpp_register()
1116 fmt->sort = hist_entry__cmp_baseline; in data__hpp_register()
1119 fmt->color = hpp__color_delta; in data__hpp_register()
1120 fmt->sort = hist_entry__cmp_delta; in data__hpp_register()
1123 fmt->color = hpp__color_ratio; in data__hpp_register()
1124 fmt->sort = hist_entry__cmp_ratio; in data__hpp_register()
1127 fmt->color = hpp__color_wdiff; in data__hpp_register()
1128 fmt->sort = hist_entry__cmp_wdiff; in data__hpp_register()
1131 fmt->sort = hist_entry__cmp_nop; in data__hpp_register()
1136 perf_hpp__column_register(fmt); in data__hpp_register()
1137 perf_hpp__register_sort_field(fmt); in data__hpp_register()
1143 struct perf_hpp_fmt *fmt; in ui_init() local
1188 fmt = zalloc(sizeof(*fmt)); in ui_init()
1189 if (fmt == NULL) { in ui_init()
1194 fmt->cmp = hist_entry__cmp_nop; in ui_init()
1195 fmt->collapse = hist_entry__cmp_nop; in ui_init()
1199 fmt->sort = hist_entry__cmp_delta_idx; in ui_init()
1202 fmt->sort = hist_entry__cmp_ratio_idx; in ui_init()
1205 fmt->sort = hist_entry__cmp_wdiff_idx; in ui_init()
1211 list_add(&fmt->sort_list, &perf_hpp__sort_list); in ui_init()