Lines Matching refs:dfmt
395 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); in fmt_to_data_file() local
396 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
417 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
419 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
828 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
834 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
839 dfmt->header_width, pfmt); in hpp__color_baseline()
858 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
860 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
875 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
886 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
897 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
906 dfmt->header_width, "N/A"); in __hpp__color_compare()
909 dfmt->header_width, pfmt); in __hpp__color_compare()
1007 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1010 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1011 int idx = dfmt->idx; in __hpp__entry_global()
1027 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1031 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1037 dfmt->header_width, buf); in hpp__entry_global()
1043 struct diff_hpp_fmt *dfmt = in hpp__header() local
1046 BUG_ON(!dfmt->header); in hpp__header()
1047 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1054 struct diff_hpp_fmt *dfmt = in hpp__width() local
1057 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1058 return dfmt->header_width; in hpp__width()
1061 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1069 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1070 header = columns[dfmt->idx].name; in init_header()
1071 width = columns[dfmt->idx].width; in init_header()
1080 dfmt->header_width = width; in init_header()
1082 if (dfmt->header_width < width) in init_header()
1083 dfmt->header_width = width; in init_header()
1086 dfmt->header_width, NAME); in init_header()
1088 dfmt->header = strdup(buf_indent); in init_header()
1095 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1096 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1098 dfmt->idx = idx; in data__hpp_register()
1129 init_header(d, dfmt); in data__hpp_register()