Lines Matching full:hse
2516 struct hpp_sort_entry *hse; in perf_hpp__reset_sort_width() local
2521 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
2522 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
2529 struct hpp_sort_entry *hse; in __sort__hpp_header() local
2532 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
2535 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header()
2544 struct hpp_sort_entry *hse; in __sort__hpp_width() local
2547 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
2550 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width()
2558 struct hpp_sort_entry *hse; in __sort__hpp_entry() local
2561 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
2564 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
2566 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
2572 struct hpp_sort_entry *hse; in __sort__hpp_cmp() local
2574 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_cmp()
2575 return hse->se->se_cmp(a, b); in __sort__hpp_cmp()
2581 struct hpp_sort_entry *hse; in __sort__hpp_collapse() local
2584 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_collapse()
2585 collapse_fn = hse->se->se_collapse ?: hse->se->se_cmp; in __sort__hpp_collapse()
2592 struct hpp_sort_entry *hse; in __sort__hpp_sort() local
2595 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_sort()
2596 sort_fn = hse->se->se_sort ?: hse->se->se_cmp; in __sort__hpp_sort()
2608 struct hpp_sort_entry *hse; \
2613 hse = container_of(fmt, struct hpp_sort_entry, hpp); \
2614 return hse->se == &sort_ ## key ; \
2649 struct hpp_sort_entry *hse; in hse_free() local
2651 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_free()
2652 free(hse); in hse_free()
2657 struct hpp_sort_entry *hse; in hse_init() local
2662 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_init()
2664 if (hse->se->se_init) in hse_init()
2665 hse->se->se_init(he); in hse_init()
2671 struct hpp_sort_entry *hse; in __sort_dimension__alloc_hpp() local
2673 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
2674 if (hse == NULL) { in __sort_dimension__alloc_hpp()
2679 hse->se = sd->entry; in __sort_dimension__alloc_hpp()
2680 hse->hpp.name = sd->entry->se_header; in __sort_dimension__alloc_hpp()
2681 hse->hpp.header = __sort__hpp_header; in __sort_dimension__alloc_hpp()
2682 hse->hpp.width = __sort__hpp_width; in __sort_dimension__alloc_hpp()
2683 hse->hpp.entry = __sort__hpp_entry; in __sort_dimension__alloc_hpp()
2684 hse->hpp.color = NULL; in __sort_dimension__alloc_hpp()
2686 hse->hpp.cmp = __sort__hpp_cmp; in __sort_dimension__alloc_hpp()
2687 hse->hpp.collapse = __sort__hpp_collapse; in __sort_dimension__alloc_hpp()
2688 hse->hpp.sort = __sort__hpp_sort; in __sort_dimension__alloc_hpp()
2689 hse->hpp.equal = __sort__hpp_equal; in __sort_dimension__alloc_hpp()
2690 hse->hpp.free = hse_free; in __sort_dimension__alloc_hpp()
2691 hse->hpp.init = hse_init; in __sort_dimension__alloc_hpp()
2693 INIT_LIST_HEAD(&hse->hpp.list); in __sort_dimension__alloc_hpp()
2694 INIT_LIST_HEAD(&hse->hpp.sort_list); in __sort_dimension__alloc_hpp()
2695 hse->hpp.elide = false; in __sort_dimension__alloc_hpp()
2696 hse->hpp.len = 0; in __sort_dimension__alloc_hpp()
2697 hse->hpp.user_len = 0; in __sort_dimension__alloc_hpp()
2698 hse->hpp.level = level; in __sort_dimension__alloc_hpp()
2700 return hse; in __sort_dimension__alloc_hpp()
2727 struct hpp_sort_entry *hse; in hist_entry__filter() local
2735 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hist_entry__filter()
2736 if (hse->se->se_filter == NULL) in hist_entry__filter()
2743 r = hse->se->se_filter(he, type, arg); in hist_entry__filter()
2758 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, level); in __sort_dimension__add_hpp_sort() local
2760 if (hse == NULL) in __sort_dimension__add_hpp_sort()
2763 perf_hpp_list__register_sort_field(list, &hse->hpp); in __sort_dimension__add_hpp_sort()
2770 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, 0); in __sort_dimension__add_hpp_output() local
2772 if (hse == NULL) in __sort_dimension__add_hpp_output()
2775 perf_hpp_list__column_register(list, &hse->hpp); in __sort_dimension__add_hpp_output()
3077 struct hpp_sort_entry *hse, *new_hse; in perf_hpp_fmt__dup() local
3079 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp_fmt__dup()
3080 new_hse = memdup(hse, sizeof(*hse)); in perf_hpp_fmt__dup()
3713 struct hpp_sort_entry *hse; in perf_hpp__set_elide() local
3719 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__set_elide()
3720 if (hse->se->se_width_idx == idx) { in perf_hpp__set_elide()
3777 struct hpp_sort_entry *hse; in sort__setup_elide() local
3783 hse = container_of(fmt, struct hpp_sort_entry, hpp); in sort__setup_elide()
3784 fmt->elide = get_elide(hse->se->se_width_idx, output); in sort__setup_elide()