Home | History | Annotate | Download | only in perf

Lines Matching refs:dfmt

389 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt)
391 void *ptr = dfmt - dfmt->idx;
744 struct diff_hpp_fmt *dfmt =
750 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1);
755 dfmt->header_width, pfmt);
844 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt,
847 struct hist_entry *pair = get_pair_fmt(he, dfmt);
848 int idx = dfmt->idx;
864 struct diff_hpp_fmt *dfmt =
868 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH);
874 dfmt->header_width, buf);
880 struct diff_hpp_fmt *dfmt =
883 BUG_ON(!dfmt->header);
884 return scnprintf(hpp->buf, hpp->size, dfmt->header);
890 struct diff_hpp_fmt *dfmt =
893 BUG_ON(dfmt->header_width <= 0);
894 return dfmt->header_width;
897 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt)
905 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX);
906 header = columns[dfmt->idx].name;
907 width = columns[dfmt->idx].width;
916 dfmt->header_width = width;
918 if (dfmt->header_width < width)
919 dfmt->header_width = width;
922 dfmt->header_width, NAME);
924 dfmt->header = strdup(buf_indent);
931 struct diff_hpp_fmt *dfmt = &d->fmt[idx];
932 struct perf_hpp_fmt *fmt = &dfmt->fmt;
934 dfmt->idx = idx;
944 init_header(d, dfmt);