Lines Matching refs:dfmt

401 	struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt);  in fmt_to_data_file()  local
402 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
423 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
425 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
865 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
871 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
876 dfmt->header_width, pfmt); in hpp__color_baseline()
895 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
897 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
912 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
923 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
934 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
943 dfmt->header_width, "N/A"); in __hpp__color_compare()
946 dfmt->header_width, pfmt); in __hpp__color_compare()
1045 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1048 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1049 int idx = dfmt->idx; in __hpp__entry_global()
1065 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1069 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1075 dfmt->header_width, buf); in hpp__entry_global()
1083 struct diff_hpp_fmt *dfmt = in hpp__header() local
1086 BUG_ON(!dfmt->header); in hpp__header()
1087 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1094 struct diff_hpp_fmt *dfmt = in hpp__width() local
1097 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1098 return dfmt->header_width; in hpp__width()
1101 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1109 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1110 header = columns[dfmt->idx].name; in init_header()
1111 width = columns[dfmt->idx].width; in init_header()
1120 dfmt->header_width = width; in init_header()
1122 if (dfmt->header_width < width) in init_header()
1123 dfmt->header_width = width; in init_header()
1126 dfmt->header_width, NAME); in init_header()
1128 dfmt->header = strdup(buf_indent); in init_header()
1135 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1136 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1138 dfmt->idx = idx; in data__hpp_register()
1173 init_header(d, dfmt); in data__hpp_register()