Lines Matching full:hse
2623 struct hpp_sort_entry *hse; in perf_hpp__reset_sort_width() local
2628 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
2629 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
2636 struct hpp_sort_entry *hse; in __sort__hpp_header() local
2639 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
2642 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header()
2651 struct hpp_sort_entry *hse; in __sort__hpp_width() local
2654 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
2657 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width()
2665 struct hpp_sort_entry *hse; in __sort__hpp_entry() local
2668 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
2671 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
2673 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
2679 struct hpp_sort_entry *hse; in __sort__hpp_cmp() local
2681 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_cmp()
2682 return hse->se->se_cmp(a, b); in __sort__hpp_cmp()
2688 struct hpp_sort_entry *hse; in __sort__hpp_collapse() local
2691 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_collapse()
2692 collapse_fn = hse->se->se_collapse ?: hse->se->se_cmp; in __sort__hpp_collapse()
2699 struct hpp_sort_entry *hse; in __sort__hpp_sort() local
2702 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_sort()
2703 sort_fn = hse->se->se_sort ?: hse->se->se_cmp; in __sort__hpp_sort()
2715 struct hpp_sort_entry *hse; \
2720 hse = container_of(fmt, struct hpp_sort_entry, hpp); \
2721 return hse->se == &sort_ ## key ; \
2756 struct hpp_sort_entry *hse; in hse_free() local
2758 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_free()
2759 free(hse); in hse_free()
2764 struct hpp_sort_entry *hse; in hse_init() local
2769 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_init()
2771 if (hse->se->se_init) in hse_init()
2772 hse->se->se_init(he); in hse_init()
2778 struct hpp_sort_entry *hse; in __sort_dimension__alloc_hpp() local
2780 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
2781 if (hse == NULL) { in __sort_dimension__alloc_hpp()
2786 hse->se = sd->entry; in __sort_dimension__alloc_hpp()
2787 hse->hpp.name = sd->entry->se_header; in __sort_dimension__alloc_hpp()
2788 hse->hpp.header = __sort__hpp_header; in __sort_dimension__alloc_hpp()
2789 hse->hpp.width = __sort__hpp_width; in __sort_dimension__alloc_hpp()
2790 hse->hpp.entry = __sort__hpp_entry; in __sort_dimension__alloc_hpp()
2791 hse->hpp.color = NULL; in __sort_dimension__alloc_hpp()
2793 hse->hpp.cmp = __sort__hpp_cmp; in __sort_dimension__alloc_hpp()
2794 hse->hpp.collapse = __sort__hpp_collapse; in __sort_dimension__alloc_hpp()
2795 hse->hpp.sort = __sort__hpp_sort; in __sort_dimension__alloc_hpp()
2796 hse->hpp.equal = __sort__hpp_equal; in __sort_dimension__alloc_hpp()
2797 hse->hpp.free = hse_free; in __sort_dimension__alloc_hpp()
2798 hse->hpp.init = hse_init; in __sort_dimension__alloc_hpp()
2800 INIT_LIST_HEAD(&hse->hpp.list); in __sort_dimension__alloc_hpp()
2801 INIT_LIST_HEAD(&hse->hpp.sort_list); in __sort_dimension__alloc_hpp()
2802 hse->hpp.elide = false; in __sort_dimension__alloc_hpp()
2803 hse->hpp.len = 0; in __sort_dimension__alloc_hpp()
2804 hse->hpp.user_len = 0; in __sort_dimension__alloc_hpp()
2805 hse->hpp.level = level; in __sort_dimension__alloc_hpp()
2807 return hse; in __sort_dimension__alloc_hpp()
2834 struct hpp_sort_entry *hse; in hist_entry__filter() local
2842 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hist_entry__filter()
2843 if (hse->se->se_filter == NULL) in hist_entry__filter()
2850 r = hse->se->se_filter(he, type, arg); in hist_entry__filter()
2865 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, level); in __sort_dimension__add_hpp_sort() local
2867 if (hse == NULL) in __sort_dimension__add_hpp_sort()
2870 perf_hpp_list__register_sort_field(list, &hse->hpp); in __sort_dimension__add_hpp_sort()
2877 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, 0); in __sort_dimension__add_hpp_output() local
2879 if (hse == NULL) in __sort_dimension__add_hpp_output()
2882 perf_hpp_list__column_register(list, &hse->hpp); in __sort_dimension__add_hpp_output()
3184 struct hpp_sort_entry *hse, *new_hse; in perf_hpp_fmt__dup() local
3186 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp_fmt__dup()
3187 new_hse = memdup(hse, sizeof(*hse)); in perf_hpp_fmt__dup()
3833 struct hpp_sort_entry *hse; in perf_hpp__set_elide() local
3839 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__set_elide()
3840 if (hse->se->se_width_idx == idx) { in perf_hpp__set_elide()
3897 struct hpp_sort_entry *hse; in sort__setup_elide() local
3903 hse = container_of(fmt, struct hpp_sort_entry, hpp); in sort__setup_elide()
3904 fmt->elide = get_elide(hse->se->se_width_idx, output); in sort__setup_elide()