Lines Matching refs:hpp

11 #define hpp__call_print_fn(hpp, fn, fmt, ...)			\  argument
13 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
14 advance_hpp(hpp, __ret); \
18 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
25 char *buf = hpp->buf; in __hpp__fmt()
26 size_t size = hpp->size; in __hpp__fmt()
35 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
37 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
62 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
65 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
71 ret += hpp__call_print_fn(hpp, print_fn, fmt, len, in __hpp__fmt()
74 ret += hpp__call_print_fn(hpp, print_fn, fmt, in __hpp__fmt()
88 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
91 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
101 hpp->buf = buf; in __hpp__fmt()
102 hpp->size = size; in __hpp__fmt()
107 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt() argument
114 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
123 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt()
126 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt_acc() argument
132 return snprintf(hpp->buf, hpp->size, " %*s", len - 1, "N/A"); in hpp__fmt_acc()
135 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent); in hpp__fmt_acc()
216 struct perf_hpp *hpp __maybe_unused, in hpp__width_fn()
230 static int hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header_fn() argument
233 int len = hpp__width_fn(fmt, hpp, evsel); in hpp__header_fn()
234 return scnprintf(hpp->buf, hpp->size, "%*s", len, fmt->name); in hpp__header_fn()
237 static int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_color_scnprintf() argument
240 ssize_t ssize = hpp->size; in hpp_color_scnprintf()
247 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); in hpp_color_scnprintf()
253 static int hpp_entry_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_entry_scnprintf() argument
256 ssize_t ssize = hpp->size; in hpp_entry_scnprintf()
260 ret = vsnprintf(hpp->buf, hpp->size, fmt, args); in hpp_entry_scnprintf()
273 struct perf_hpp *hpp, struct hist_entry *he) \
275 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
281 struct perf_hpp *hpp, struct hist_entry *he) \
283 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
301 struct perf_hpp *hpp, struct hist_entry *he) \
303 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
309 struct perf_hpp *hpp, struct hist_entry *he) \
311 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
329 struct perf_hpp *hpp, struct hist_entry *he) \
331 return hpp__fmt(fmt, hpp, he, he_get_raw_##_field, " %*"PRIu64, \