Lines Matching refs:hse
2215 struct hpp_sort_entry *hse; in perf_hpp__reset_sort_width() local
2220 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
2221 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
2228 struct hpp_sort_entry *hse; in __sort__hpp_header() local
2231 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
2234 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header()
2243 struct hpp_sort_entry *hse; in __sort__hpp_width() local
2246 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
2249 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width()
2257 struct hpp_sort_entry *hse; in __sort__hpp_entry() local
2260 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
2263 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
2265 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
2271 struct hpp_sort_entry *hse; in __sort__hpp_cmp() local
2273 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_cmp()
2274 return hse->se->se_cmp(a, b); in __sort__hpp_cmp()
2280 struct hpp_sort_entry *hse; in __sort__hpp_collapse() local
2283 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_collapse()
2284 collapse_fn = hse->se->se_collapse ?: hse->se->se_cmp; in __sort__hpp_collapse()
2291 struct hpp_sort_entry *hse; in __sort__hpp_sort() local
2294 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_sort()
2295 sort_fn = hse->se->se_sort ?: hse->se->se_cmp; in __sort__hpp_sort()
2307 struct hpp_sort_entry *hse; \
2312 hse = container_of(fmt, struct hpp_sort_entry, hpp); \
2313 return hse->se == &sort_ ## key ; \
2348 struct hpp_sort_entry *hse; in hse_free() local
2350 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_free()
2351 free(hse); in hse_free()
2356 struct hpp_sort_entry *hse; in hse_init() local
2361 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hse_init()
2363 if (hse->se->se_init) in hse_init()
2364 hse->se->se_init(he); in hse_init()
2370 struct hpp_sort_entry *hse; in __sort_dimension__alloc_hpp() local
2372 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
2373 if (hse == NULL) { in __sort_dimension__alloc_hpp()
2378 hse->se = sd->entry; in __sort_dimension__alloc_hpp()
2379 hse->hpp.name = sd->entry->se_header; in __sort_dimension__alloc_hpp()
2380 hse->hpp.header = __sort__hpp_header; in __sort_dimension__alloc_hpp()
2381 hse->hpp.width = __sort__hpp_width; in __sort_dimension__alloc_hpp()
2382 hse->hpp.entry = __sort__hpp_entry; in __sort_dimension__alloc_hpp()
2383 hse->hpp.color = NULL; in __sort_dimension__alloc_hpp()
2385 hse->hpp.cmp = __sort__hpp_cmp; in __sort_dimension__alloc_hpp()
2386 hse->hpp.collapse = __sort__hpp_collapse; in __sort_dimension__alloc_hpp()
2387 hse->hpp.sort = __sort__hpp_sort; in __sort_dimension__alloc_hpp()
2388 hse->hpp.equal = __sort__hpp_equal; in __sort_dimension__alloc_hpp()
2389 hse->hpp.free = hse_free; in __sort_dimension__alloc_hpp()
2390 hse->hpp.init = hse_init; in __sort_dimension__alloc_hpp()
2392 INIT_LIST_HEAD(&hse->hpp.list); in __sort_dimension__alloc_hpp()
2393 INIT_LIST_HEAD(&hse->hpp.sort_list); in __sort_dimension__alloc_hpp()
2394 hse->hpp.elide = false; in __sort_dimension__alloc_hpp()
2395 hse->hpp.len = 0; in __sort_dimension__alloc_hpp()
2396 hse->hpp.user_len = 0; in __sort_dimension__alloc_hpp()
2397 hse->hpp.level = level; in __sort_dimension__alloc_hpp()
2399 return hse; in __sort_dimension__alloc_hpp()
2426 struct hpp_sort_entry *hse; in hist_entry__filter() local
2434 hse = container_of(fmt, struct hpp_sort_entry, hpp); in hist_entry__filter()
2435 if (hse->se->se_filter == NULL) in hist_entry__filter()
2442 r = hse->se->se_filter(he, type, arg); in hist_entry__filter()
2457 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, level); in __sort_dimension__add_hpp_sort() local
2459 if (hse == NULL) in __sort_dimension__add_hpp_sort()
2462 perf_hpp_list__register_sort_field(list, &hse->hpp); in __sort_dimension__add_hpp_sort()
2469 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, 0); in __sort_dimension__add_hpp_output() local
2471 if (hse == NULL) in __sort_dimension__add_hpp_output()
2474 perf_hpp_list__column_register(list, &hse->hpp); in __sort_dimension__add_hpp_output()
2776 struct hpp_sort_entry *hse, *new_hse; in perf_hpp_fmt__dup() local
2778 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp_fmt__dup()
2779 new_hse = memdup(hse, sizeof(*hse)); in perf_hpp_fmt__dup()
3410 struct hpp_sort_entry *hse; in perf_hpp__set_elide() local
3416 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__set_elide()
3417 if (hse->se->se_width_idx == idx) { in perf_hpp__set_elide()
3474 struct hpp_sort_entry *hse; in sort__setup_elide() local
3480 hse = container_of(fmt, struct hpp_sort_entry, hpp); in sort__setup_elide()
3481 fmt->elide = get_elide(hse->se->se_width_idx, output); in sort__setup_elide()