Searched refs:dfmt (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/tools/perf/
H A Dbuiltin-diff.c395 struct diff_hpp_fmt *dfmt = container_of(fmt, struct diff_hpp_fmt, fmt); fmt_to_data_file() local
396 void *ptr = dfmt - dfmt->idx; fmt_to_data_file()
417 get_pair_fmt(struct hist_entry *he, struct diff_hpp_fmt *dfmt) get_pair_fmt() argument
419 struct data__file *d = fmt_to_data_file(&dfmt->fmt); get_pair_fmt()
828 struct diff_hpp_fmt *dfmt = hpp__color_baseline() local
834 scnprintf(pfmt, 20, "%%%d.2f%%%%", dfmt->header_width - 1); hpp__color_baseline()
839 dfmt->header_width, pfmt); hpp__color_baseline()
858 struct diff_hpp_fmt *dfmt = __hpp__color_compare() local
860 struct hist_entry *pair = get_pair_fmt(he, dfmt); __hpp__color_compare()
875 scnprintf(pfmt, 20, "%%%+d.2f%%%%", dfmt->header_width - 1); __hpp__color_compare()
886 scnprintf(pfmt, 20, "%%%d.6f", dfmt->header_width); __hpp__color_compare()
897 scnprintf(pfmt, 20, "%%14ld", dfmt->header_width); __hpp__color_compare()
906 dfmt->header_width, "N/A"); __hpp__color_compare()
909 dfmt->header_width, pfmt); __hpp__color_compare()
1007 __hpp__entry_global(struct hist_entry *he, struct diff_hpp_fmt *dfmt, __hpp__entry_global() argument
1010 struct hist_entry *pair = get_pair_fmt(he, dfmt); __hpp__entry_global()
1011 int idx = dfmt->idx; __hpp__entry_global()
1027 struct diff_hpp_fmt *dfmt = hpp__entry_global() local
1031 __hpp__entry_global(he, dfmt, buf, MAX_COL_WIDTH); hpp__entry_global()
1037 dfmt->header_width, buf); hpp__entry_global()
1043 struct diff_hpp_fmt *dfmt = hpp__header() local
1046 BUG_ON(!dfmt->header); hpp__header()
1047 return scnprintf(hpp->buf, hpp->size, dfmt->header); hpp__header()
1054 struct diff_hpp_fmt *dfmt = hpp__width() local
1057 BUG_ON(dfmt->header_width <= 0); hpp__width()
1058 return dfmt->header_width; hpp__width()
1061 static void init_header(struct data__file *d, struct diff_hpp_fmt *dfmt) init_header() argument
1069 BUG_ON(dfmt->idx >= PERF_HPP_DIFF__MAX_INDEX); init_header()
1070 header = columns[dfmt->idx].name; init_header()
1071 width = columns[dfmt->idx].width; init_header()
1080 dfmt->header_width = width; init_header()
1082 if (dfmt->header_width < width) init_header()
1083 dfmt->header_width = width; init_header()
1086 dfmt->header_width, NAME); init_header()
1088 dfmt->header = strdup(buf_indent); init_header()
1095 struct diff_hpp_fmt *dfmt = &d->fmt[idx]; data__hpp_register() local
1096 struct perf_hpp_fmt *fmt = &dfmt->fmt; data__hpp_register()
1098 dfmt->idx = idx; data__hpp_register()
1129 init_header(d, dfmt); data__hpp_register()

Completed in 35 milliseconds