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