Lines Matching refs:hpp

18 #define hpp__call_print_fn(hpp, fn, fmt, ...)			\  argument
20 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
21 advance_hpp(hpp, __ret); \
25 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
32 char *buf = hpp->buf; in __hpp__fmt()
33 size_t size = hpp->size; in __hpp__fmt()
42 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
44 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
69 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
72 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
78 ret += hpp__call_print_fn(hpp, print_fn, fmt, len, in __hpp__fmt()
81 ret += hpp__call_print_fn(hpp, print_fn, fmt, in __hpp__fmt()
95 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
98 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
108 hpp->buf = buf; in __hpp__fmt()
109 hpp->size = size; in __hpp__fmt()
114 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt() argument
121 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
130 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt()
133 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt_acc() argument
139 return snprintf(hpp->buf, hpp->size, " %*s", len - 1, "N/A"); in hpp__fmt_acc()
142 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent); in hpp__fmt_acc()
288 struct perf_hpp *hpp __maybe_unused, in hpp__width_fn()
303 static int hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header_fn() argument
307 int len = hpp__width_fn(fmt, hpp, hists); in hpp__header_fn()
308 return scnprintf(hpp->buf, hpp->size, "%*s", len, fmt->name); in hpp__header_fn()
311 int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_color_scnprintf() argument
314 ssize_t ssize = hpp->size; in hpp_color_scnprintf()
321 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); in hpp_color_scnprintf()
327 static int hpp_entry_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_entry_scnprintf() argument
330 ssize_t ssize = hpp->size; in hpp_entry_scnprintf()
334 ret = vsnprintf(hpp->buf, hpp->size, fmt, args); in hpp_entry_scnprintf()
347 struct perf_hpp *hpp, struct hist_entry *he) \
349 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
355 struct perf_hpp *hpp, struct hist_entry *he) \
357 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
375 struct perf_hpp *hpp, struct hist_entry *he) \
377 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
383 struct perf_hpp *hpp, struct hist_entry *he) \
385 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
403 struct perf_hpp *hpp, struct hist_entry *he) \
405 return hpp__fmt(fmt, hpp, he, he_get_raw_##_field, " %*"PRIu64, \
800 perf_hpp_list__for_each_format(&node->hpp, fmt) in hists__reset_column_width()
844 perf_hpp_list__init(&node->hpp); in add_hierarchy_fmt()
857 list_add_tail(&fmt_copy->list, &node->hpp.fields); in add_hierarchy_fmt()
858 list_add_tail(&fmt_copy->sort_list, &node->hpp.sorts); in add_hierarchy_fmt()