Lines Matching refs:hse

1930 	struct hpp_sort_entry *hse;  in perf_hpp__reset_sort_width()  local
1935 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
1936 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
1943 struct hpp_sort_entry *hse; in __sort__hpp_header() local
1946 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
1949 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header()
1958 struct hpp_sort_entry *hse; in __sort__hpp_width() local
1961 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
1964 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width()
1972 struct hpp_sort_entry *hse; in __sort__hpp_entry() local
1975 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
1978 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
1980 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
1986 struct hpp_sort_entry *hse; in __sort__hpp_cmp() local
1988 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_cmp()
1989 return hse->se->se_cmp(a, b); in __sort__hpp_cmp()
1995 struct hpp_sort_entry *hse; in __sort__hpp_collapse() local
1998 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_collapse()
1999 collapse_fn = hse->se->se_collapse ?: hse->se->se_cmp; in __sort__hpp_collapse()
2006 struct hpp_sort_entry *hse; in __sort__hpp_sort() local
2009 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_sort()
2010 sort_fn = hse->se->se_sort ?: hse->se->se_cmp; in __sort__hpp_sort()
2022 struct hpp_sort_entry *hse; \
2027 hse = container_of(fmt, struct hpp_sort_entry, hpp); \
2028 return hse->se == &sort_ ## key ; \
2056 struct hpp_sort_entry *hse; in hse_free() local
2058 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_free()
2059 free(hse); in hse_free()
2065 struct hpp_sort_entry *hse; in __sort_dimension__alloc_hpp() local
2067 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
2068 if (hse == NULL) { in __sort_dimension__alloc_hpp()
2073 hse->se = sd->entry; in __sort_dimension__alloc_hpp()
2074 hse->hpp.name = sd->entry->se_header; in __sort_dimension__alloc_hpp()
2075 hse->hpp.header = __sort__hpp_header; in __sort_dimension__alloc_hpp()
2076 hse->hpp.width = __sort__hpp_width; in __sort_dimension__alloc_hpp()
2077 hse->hpp.entry = __sort__hpp_entry; in __sort_dimension__alloc_hpp()
2078 hse->hpp.color = NULL; in __sort_dimension__alloc_hpp()
2080 hse->hpp.cmp = __sort__hpp_cmp; in __sort_dimension__alloc_hpp()
2081 hse->hpp.collapse = __sort__hpp_collapse; in __sort_dimension__alloc_hpp()
2082 hse->hpp.sort = __sort__hpp_sort; in __sort_dimension__alloc_hpp()
2083 hse->hpp.equal = __sort__hpp_equal; in __sort_dimension__alloc_hpp()
2084 hse->hpp.free = hse_free; in __sort_dimension__alloc_hpp()
2086 INIT_LIST_HEAD(&hse->hpp.list); in __sort_dimension__alloc_hpp()
2087 INIT_LIST_HEAD(&hse->hpp.sort_list); in __sort_dimension__alloc_hpp()
2088 hse->hpp.elide = false; in __sort_dimension__alloc_hpp()
2089 hse->hpp.len = 0; in __sort_dimension__alloc_hpp()
2090 hse->hpp.user_len = 0; in __sort_dimension__alloc_hpp()
2091 hse->hpp.level = level; in __sort_dimension__alloc_hpp()
2093 return hse; in __sort_dimension__alloc_hpp()
2120 struct hpp_sort_entry *hse; in hist_entry__filter() local
2128 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hist_entry__filter()
2129 if (hse->se->se_filter == NULL) in hist_entry__filter()
2136 r = hse->se->se_filter(he, type, arg); in hist_entry__filter()
2151 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, level); in __sort_dimension__add_hpp_sort() local
2153 if (hse == NULL) in __sort_dimension__add_hpp_sort()
2156 perf_hpp_list__register_sort_field(list, &hse->hpp); in __sort_dimension__add_hpp_sort()
2163 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, 0); in __sort_dimension__add_hpp_output() local
2165 if (hse == NULL) in __sort_dimension__add_hpp_output()
2168 perf_hpp_list__column_register(list, &hse->hpp); in __sort_dimension__add_hpp_output()
2450 struct hpp_sort_entry *hse, *new_hse; in perf_hpp_fmt__dup() local
2452 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp_fmt__dup()
2453 new_hse = memdup(hse, sizeof(*hse)); in perf_hpp_fmt__dup()
3061 struct hpp_sort_entry *hse; in perf_hpp__set_elide() local
3067 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__set_elide()
3068 if (hse->se->se_width_idx == idx) { in perf_hpp__set_elide()
3121 struct hpp_sort_entry *hse; in sort__setup_elide() local
3127 hse = container_of(fmt, struct hpp_sort_entry, hpp); in sort__setup_elide()
3128 fmt->elide = get_elide(hse->se->se_width_idx, output); in sort__setup_elide()