Lines Matching refs:dfmt

512 	struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt);  in fmt_to_data_file()  local
513 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
534 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
536 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
1326 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
1332 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1337 dfmt->header_width, pfmt); in hpp__color_baseline()
1400 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
1402 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
1426 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1437 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1448 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
1453 return cycles_printf(he, pair, hpp, dfmt->header_width); in __hpp__color_compare()
1459 dfmt->header_width, "N/A"); in __hpp__color_compare()
1462 dfmt->header_width, pfmt); in __hpp__color_compare()
1519 struct diff_hpp_fmt *dfmt = in hpp__color_cycles_hist() local
1521 struct hist_entry *pair = get_pair_fmt(he, dfmt); in hpp__color_cycles_hist()
1558 dfmt->header_width, buf); in hpp__color_cycles_hist()
1570 dfmt->header_width, " "); in hpp__color_cycles_hist()
1651 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1654 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1655 int idx = dfmt->idx; in __hpp__entry_global()
1671 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1675 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1681 dfmt->header_width, buf); in hpp__entry_global()
1689 struct diff_hpp_fmt *dfmt = in hpp__header() local
1692 BUG_ON(!dfmt->header); in hpp__header()
1693 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1700 struct diff_hpp_fmt *dfmt = in hpp__width() local
1703 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1704 return dfmt->header_width; in hpp__width()
1707 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1715 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1716 header = columns[dfmt->idx].name; in init_header()
1717 width = columns[dfmt->idx].width; in init_header()
1726 dfmt->header_width = width; in init_header()
1728 if (dfmt->header_width < width) in init_header()
1729 dfmt->header_width = width; in init_header()
1732 dfmt->header_width, NAME); in init_header()
1734 dfmt->header = strdup(buf_indent); in init_header()
1741 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1742 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1744 dfmt->idx = idx; in data__hpp_register()
1787 init_header(d, dfmt); in data__hpp_register()