Home
last modified time | relevance | path

Searched refs:hpp (Results 1 – 7 of 7) sorted by relevance

/tools/perf/ui/
Dhist.c11 #define hpp__call_print_fn(hpp, fn, fmt, ...) \ argument
13 int __ret = fn(hpp, fmt, ##__VA_ARGS__); \
14 advance_hpp(hpp, __ret); \
18 static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he, in __hpp__fmt() argument
25 char *buf = hpp->buf; in __hpp__fmt()
26 size_t size = hpp->size; in __hpp__fmt()
35 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, percent); in __hpp__fmt()
37 ret = hpp__call_print_fn(hpp, print_fn, fmt, len, get_field(he)); in __hpp__fmt()
62 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
65 ret += hpp__call_print_fn(hpp, print_fn, in __hpp__fmt()
[all …]
/tools/perf/
Dbuiltin-diff.c832 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_baseline() argument
841 return percent_color_snprintf(hpp->buf, hpp->size, in hpp__color_baseline()
844 return scnprintf(hpp->buf, hpp->size, "%*s", in hpp__color_baseline()
861 struct perf_hpp *hpp, struct hist_entry *he, in __hpp__color_compare() argument
882 return percent_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
893 return value_color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
904 return color_snprintf(hpp->buf, hpp->size, in __hpp__color_compare()
911 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare()
914 return scnprintf(hpp->buf, hpp->size, "%*s", in __hpp__color_compare()
919 struct perf_hpp *hpp, struct hist_entry *he) in hpp__color_delta() argument
[all …]
/tools/perf/ui/gtk/
Dhists.c11 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%%", \
172 struct perf_hpp hpp = { in perf_gtk__show_hists() local
245 fmt->color(fmt, &hpp, h); in perf_gtk__show_hists()
247 fmt->entry(fmt, &hpp, h); in perf_gtk__show_hists()
/tools/perf/util/
Dhist.h196 int (*header)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
198 int (*width)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
200 int (*color)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
202 int (*entry)(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
274 typedef int (*hpp_callback_fn)(struct perf_hpp *hpp, bool front);
275 typedef int (*hpp_snprint_fn)(struct perf_hpp *hpp, const char *fmt, ...);
277 int hpp__fmt(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
280 int hpp__fmt_acc(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
284 static inline void advance_hpp(struct perf_hpp *hpp, int inc) in advance_hpp() argument
286 hpp->buf += inc; in advance_hpp()
[all …]
Dsort.c1376 struct perf_hpp_fmt hpp; member
1388 hse_a = container_of(a, struct hpp_sort_entry, hpp); in perf_hpp__same_sort_entry()
1389 hse_b = container_of(b, struct hpp_sort_entry, hpp); in perf_hpp__same_sort_entry()
1401 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
1405 static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_header() argument
1411 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
1416 return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, fmt->name); in __sort__hpp_header()
1420 struct perf_hpp *hpp __maybe_unused, in __sort__hpp_width()
1426 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
1434 static int __sort__hpp_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_entry() argument
[all …]
/tools/perf/ui/stdio/
Dhist.c314 static int hist_entry__snprintf(struct hist_entry *he, struct perf_hpp *hpp) in hist_entry__snprintf() argument
318 char *start = hpp->buf; in hist_entry__snprintf()
334 ret = scnprintf(hpp->buf, hpp->size, "%s", sep ?: " "); in hist_entry__snprintf()
335 advance_hpp(hpp, ret); in hist_entry__snprintf()
340 ret = fmt->color(fmt, hpp, he); in hist_entry__snprintf()
342 ret = fmt->entry(fmt, hpp, he); in hist_entry__snprintf()
344 advance_hpp(hpp, ret); in hist_entry__snprintf()
347 return hpp->buf - start; in hist_entry__snprintf()
355 struct perf_hpp hpp = { in hist_entry__fprintf() local
361 size = hpp.size = bfsz; in hist_entry__fprintf()
[all …]
/tools/perf/ui/browsers/
Dhists.c670 static int __hpp__slsmg_color_printf(struct perf_hpp *hpp, const char *fmt, ...) in __hpp__slsmg_color_printf() argument
672 struct hpp_arg *arg = hpp->ptr; in __hpp__slsmg_color_printf()
684 ret = scnprintf(hpp->buf, hpp->size, fmt, len, percent); in __hpp__slsmg_color_printf()
685 ui_browser__printf(arg->b, "%s", hpp->buf); in __hpp__slsmg_color_printf()
698 struct perf_hpp *hpp, \
701 return hpp__fmt(fmt, hpp, he, __hpp_get_##_field, " %*.2f%%", \
713 struct perf_hpp *hpp, \
717 struct hpp_arg *arg = hpp->ptr; \
719 int ret = scnprintf(hpp->buf, hpp->size, \
721 ui_browser__printf(arg->b, "%s", hpp->buf); \
[all …]