Lines Matching full:hpp
2704 struct perf_hpp_fmt hpp; member
2715 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
2719 static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_header() argument
2730 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
2735 return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, hdr); in __sort__hpp_header()
2739 struct perf_hpp *hpp __maybe_unused, in __sort__hpp_width()
2745 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
2753 static int __sort__hpp_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hpp_entry() argument
2759 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
2764 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
2772 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_cmp()
2782 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_collapse()
2793 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_sort()
2811 hse = container_of(fmt, struct hpp_sort_entry, hpp); \
2840 hse_a = container_of(a, struct hpp_sort_entry, hpp); in MK_SORT_ENTRY_CHK()
2841 hse_b = container_of(b, struct hpp_sort_entry, hpp); in MK_SORT_ENTRY_CHK()
2850 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_free()
2861 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_init()
2879 hse->hpp.name = sd->entry->se_header; in __sort_dimension__alloc_hpp()
2880 hse->hpp.header = __sort__hpp_header; in __sort_dimension__alloc_hpp()
2881 hse->hpp.width = __sort__hpp_width; in __sort_dimension__alloc_hpp()
2882 hse->hpp.entry = __sort__hpp_entry; in __sort_dimension__alloc_hpp()
2883 hse->hpp.color = NULL; in __sort_dimension__alloc_hpp()
2885 hse->hpp.cmp = __sort__hpp_cmp; in __sort_dimension__alloc_hpp()
2886 hse->hpp.collapse = __sort__hpp_collapse; in __sort_dimension__alloc_hpp()
2887 hse->hpp.sort = __sort__hpp_sort; in __sort_dimension__alloc_hpp()
2888 hse->hpp.equal = __sort__hpp_equal; in __sort_dimension__alloc_hpp()
2889 hse->hpp.free = hse_free; in __sort_dimension__alloc_hpp()
2890 hse->hpp.init = hse_init; in __sort_dimension__alloc_hpp()
2892 INIT_LIST_HEAD(&hse->hpp.list); in __sort_dimension__alloc_hpp()
2893 INIT_LIST_HEAD(&hse->hpp.sort_list); in __sort_dimension__alloc_hpp()
2894 hse->hpp.elide = false; in __sort_dimension__alloc_hpp()
2895 hse->hpp.len = 0; in __sort_dimension__alloc_hpp()
2896 hse->hpp.user_len = 0; in __sort_dimension__alloc_hpp()
2897 hse->hpp.level = level; in __sort_dimension__alloc_hpp()
2934 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hist_entry__filter()
2939 * hist entry is filtered if any of sort key in the hpp list in hist_entry__filter()
2962 perf_hpp_list__register_sort_field(list, &hse->hpp); in __sort_dimension__add_hpp_sort()
2975 perf_hpp_list__column_register(list, &hse->hpp); in __sort_dimension__add_hpp_output()
2991 struct perf_hpp_fmt hpp; member
3000 if (!hde->hpp.len) { in hde_width()
3015 hde->hpp.len = len; in hde_width()
3017 return hde->hpp.len; in hde_width()
3063 static int __sort__hde_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hde_header() argument
3071 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_header()
3076 return scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, hde->field->name); in __sort__hde_header()
3080 struct perf_hpp *hpp __maybe_unused, in __sort__hde_width()
3086 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_width()
3098 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in perf_hpp__defined_dynamic_entry()
3103 static int __sort__hde_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, in __sort__hde_entry() argument
3114 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_entry()
3141 return scnprintf(hpp->buf, hpp->size, in __sort__hde_entry()
3160 ret = scnprintf(hpp->buf, hpp->size, "%*.*s", len, len, str); in __sort__hde_entry()
3172 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_cmp()
3207 hde_a = container_of(a, struct hpp_dynamic_entry, hpp); in __sort__hde_equal()
3208 hde_b = container_of(b, struct hpp_dynamic_entry, hpp); in __sort__hde_equal()
3217 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in hde_free()
3228 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in __sort__hde_init()
3248 hde->hpp.name = field->name; in __alloc_dynamic_entry()
3249 hde->hpp.header = __sort__hde_header; in __alloc_dynamic_entry()
3250 hde->hpp.width = __sort__hde_width; in __alloc_dynamic_entry()
3251 hde->hpp.entry = __sort__hde_entry; in __alloc_dynamic_entry()
3252 hde->hpp.color = NULL; in __alloc_dynamic_entry()
3254 hde->hpp.init = __sort__hde_init; in __alloc_dynamic_entry()
3255 hde->hpp.cmp = __sort__hde_cmp; in __alloc_dynamic_entry()
3256 hde->hpp.collapse = __sort__hde_cmp; in __alloc_dynamic_entry()
3257 hde->hpp.sort = __sort__hde_cmp; in __alloc_dynamic_entry()
3258 hde->hpp.equal = __sort__hde_equal; in __alloc_dynamic_entry()
3259 hde->hpp.free = hde_free; in __alloc_dynamic_entry()
3261 INIT_LIST_HEAD(&hde->hpp.list); in __alloc_dynamic_entry()
3262 INIT_LIST_HEAD(&hde->hpp.sort_list); in __alloc_dynamic_entry()
3263 hde->hpp.elide = false; in __alloc_dynamic_entry()
3264 hde->hpp.len = 0; in __alloc_dynamic_entry()
3265 hde->hpp.user_len = 0; in __alloc_dynamic_entry()
3266 hde->hpp.level = level; in __alloc_dynamic_entry()
3279 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp_fmt__dup()
3282 new_fmt = &new_hse->hpp; in perf_hpp_fmt__dup()
3287 hde = container_of(fmt, struct hpp_dynamic_entry, hpp); in perf_hpp_fmt__dup()
3290 new_fmt = &new_hde->hpp; in perf_hpp_fmt__dup()
3384 perf_hpp__register_sort_field(&hde->hpp); in __dynamic_dimension__add()
3802 /* keep output (hpp) sort keys in the same level */ in setup_sort_list()
3998 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__set_elide()
4062 hse = container_of(fmt, struct hpp_sort_entry, hpp); in sort__setup_elide()
4236 * perf diff doesn't use default hpp output fields. in setup_sorting()