Lines Matching refs:dfmt
482 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); in fmt_to_data_file() local
483 void *ptr = dfmt - dfmt->idx; in fmt_to_data_file()
504 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) in get_pair_fmt() argument
506 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt()
1303 struct diff_hpp_fmt *dfmt = in hpp__color_baseline() local
1309 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); in hpp__color_baseline()
1314 dfmt->header_width, pfmt); in hpp__color_baseline()
1376 struct diff_hpp_fmt *dfmt = in __hpp__color_compare() local
1378 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__color_compare()
1402 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); in __hpp__color_compare()
1413 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); in __hpp__color_compare()
1424 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); in __hpp__color_compare()
1429 return cycles_printf(he, pair, hpp, dfmt->header_width); in __hpp__color_compare()
1435 dfmt->header_width, "N/A"); in __hpp__color_compare()
1438 dfmt->header_width, pfmt); in __hpp__color_compare()
1543 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, in __hpp__entry_global() argument
1546 struct hist_entry *pair = get_pair_fmt(he, dfmt); in __hpp__entry_global()
1547 int idx = dfmt->idx; in __hpp__entry_global()
1563 struct diff_hpp_fmt *dfmt = in hpp__entry_global() local
1567 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); in hpp__entry_global()
1573 dfmt->header_width, buf); in hpp__entry_global()
1581 struct diff_hpp_fmt *dfmt = in hpp__header() local
1584 BUG_ON(!dfmt->header); in hpp__header()
1585 return scnprintf(hpp->buf, hpp->size, dfmt->header); in hpp__header()
1592 struct diff_hpp_fmt *dfmt = in hpp__width() local
1595 BUG_ON(dfmt->header_width <= 0); in hpp__width()
1596 return dfmt->header_width; in hpp__width()
1599 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) in init_header() argument
1607 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); in init_header()
1608 header = columns[dfmt->idx].name; in init_header()
1609 width = columns[dfmt->idx].width; in init_header()
1618 dfmt->header_width = width; in init_header()
1620 if (dfmt->header_width < width) in init_header()
1621 dfmt->header_width = width; in init_header()
1624 dfmt->header_width, NAME); in init_header()
1626 dfmt->header = strdup(buf_indent); in init_header()
1633 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; in data__hpp_register() local
1634 struct perf_hpp_fmt *fmt = &dfmt->fmt; in data__hpp_register()
1636 dfmt->idx = idx; in data__hpp_register()
1675 init_header(d, dfmt); in data__hpp_register()