Lines Matching full:hpp
12 /* hist period print (hpp) functions */
14 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument
16 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
17 advance_hpp(hpp, __ret); \
21 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
28 char *buf = hpp->buf; in __hpp__fmt()
29 size_t size = hpp->size; in __hpp__fmt()
38 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
40 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
65 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
68 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
74 ret += hpp__call_print_fn(hpp, print_fn, fmt, len, in __hpp__fmt()
77 ret += hpp__call_print_fn(hpp, print_fn, fmt, in __hpp__fmt()
91 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
94 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
104 hpp->buf = buf; in __hpp__fmt()
105 hpp->size = size; in __hpp__fmt()
110 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt() argument
117 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
126 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt()
129 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt_acc() argument
135 return snprintf(hpp->buf, hpp->size, " %*s", len - 1, "N/A"); in hpp__fmt_acc()
138 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent); in hpp__fmt_acc()
221 struct perf_hpp *hpp __maybe_unused, in hpp__width_fn()
236 static int hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header_fn() argument
240 int len = hpp__width_fn(fmt, hpp, hists); in hpp__header_fn()
241 return scnprintf(hpp->buf, hpp->size, "%*s", len, fmt->name); in hpp__header_fn()
244 int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_color_scnprintf() argument
247 ssize_t ssize = hpp->size; in hpp_color_scnprintf()
254 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); in hpp_color_scnprintf()
260 static int hpp_entry_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_entry_scnprintf() argument
263 ssize_t ssize = hpp->size; in hpp_entry_scnprintf()
267 ret = vsnprintf(hpp->buf, hpp->size, fmt, args); in hpp_entry_scnprintf()
280 struct perf_hpp *hpp, struct hist_entry *he) \
282 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
288 struct perf_hpp *hpp, struct hist_entry *he) \
290 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \
308 struct perf_hpp *hpp, struct hist_entry *he) \
310 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
316 struct perf_hpp *hpp, struct hist_entry *he) \
318 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
336 struct perf_hpp *hpp, struct hist_entry *he) \
338 return hpp__fmt(fmt, hpp, he, he_get_raw_##_field, " %*"PRIu64, \
731 /* hierarchy entries have their own hpp list */ in hists__reset_column_width()
733 perf_hpp_list__for_each_format(&node->hpp, fmt) in hists__reset_column_width()
777 perf_hpp_list__init(&node->hpp); in add_hierarchy_fmt()
790 list_add_tail(&fmt_copy->list, &node->hpp.fields); in add_hierarchy_fmt()
791 list_add_tail(&fmt_copy->sort_list, &node->hpp.sorts); in add_hierarchy_fmt()