Lines Matching refs:hse
1255 struct hpp_sort_entry *hse; in perf_hpp__reset_sort_width() local
1260 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__reset_sort_width()
1261 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
1267 struct hpp_sort_entry *hse; in __sort__hpp_header() local
1270 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_header()
1273 len = hists__col_len(evsel__hists(evsel), hse->se->se_width_idx); in __sort__hpp_header()
1282 struct hpp_sort_entry *hse; in __sort__hpp_width() local
1285 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_width()
1288 len = hists__col_len(evsel__hists(evsel), hse->se->se_width_idx); in __sort__hpp_width()
1296 struct hpp_sort_entry *hse; in __sort__hpp_entry() local
1299 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_entry()
1302 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
1304 return hse->se->se_snprintf(he, hpp->buf, hpp->size, len); in __sort__hpp_entry()
1310 struct hpp_sort_entry *hse; in __sort__hpp_cmp() local
1312 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_cmp()
1313 return hse->se->se_cmp(a, b); in __sort__hpp_cmp()
1319 struct hpp_sort_entry *hse; in __sort__hpp_collapse() local
1322 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_collapse()
1323 collapse_fn = hse->se->se_collapse ?: hse->se->se_cmp; in __sort__hpp_collapse()
1330 struct hpp_sort_entry *hse; in __sort__hpp_sort() local
1333 hse = container_of(fmt, struct hpp_sort_entry, hpp); in __sort__hpp_sort()
1334 sort_fn = hse->se->se_sort ?: hse->se->se_cmp; in __sort__hpp_sort()
1341 struct hpp_sort_entry *hse; in __sort_dimension__alloc_hpp() local
1343 hse = malloc(sizeof(*hse)); in __sort_dimension__alloc_hpp()
1344 if (hse == NULL) { in __sort_dimension__alloc_hpp()
1349 hse->se = sd->entry; in __sort_dimension__alloc_hpp()
1350 hse->hpp.name = sd->entry->se_header; in __sort_dimension__alloc_hpp()
1351 hse->hpp.header = __sort__hpp_header; in __sort_dimension__alloc_hpp()
1352 hse->hpp.width = __sort__hpp_width; in __sort_dimension__alloc_hpp()
1353 hse->hpp.entry = __sort__hpp_entry; in __sort_dimension__alloc_hpp()
1354 hse->hpp.color = NULL; in __sort_dimension__alloc_hpp()
1356 hse->hpp.cmp = __sort__hpp_cmp; in __sort_dimension__alloc_hpp()
1357 hse->hpp.collapse = __sort__hpp_collapse; in __sort_dimension__alloc_hpp()
1358 hse->hpp.sort = __sort__hpp_sort; in __sort_dimension__alloc_hpp()
1360 INIT_LIST_HEAD(&hse->hpp.list); in __sort_dimension__alloc_hpp()
1361 INIT_LIST_HEAD(&hse->hpp.sort_list); in __sort_dimension__alloc_hpp()
1362 hse->hpp.elide = false; in __sort_dimension__alloc_hpp()
1363 hse->hpp.len = 0; in __sort_dimension__alloc_hpp()
1364 hse->hpp.user_len = 0; in __sort_dimension__alloc_hpp()
1366 return hse; in __sort_dimension__alloc_hpp()
1376 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd); in __sort_dimension__add_hpp_sort() local
1378 if (hse == NULL) in __sort_dimension__add_hpp_sort()
1381 perf_hpp__register_sort_field(&hse->hpp); in __sort_dimension__add_hpp_sort()
1387 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd); in __sort_dimension__add_hpp_output() local
1389 if (hse == NULL) in __sort_dimension__add_hpp_output()
1392 perf_hpp__column_register(&hse->hpp); in __sort_dimension__add_hpp_output()
1619 struct hpp_sort_entry *hse; in perf_hpp__set_elide() local
1625 hse = container_of(fmt, struct hpp_sort_entry, hpp); in perf_hpp__set_elide()
1626 if (hse->se->se_width_idx == idx) { in perf_hpp__set_elide()
1679 struct hpp_sort_entry *hse; in sort__setup_elide() local
1685 hse = container_of(fmt, struct hpp_sort_entry, hpp); in sort__setup_elide()
1686 fmt->elide = get_elide(hse->se->se_width_idx, output); in sort__setup_elide()