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()
1323 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
1329 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1334 dfmt->header_width, pfmt); in hpp__color_baseline()
1397 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
1399 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
1423 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1434 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1445 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
1450 return cycles_printf(he, pair, hpp, dfmt->header_width); in __hpp__color_compare()
1456 dfmt->header_width, "N/A"); in __hpp__color_compare()
1459 dfmt->header_width, pfmt); in __hpp__color_compare()
1516 struct diff_hpp_fmt *dfmt = in hpp__color_cycles_hist() local
1518 struct hist_entry *pair = get_pair_fmt(he, dfmt); in hpp__color_cycles_hist()
1555 dfmt->header_width, buf); in hpp__color_cycles_hist()
1567 dfmt->header_width, " "); in hpp__color_cycles_hist()
1648 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1651 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1652 int idx = dfmt->idx; in __hpp__entry_global()
1668 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1672 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1678 dfmt->header_width, buf); in hpp__entry_global()
1686 struct diff_hpp_fmt *dfmt = in hpp__header() local
1689 BUG_ON(!dfmt->header); in hpp__header()
1690 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1697 struct diff_hpp_fmt *dfmt = in hpp__width() local
1700 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1701 return dfmt->header_width; in hpp__width()
1704 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1712 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1713 header = columns[dfmt->idx].name; in init_header()
1714 width = columns[dfmt->idx].width; in init_header()
1723 dfmt->header_width = width; in init_header()
1725 if (dfmt->header_width < width) in init_header()
1726 dfmt->header_width = width; in init_header()
1729 dfmt->header_width, NAME); in init_header()
1731 dfmt->header = strdup(buf_indent); in init_header()
1738 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1739 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1741 dfmt->idx = idx; in data__hpp_register()
1784 init_header(d, dfmt); in data__hpp_register()