Lines Matching refs:hist_entry
36 struct hist_entry *he);
38 struct hist_entry *he);
40 struct hist_entry *he);
42 struct hist_entry *he);
81 void hists__calc_col_len(struct hists *hists, struct hist_entry *h) in hists__calc_col_len()
257 struct hist_entry *n; in hists__output_recalc_col_len()
263 n = rb_entry(next, struct hist_entry, rb_node); in hists__output_recalc_col_len()
327 static void hists__delete_entry(struct hists *hists, struct hist_entry *he);
329 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry()
351 struct hist_entry *child; in hists__decay_entry()
354 child = rb_entry(node, struct hist_entry, rb_node); in hists__decay_entry()
365 static void hists__delete_entry(struct hists *hists, struct hist_entry *he) in hists__delete_entry()
394 struct hist_entry *n; in hists__decay_entries()
397 n = rb_entry(next, struct hist_entry, rb_node); in hists__decay_entries()
410 struct hist_entry *n; in hists__delete_entries()
413 n = rb_entry(next, struct hist_entry, rb_node); in hists__delete_entries()
420 struct hist_entry *hists__get_entry(struct hists *hists, int idx) in hists__get_entry()
423 struct hist_entry *n; in hists__get_entry()
427 n = rb_entry(next, struct hist_entry, rb_node); in hists__get_entry()
442 static int hist_entry__init(struct hist_entry *he, in hist_entry__init()
443 struct hist_entry *template, in hist_entry__init()
543 return zalloc(size + sizeof(struct hist_entry)); in hist_entry__zalloc()
556 static struct hist_entry *hist_entry__new(struct hist_entry *template, in hist_entry__new()
561 struct hist_entry *he; in hist_entry__new()
588 static void hist_entry__add_callchain_period(struct hist_entry *he, u64 period) in hist_entry__add_callchain_period()
598 static struct hist_entry *hists__findnew_entry(struct hists *hists, in hists__findnew_entry()
599 struct hist_entry *entry, in hists__findnew_entry()
605 struct hist_entry *he; in hists__findnew_entry()
614 he = rb_entry(parent, struct hist_entry, rb_node_in); in hists__findnew_entry()
689 static void hists__res_sample(struct hist_entry *he, struct perf_sample *sample) in hists__res_sample()
705 static struct hist_entry*
718 struct hist_entry entry = { in __hists__add_entry()
770 struct hist_entry *hists__add_entry(struct hists *hists, in hists__add_entry()
783 struct hist_entry *hists__add_entry_ops(struct hists *hists, in hists__add_entry_ops()
797 struct hist_entry *hists__add_entry_block(struct hists *hists, in hists__add_entry_block()
801 struct hist_entry entry = { in hists__add_entry_block()
849 struct hist_entry *he; in iter_add_single_mem_entry()
882 struct hist_entry *he = iter->he; in iter_finish_mem_entry()
951 struct hist_entry *he = NULL; in iter_add_next_branch_entry()
1013 struct hist_entry *he; in iter_add_single_normal_entry()
1028 struct hist_entry *he = iter->he; in iter_finish_normal_entry()
1046 struct hist_entry **he_cache; in iter_prepare_cumulative_entry()
1076 struct hist_entry **he_cache = iter->he_cache; in iter_add_single_cumulative_entry()
1077 struct hist_entry *he; in iter_add_single_cumulative_entry()
1115 hist_entry__fast__sym_diff(struct hist_entry *left, in hist_entry__fast__sym_diff()
1116 struct hist_entry *right) in hist_entry__fast__sym_diff()
1134 struct hist_entry **he_cache = iter->he_cache; in iter_add_next_cumulative_entry()
1135 struct hist_entry *he; in iter_add_next_cumulative_entry()
1136 struct hist_entry he_tmp = { in iter_add_next_cumulative_entry()
1293 hist_entry__cmp(struct hist_entry *left, struct hist_entry *right) in hist_entry__cmp()
1313 hist_entry__collapse(struct hist_entry *left, struct hist_entry *right) in hist_entry__collapse()
1332 void hist_entry__delete(struct hist_entry *he) in hist_entry__delete()
1374 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp, in hist_entry__snprintf_alignment()
1392 static void hists__apply_filters(struct hists *hists, struct hist_entry *he);
1393 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *he,
1403 static void hist_entry__check_and_remove_filter(struct hist_entry *he, in hist_entry__check_and_remove_filter()
1409 struct hist_entry *parent = he->parent_he; in hist_entry__check_and_remove_filter()
1473 static void hist_entry__apply_hierarchy_filters(struct hist_entry *he) in hist_entry__apply_hierarchy_filters()
1487 static struct hist_entry *hierarchy_insert_entry(struct hists *hists, in hierarchy_insert_entry()
1489 struct hist_entry *he, in hierarchy_insert_entry()
1490 struct hist_entry *parent_he, in hierarchy_insert_entry()
1495 struct hist_entry *iter, *new; in hierarchy_insert_entry()
1502 iter = rb_entry(parent, struct hist_entry, rb_node_in); in hierarchy_insert_entry()
1561 struct hist_entry *he) in hists__hierarchy_insert_entry()
1564 struct hist_entry *new_he = NULL; in hists__hierarchy_insert_entry()
1565 struct hist_entry *parent = NULL; in hists__hierarchy_insert_entry()
1613 struct hist_entry *he) in hists__collapse_insert_entry()
1617 struct hist_entry *iter; in hists__collapse_insert_entry()
1626 iter = rb_entry(parent, struct hist_entry, rb_node_in); in hists__collapse_insert_entry()
1681 static void hists__apply_filters(struct hists *hists, struct hist_entry *he) in hists__apply_filters()
1693 struct hist_entry *n; in hists__collapse_resort()
1708 n = rb_entry(next, struct hist_entry, rb_node_in); in hists__collapse_resort()
1730 static int64_t hist_entry__sort(struct hist_entry *a, struct hist_entry *b) in hist_entry__sort()
1762 static void hists__inc_filter_stats(struct hists *hists, struct hist_entry *h) in hists__inc_filter_stats()
1768 void hists__inc_stats(struct hists *hists, struct hist_entry *h) in hists__inc_stats()
1780 struct hist_entry *he; in hierarchy_recalc_total_periods()
1793 he = rb_entry(node, struct hist_entry, rb_node); in hierarchy_recalc_total_periods()
1803 struct hist_entry *he) in hierarchy_insert_output_entry()
1807 struct hist_entry *iter; in hierarchy_insert_output_entry()
1813 iter = rb_entry(parent, struct hist_entry, rb_node); in hierarchy_insert_output_entry()
1841 struct hist_entry *he; in hists__hierarchy_output_resort()
1847 he = rb_entry(node, struct hist_entry, rb_node_in); in hists__hierarchy_output_resort()
1888 struct hist_entry *he, in __hists__insert_output_entry()
1894 struct hist_entry *iter; in __hists__insert_output_entry()
1913 iter = rb_entry(parent, struct hist_entry, rb_node); in __hists__insert_output_entry()
1939 struct hist_entry *n; in output_resort()
1971 n = rb_entry(next, struct hist_entry, rb_node_in); in output_resort()
2019 static bool can_goto_child(struct hist_entry *he, enum hierarchy_move_dir hmd) in can_goto_child()
2032 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_last()
2036 he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_last()
2043 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in __rb_hierarchy_next()
2062 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_prev()
2075 bool hist_entry__has_hierarchy_children(struct hist_entry *he, float limit) in hist_entry__has_hierarchy_children()
2078 struct hist_entry *child; in hist_entry__has_hierarchy_children()
2085 child = rb_entry(node, struct hist_entry, rb_node); in hist_entry__has_hierarchy_children()
2089 child = rb_entry(node, struct hist_entry, rb_node); in hist_entry__has_hierarchy_children()
2100 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, in hists__remove_entry_filter()
2106 struct hist_entry *parent = h->parent_he; in hists__remove_entry_filter()
2143 struct hist_entry *he) in hists__filter_entry_by_dso()
2155 struct hist_entry *he) in hists__filter_entry_by_thread()
2167 struct hist_entry *he) in hists__filter_entry_by_symbol()
2180 struct hist_entry *he) in hists__filter_entry_by_socket()
2191 typedef bool (*filter_fn_t)(struct hists *hists, struct hist_entry *he);
2203 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_type()
2213 struct hist_entry *he) in resort_filtered_entry()
2217 struct hist_entry *iter; in resort_filtered_entry()
2224 iter = rb_entry(parent, struct hist_entry, rb_node); in resort_filtered_entry()
2242 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in resort_filtered_entry()
2265 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_hierarchy()
2309 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_hierarchy()
2393 static struct hist_entry *hists__add_dummy_entry(struct hists *hists, in hists__add_dummy_entry()
2394 struct hist_entry *pair) in hists__add_dummy_entry()
2399 struct hist_entry *he; in hists__add_dummy_entry()
2412 he = rb_entry(parent, struct hist_entry, rb_node_in); in hists__add_dummy_entry()
2442 static struct hist_entry *add_dummy_hierarchy_entry(struct hists *hists, in add_dummy_hierarchy_entry()
2444 struct hist_entry *pair) in add_dummy_hierarchy_entry()
2448 struct hist_entry *he; in add_dummy_hierarchy_entry()
2457 he = rb_entry(parent, struct hist_entry, rb_node_in); in add_dummy_hierarchy_entry()
2489 static struct hist_entry *hists__find_entry(struct hists *hists, in hists__find_entry()
2490 struct hist_entry *he) in hists__find_entry()
2500 struct hist_entry *iter = rb_entry(n, struct hist_entry, rb_node_in); in hists__find_entry()
2514 static struct hist_entry *hists__find_hierarchy_entry(struct rb_root_cached *root, in hists__find_hierarchy_entry()
2515 struct hist_entry *he) in hists__find_hierarchy_entry()
2520 struct hist_entry *iter; in hists__find_hierarchy_entry()
2524 iter = rb_entry(n, struct hist_entry, rb_node_in); in hists__find_hierarchy_entry()
2546 struct hist_entry *pos, *pair; in hists__match_hierarchy()
2549 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__match_hierarchy()
2566 struct hist_entry *pos, *pair; in hists__match()
2580 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__match()
2589 struct hist_entry *parent, in hists__link_hierarchy()
2594 struct hist_entry *pos, *leader; in hists__link_hierarchy()
2597 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__link_hierarchy()
2641 struct hist_entry *pos, *pair; in hists__link()
2656 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__link()
2673 struct hist_entry *pos; in hists__unlink()
2681 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__unlink()
2886 struct hist_entry *he; in hists__delete_remaining_entries()
2892 he = rb_entry(node, struct hist_entry, rb_node_in); in hists__delete_remaining_entries()