Lines Matching full:hpp

17 /* hist period print (hpp) functions */
19 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument
21 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
22 advance_hpp(hpp, __ret); \
26 static int __hpp__fmt_print(struct perf_hpp *hpp, struct hists *hists, u64 val, in __hpp__fmt_print() argument
37 return hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt_print()
43 return hpp__call_print_fn(hpp, print_fn, fmt, len, avg); in __hpp__fmt_print()
46 return hpp__call_print_fn(hpp, print_fn, fmt, len, val); in __hpp__fmt_print()
55 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
63 char *buf = hpp->buf; in __hpp__fmt()
64 size_t size = hpp->size; in __hpp__fmt()
102 ret += __hpp__fmt_print(hpp, values[i].hists, values[i].val, in __hpp__fmt()
113 hpp->buf = buf; in __hpp__fmt()
114 hpp->size = size; in __hpp__fmt()
119 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt() argument
127 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
136 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmtype); in hpp__fmt()
139 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt_acc() argument
146 return snprintf(hpp->buf, hpp->size, " %*s", len - 1, "N/A"); in hpp__fmt_acc()
149 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmtype); in hpp__fmt_acc()
297 struct perf_hpp *hpp __maybe_unused, in hpp__width_fn()
322 static int hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header_fn() argument
326 int len = hpp__width_fn(fmt, hpp, hists); in hpp__header_fn()
327 return scnprintf(hpp->buf, hpp->size, "%*s", len, fmt->name); in hpp__header_fn()
330 int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_color_scnprintf() argument
333 ssize_t ssize = hpp->size; in hpp_color_scnprintf()
340 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); in hpp_color_scnprintf()
346 static int hpp_entry_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_entry_scnprintf() argument
349 ssize_t ssize = hpp->size; in hpp_entry_scnprintf()
353 ret = vsnprintf(hpp->buf, hpp->size, fmt, args); in hpp_entry_scnprintf()
366 struct perf_hpp *hpp, struct hist_entry *he) \
368 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
374 struct perf_hpp *hpp, struct hist_entry *he) \
376 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
394 struct perf_hpp *hpp, struct hist_entry *he) \
396 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
402 struct perf_hpp *hpp, struct hist_entry *he) \
404 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
422 struct perf_hpp *hpp, struct hist_entry *he) \
424 return hpp__fmt(fmt, hpp, he, he_get_raw_##_field, " %*"PRIu64, \
442 struct perf_hpp *hpp, struct hist_entry *he) \
444 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.1f", \
857 /* hierarchy entries have their own hpp list */ in hists__reset_column_width()
859 perf_hpp_list__for_each_format(&node->hpp, fmt) in hists__reset_column_width()
903 perf_hpp_list__init(&node->hpp); in add_hierarchy_fmt()
916 list_add_tail(&fmt_copy->list, &node->hpp.fields); in add_hierarchy_fmt()
917 list_add_tail(&fmt_copy->sort_list, &node->hpp.sorts); in add_hierarchy_fmt()