/tools/perf/ui/stdio/ |
D | hist.c | 376 int __hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp, in __hist_entry__snprintf() argument 381 char *start = hpp->buf; in __hist_entry__snprintf() 397 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in __hist_entry__snprintf() 398 advance_hpp(hpp, ret); in __hist_entry__snprintf() 403 ret = fmt->color(fmt, hpp, he); in __hist_entry__snprintf() 405 ret = fmt->entry(fmt, hpp, he); in __hist_entry__snprintf() 407 ret = hist_entry__snprintf_alignment(he, hpp, fmt, ret); in __hist_entry__snprintf() 408 advance_hpp(hpp, ret); in __hist_entry__snprintf() 411 return hpp->buf - start; in __hist_entry__snprintf() 414 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument [all …]
|
/tools/perf/ui/ |
D | hist.c | 12 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument 14 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \ 15 advance_hpp(hpp, __ret); \ 19 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument 26 char *buf = hpp->buf; in __hpp__fmt() 27 size_t size = hpp->size; in __hpp__fmt() 36 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt() 38 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt() 63 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt() 66 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt() [all …]
|
/tools/perf/ui/gtk/ |
D | hists.c | 11 static int __percent_color_snprintf(struct perf_hpp *hpp, const char *fmt, ...) in __percent_color_snprintf() argument 18 char *buf = hpp->buf; in __percent_color_snprintf() 19 size_t size = hpp->size; in __percent_color_snprintf() 45 struct perf_hpp *hpp, \ 48 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ 59 struct perf_hpp *hpp, \ 62 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \ 302 struct perf_hpp hpp = { in perf_gtk__show_hists() local 375 fmt->color(fmt, &hpp, h); in perf_gtk__show_hists() 377 fmt->entry(fmt, &hpp, h); in perf_gtk__show_hists() [all …]
|
/tools/perf/util/ |
D | sort.c | 1484 struct perf_hpp_fmt hpp; member 1495 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width() 1499 static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_header() argument 1506 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header() 1511 return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, fmt->name); in __sort__hpp_header() 1515 struct perf_hpp *hpp __maybe_unused, in __sort__hpp_width() 1521 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width() 1529 static int __sort__hpp_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_entry() argument 1535 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry() 1540 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry() [all …]
|
D | hist.h | 152 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp, 232 int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 234 int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 236 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 238 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 276 struct perf_hpp_list hpp; member 381 typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front); 382 typedef int (*hpp_snprint_fn)(struct perf_hpp *hpp, const char *fmt, ...); 384 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, 387 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, [all …]
|
D | hist.c | 1149 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp, in hist_entry__snprintf_alignment() argument 1153 const int width = fmt->width(fmt, hpp, he->hists); in hist_entry__snprintf_alignment() 1155 advance_hpp(hpp, printed); in hist_entry__snprintf_alignment() 1156 printed = scnprintf(hpp->buf, hpp->size, "%-*s", width - printed, " "); in hist_entry__snprintf_alignment() 1346 new_he = hierarchy_insert_entry(hists, root, he, parent, &node->hpp); in hists__hierarchy_insert_entry() 2507 perf_hpp_list__for_each_format_safe(&node->hpp, fmt, pos) { in hists_evsel__exit()
|
/tools/perf/ |
D | builtin-diff.c | 821 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_baseline() argument 830 return percent_color_snprintf(hpp->buf, hpp->size, in hpp__color_baseline() 833 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline() 850 struct perf_hpp *hpp, struct hist_entry *he, in __hpp__color_compare() argument 871 return percent_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare() 882 return value_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare() 893 return color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare() 900 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare() 903 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare() 908 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_delta() argument [all …]
|
/tools/perf/ui/browsers/ |
D | hists.c | 1084 int __hpp__slsmg_color_printf(struct perf_hpp *hpp, const char *fmt, ...) in __hpp__slsmg_color_printf() argument 1086 struct hpp_arg *arg = hpp->ptr; in __hpp__slsmg_color_printf() 1098 ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); in __hpp__slsmg_color_printf() 1099 ui_browser__printf(arg->b, "%s", hpp->buf); in __hpp__slsmg_color_printf() 1112 struct perf_hpp *hpp, \ 1115 return hpp__fmt(fmt, hpp, he, __hpp_get_##_field, " %*.2f%%", \ 1127 struct perf_hpp *hpp, \ 1131 struct hpp_arg *arg = hpp->ptr; \ 1133 int ret = scnprintf(hpp->buf, hpp->size, \ 1135 ui_browser__printf(arg->b, "%s", hpp->buf); \ [all …]
|