Lines Matching full:hse
2710 struct hpp_sort_entry *hse; in perf_hpp__reset_sort_width() local
2715 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
2716 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
2723 struct hpp_sort_entry *hse; in __sort__hpp_header() local
2730 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
2733 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header()
2742 struct hpp_sort_entry *hse; in __sort__hpp_width() local
2745 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
2748 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width()
2756 struct hpp_sort_entry *hse; in __sort__hpp_entry() local
2759 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
2762 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
2764 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
2770 struct hpp_sort_entry *hse; in __sort__hpp_cmp() local
2772 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_cmp()
2773 return hse->se->se_cmp(a, b); in __sort__hpp_cmp()
2779 struct hpp_sort_entry *hse; in __sort__hpp_collapse() local
2782 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_collapse()
2783 collapse_fn = hse->se->se_collapse ?: hse->se->se_cmp; in __sort__hpp_collapse()
2790 struct hpp_sort_entry *hse; in __sort__hpp_sort() local
2793 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_sort()
2794 sort_fn = hse->se->se_sort ?: hse->se->se_cmp; in __sort__hpp_sort()
2806 struct hpp_sort_entry *hse; \
2811 hse = container_of(fmt, struct hpp_sort_entry, hpp); \
2812 return hse->se == &sort_ ## key ; \
2848 struct hpp_sort_entry *hse; in hse_free() local
2850 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_free()
2851 free(hse); in hse_free()
2856 struct hpp_sort_entry *hse; in hse_init() local
2861 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_init()
2863 if (hse->se->se_init) in hse_init()
2864 hse->se->se_init(he); in hse_init()
2870 struct hpp_sort_entry *hse; in __sort_dimension__alloc_hpp() local
2872 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
2873 if (hse == NULL) { in __sort_dimension__alloc_hpp()
2878 hse->se = sd->entry; in __sort_dimension__alloc_hpp()
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()
2899 return hse; in __sort_dimension__alloc_hpp()
2926 struct hpp_sort_entry *hse; in hist_entry__filter() local
2934 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hist_entry__filter()
2935 if (hse->se->se_filter == NULL) in hist_entry__filter()
2942 r = hse->se->se_filter(he, type, arg); in hist_entry__filter()
2957 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, level); in __sort_dimension__add_hpp_sort() local
2959 if (hse == NULL) in __sort_dimension__add_hpp_sort()
2962 perf_hpp_list__register_sort_field(list, &hse->hpp); in __sort_dimension__add_hpp_sort()
2970 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, level); in __sort_dimension__add_hpp_output() local
2972 if (hse == NULL) in __sort_dimension__add_hpp_output()
2975 perf_hpp_list__column_register(list, &hse->hpp); in __sort_dimension__add_hpp_output()
3277 struct hpp_sort_entry *hse, *new_hse; in perf_hpp_fmt__dup() local
3279 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp_fmt__dup()
3280 new_hse = memdup(hse, sizeof(*hse)); in perf_hpp_fmt__dup()
3992 struct hpp_sort_entry *hse; in perf_hpp__set_elide() local
3998 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__set_elide()
3999 if (hse->se->se_width_idx == idx) { in perf_hpp__set_elide()
4056 struct hpp_sort_entry *hse; in sort__setup_elide() local
4062 hse = container_of(fmt, struct hpp_sort_entry, hpp); in sort__setup_elide()
4063 fmt->elide = get_elide(hse->se->se_width_idx, output); in sort__setup_elide()