• Home
  • Raw
  • Download

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(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
33 char *buf = hpp->buf; in __hpp__fmt()
34 size_t size = hpp->size; in __hpp__fmt()
43 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
45 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
70 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
73 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
79 ret += hpp__call_print_fn(hpp, print_fn, fmt, len, in __hpp__fmt()
82 ret += hpp__call_print_fn(hpp, print_fn, fmt, in __hpp__fmt()
96 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
99 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
109 hpp->buf = buf; in __hpp__fmt()
110 hpp->size = size; in __hpp__fmt()
115 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt() argument
122 return __hpp__fmt(hpp, he, get_field, fmtstr, 1, in hpp__fmt()
131 return __hpp__fmt(hpp, he, get_field, fmtstr, len, print_fn, fmt_percent); in hpp__fmt()
134 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__fmt_acc() argument
140 return snprintf(hpp->buf, hpp->size, " %*s", len - 1, "N/A"); in hpp__fmt_acc()
143 return hpp__fmt(fmt, hpp, he, get_field, fmtstr, print_fn, fmt_percent); in hpp__fmt_acc()
291 struct perf_hpp *hpp __maybe_unused, in hpp__width_fn()
306 static int hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in hpp__header_fn() argument
310 int len = hpp__width_fn(fmt, hpp, hists); in hpp__header_fn()
311 return scnprintf(hpp->buf, hpp->size, "%*s", len, fmt->name); in hpp__header_fn()
314 int hpp_color_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_color_scnprintf() argument
317 ssize_t ssize = hpp->size; in hpp_color_scnprintf()
324 ret = percent_color_len_snprintf(hpp->buf, hpp->size, fmt, len, percent); in hpp_color_scnprintf()
330 static int hpp_entry_scnprintf(struct perf_hpp *hpp, const char *fmt, ...) in hpp_entry_scnprintf() argument
333 ssize_t ssize = hpp->size; in hpp_entry_scnprintf()
337 ret = vsnprintf(hpp->buf, hpp->size, fmt, args); in hpp_entry_scnprintf()
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 */ in hists__reset_column_width()
803 perf_hpp_list__for_each_format(&node->hpp, fmt) in hists__reset_column_width()
847 perf_hpp_list__init(&node->hpp); in add_hierarchy_fmt()
860 list_add_tail(&fmt_copy->list, &node->hpp.fields); in add_hierarchy_fmt()
861 list_add_tail(&fmt_copy->sort_list, &node->hpp.sorts); in add_hierarchy_fmt()