Lines Matching refs:dfmt
498 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); in fmt_to_data_file() local
499 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
520 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
522 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
1312 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
1318 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1323 dfmt->header_width, pfmt); in hpp__color_baseline()
1386 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
1388 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
1412 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1423 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1434 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
1439 return cycles_printf(he, pair, hpp, dfmt->header_width); in __hpp__color_compare()
1445 dfmt->header_width, "N/A"); in __hpp__color_compare()
1448 dfmt->header_width, pfmt); in __hpp__color_compare()
1505 struct diff_hpp_fmt *dfmt = in hpp__color_cycles_hist() local
1507 struct hist_entry *pair = get_pair_fmt(he, dfmt); in hpp__color_cycles_hist()
1544 dfmt->header_width, buf); in hpp__color_cycles_hist()
1556 dfmt->header_width, " "); in hpp__color_cycles_hist()
1637 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1640 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1641 int idx = dfmt->idx; in __hpp__entry_global()
1657 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1661 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1667 dfmt->header_width, buf); in hpp__entry_global()
1675 struct diff_hpp_fmt *dfmt = in hpp__header() local
1678 BUG_ON(!dfmt->header); in hpp__header()
1679 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1686 struct diff_hpp_fmt *dfmt = in hpp__width() local
1689 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1690 return dfmt->header_width; in hpp__width()
1693 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1701 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1702 header = columns[dfmt->idx].name; in init_header()
1703 width = columns[dfmt->idx].width; in init_header()
1712 dfmt->header_width = width; in init_header()
1714 if (dfmt->header_width < width) in init_header()
1715 dfmt->header_width = width; in init_header()
1718 dfmt->header_width, NAME); in init_header()
1720 dfmt->header = strdup(buf_indent); in init_header()
1727 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1728 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1730 dfmt->idx = idx; in data__hpp_register()
1773 init_header(d, dfmt); in data__hpp_register()