Lines Matching refs:hpp

17 /* hist period print (hpp) functions */
19 #define hpp__call_print_fn(hpp, fn, fmt, ...) \
21 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
22 advance_hpp(hpp, __ret); \
26 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he,
33 char *buf = hpp->buf;
34 size_t size = hpp->size;
43 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent);
45 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he));
70 ret += hpp__call_print_fn(hpp, print_fn,
73 ret += hpp__call_print_fn(hpp, print_fn,
79 ret += hpp__call_print_fn(hpp, print_fn, fmt, len,
82 ret += hpp__call_print_fn(hpp, print_fn, fmt,
96 ret += hpp__call_print_fn(hpp, print_fn,
99 ret += hpp__call_print_fn(hpp, print_fn,
109 hpp->buf = buf;
110 hpp->size = size;
115 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
122 return __hpp__fmt(hpp, he, get_field, fmtstr, 1,
131 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent);
134 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
140 return snprintf(hpp->buf, hpp->size, " %*s", len - 1, "N/A");
143 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent);
291 struct perf_hpp *hpp __maybe_unused,
306 static int hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
310 int len = hpp__width_fn(fmt, hpp, hists);
311 return scnprintf(hpp->buf, hpp->size, "%*s", len, fmt->name);
314 int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...)
317 ssize_t ssize = hpp->size;
324 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent);
330 static int hpp_entry_scnprintf(struct perf_hpp *hpp, const char *fmt, ...)
333 ssize_t ssize = hpp->size;
337 ret = vsnprintf(hpp->buf, hpp->size, fmt, args);
350 struct perf_hpp *hpp, struct hist_entry *he) \
352 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
358 struct perf_hpp *hpp, struct hist_entry *he) \
360 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
378 struct perf_hpp *hpp, struct hist_entry *he) \
380 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
386 struct perf_hpp *hpp, struct hist_entry *he) \
388 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
406 struct perf_hpp *hpp, struct hist_entry *he) \
408 return hpp__fmt(fmt, hpp, he, he_get_raw_##_field, " %*"PRIu64, \
801 /* hierarchy entries have their own hpp list */
803 perf_hpp_list__for_each_format(&node->hpp, fmt)
847 perf_hpp_list__init(&node->hpp);
860 list_add_tail(&fmt_copy->list, &node->hpp.fields);
861 list_add_tail(&fmt_copy->sort_list, &node->hpp.sorts);