Lines Matching refs:dfmt
510 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); in fmt_to_data_file() local
511 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
532 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
534 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
1324 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
1330 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1335 dfmt->header_width, pfmt); in hpp__color_baseline()
1398 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
1400 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
1424 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1435 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1446 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
1451 return cycles_printf(he, pair, hpp, dfmt->header_width); in __hpp__color_compare()
1457 dfmt->header_width, "N/A"); in __hpp__color_compare()
1460 dfmt->header_width, pfmt); in __hpp__color_compare()
1517 struct diff_hpp_fmt *dfmt = in hpp__color_cycles_hist() local
1519 struct hist_entry *pair = get_pair_fmt(he, dfmt); in hpp__color_cycles_hist()
1556 dfmt->header_width, buf); in hpp__color_cycles_hist()
1568 dfmt->header_width, " "); in hpp__color_cycles_hist()
1649 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1652 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1653 int idx = dfmt->idx; in __hpp__entry_global()
1669 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1673 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1679 dfmt->header_width, buf); in hpp__entry_global()
1687 struct diff_hpp_fmt *dfmt = in hpp__header() local
1690 BUG_ON(!dfmt->header); in hpp__header()
1691 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1698 struct diff_hpp_fmt *dfmt = in hpp__width() local
1701 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1702 return dfmt->header_width; in hpp__width()
1705 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1713 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1714 header = columns[dfmt->idx].name; in init_header()
1715 width = columns[dfmt->idx].width; in init_header()
1724 dfmt->header_width = width; in init_header()
1726 if (dfmt->header_width < width) in init_header()
1727 dfmt->header_width = width; in init_header()
1730 dfmt->header_width, NAME); in init_header()
1732 dfmt->header = strdup(buf_indent); in init_header()
1739 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1740 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1742 dfmt->idx = idx; in data__hpp_register()
1785 init_header(d, dfmt); in data__hpp_register()