Lines Matching refs:dfmt

398 	struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt);  in fmt_to_data_file()  local
399 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
420 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
422 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
834 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
840 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
845 dfmt->header_width, pfmt); in hpp__color_baseline()
864 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
866 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
881 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
892 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
903 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
912 dfmt->header_width, "N/A"); in __hpp__color_compare()
915 dfmt->header_width, pfmt); in __hpp__color_compare()
1013 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1016 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1017 int idx = dfmt->idx; in __hpp__entry_global()
1033 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1037 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1043 dfmt->header_width, buf); in hpp__entry_global()
1049 struct diff_hpp_fmt *dfmt = in hpp__header() local
1052 BUG_ON(!dfmt->header); in hpp__header()
1053 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1060 struct diff_hpp_fmt *dfmt = in hpp__width() local
1063 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1064 return dfmt->header_width; in hpp__width()
1067 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1075 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1076 header = columns[dfmt->idx].name; in init_header()
1077 width = columns[dfmt->idx].width; in init_header()
1086 dfmt->header_width = width; in init_header()
1088 if (dfmt->header_width < width) in init_header()
1089 dfmt->header_width = width; in init_header()
1092 dfmt->header_width, NAME); in init_header()
1094 dfmt->header = strdup(buf_indent); in init_header()
1101 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1102 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1104 dfmt->idx = idx; in data__hpp_register()
1135 init_header(d, dfmt); in data__hpp_register()