Lines Matching refs:hist_entry
35 static int64_t hist_entry__cmp(struct hist_entry *left, struct hist_entry *right);
36 static int64_t hist_entry__collapse(struct hist_entry *left, struct hist_entry *right);
39 struct hist_entry *he);
41 struct hist_entry *he);
43 struct hist_entry *he);
45 struct hist_entry *he);
47 struct hist_entry *he);
86 void hists__calc_col_len(struct hists *hists, struct hist_entry *h) in hists__calc_col_len()
266 struct hist_entry *n; in hists__output_recalc_col_len()
272 n = rb_entry(next, struct hist_entry, rb_node); in hists__output_recalc_col_len()
339 static int hists__update_mem_stat(struct hists *hists, struct hist_entry *he, in hists__update_mem_stat()
362 static void hists__add_mem_stat(struct hists *hists, struct hist_entry *dst, in hists__add_mem_stat()
363 struct hist_entry *src) in hists__add_mem_stat()
374 static int hists__clone_mem_stat(struct hists *hists, struct hist_entry *dst, in hists__clone_mem_stat()
375 struct hist_entry *src) in hists__clone_mem_stat()
391 static void hists__decay_mem_stat(struct hists *hists, struct hist_entry *he) in hists__decay_mem_stat()
402 static void hists__delete_entry(struct hists *hists, struct hist_entry *he);
404 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry()
431 struct hist_entry *child; in hists__decay_entry()
434 child = rb_entry(node, struct hist_entry, rb_node); in hists__decay_entry()
445 static void hists__delete_entry(struct hists *hists, struct hist_entry *he) in hists__delete_entry()
474 struct hist_entry *n; in hists__decay_entries()
477 n = rb_entry(next, struct hist_entry, rb_node); in hists__decay_entries()
490 struct hist_entry *n; in hists__delete_entries()
493 n = rb_entry(next, struct hist_entry, rb_node); in hists__delete_entries()
500 struct hist_entry *hists__get_entry(struct hists *hists, int idx) in hists__get_entry()
503 struct hist_entry *n; in hists__get_entry()
507 n = rb_entry(next, struct hist_entry, rb_node); in hists__get_entry()
522 static int hist_entry__init(struct hist_entry *he, in hist_entry__init()
523 struct hist_entry *template, in hist_entry__init()
621 return zalloc(size + sizeof(struct hist_entry)); in hist_entry__zalloc()
634 static struct hist_entry *hist_entry__new(struct hist_entry *template, in hist_entry__new()
639 struct hist_entry *he; in hist_entry__new()
666 static void hist_entry__add_callchain_period(struct hist_entry *he, u64 period, u64 latency) in hist_entry__add_callchain_period()
679 static struct hist_entry *hists__findnew_entry(struct hists *hists, in hists__findnew_entry()
680 struct hist_entry *entry, in hists__findnew_entry()
686 struct hist_entry *he; in hists__findnew_entry()
696 he = rb_entry(parent, struct hist_entry, rb_node_in); in hists__findnew_entry()
775 static void hists__res_sample(struct hist_entry *he, struct perf_sample *sample) in hists__res_sample()
791 static struct hist_entry*
804 struct hist_entry entry = { in __hists__add_entry()
858 struct hist_entry *hists__add_entry(struct hists *hists, in hists__add_entry()
871 struct hist_entry *hists__add_entry_ops(struct hists *hists, in hists__add_entry_ops()
885 struct hist_entry *hists__add_entry_block(struct hists *hists, in hists__add_entry_block()
889 struct hist_entry entry = { in hists__add_entry_block()
937 struct hist_entry *he; in iter_add_single_mem_entry()
970 struct hist_entry *he = iter->he; in iter_finish_mem_entry()
1039 struct hist_entry *he = NULL; in iter_add_next_branch_entry()
1105 struct hist_entry *he; in iter_add_single_normal_entry()
1120 struct hist_entry *he = iter->he; in iter_finish_normal_entry()
1138 struct hist_entry **he_cache; in iter_prepare_cumulative_entry()
1168 struct hist_entry **he_cache = iter->he_cache; in iter_add_single_cumulative_entry()
1169 struct hist_entry *he; in iter_add_single_cumulative_entry()
1207 hist_entry__fast__sym_diff(struct hist_entry *left, in hist_entry__fast__sym_diff()
1208 struct hist_entry *right) in hist_entry__fast__sym_diff()
1226 struct hist_entry **he_cache = iter->he_cache; in iter_add_next_cumulative_entry()
1227 struct hist_entry *he; in iter_add_next_cumulative_entry()
1228 struct hist_entry he_tmp = { in iter_add_next_cumulative_entry()
1385 hist_entry__cmp_impl(struct perf_hpp_list *hpp_list, struct hist_entry *left, in hist_entry__cmp_impl()
1386 struct hist_entry *right, unsigned long fn_offset, in hist_entry__cmp_impl()
1421 hist_entry__cmp(struct hist_entry *left, struct hist_entry *right) in hist_entry__cmp()
1428 hist_entry__sort(struct hist_entry *left, struct hist_entry *right) in hist_entry__sort()
1435 hist_entry__collapse(struct hist_entry *left, struct hist_entry *right) in hist_entry__collapse()
1443 struct hist_entry *left, in hist_entry__collapse_hierarchy()
1444 struct hist_entry *right) in hist_entry__collapse_hierarchy()
1450 void hist_entry__delete(struct hist_entry *he) in hist_entry__delete()
1456 struct hist_entry *child, *tmp; in hist_entry__delete()
1503 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp, in hist_entry__snprintf_alignment()
1521 static void hists__apply_filters(struct hists *hists, struct hist_entry *he);
1522 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *he,
1532 static void hist_entry__check_and_remove_filter(struct hist_entry *he, in hist_entry__check_and_remove_filter()
1538 struct hist_entry *parent = he->parent_he; in hist_entry__check_and_remove_filter()
1606 static void hist_entry__apply_hierarchy_filters(struct hist_entry *he) in hist_entry__apply_hierarchy_filters()
1623 static struct hist_entry *hierarchy_insert_entry(struct hists *hists, in hierarchy_insert_entry()
1625 struct hist_entry *he, in hierarchy_insert_entry()
1626 struct hist_entry *parent_he, in hierarchy_insert_entry()
1631 struct hist_entry *iter, *new; in hierarchy_insert_entry()
1638 iter = rb_entry(parent, struct hist_entry, rb_node_in); in hierarchy_insert_entry()
1696 struct hist_entry *he) in hists__hierarchy_insert_entry()
1699 struct hist_entry *new_he = NULL; in hists__hierarchy_insert_entry()
1700 struct hist_entry *parent = NULL; in hists__hierarchy_insert_entry()
1748 struct hist_entry *he) in hists__collapse_insert_entry()
1752 struct hist_entry *iter; in hists__collapse_insert_entry()
1761 iter = rb_entry(parent, struct hist_entry, rb_node_in); in hists__collapse_insert_entry()
1817 static void hists__apply_filters(struct hists *hists, struct hist_entry *he) in hists__apply_filters()
1830 struct hist_entry *n; in hists__collapse_resort()
1845 n = rb_entry(next, struct hist_entry, rb_node_in); in hists__collapse_resort()
1883 static void hists__inc_filter_stats(struct hists *hists, struct hist_entry *h) in hists__inc_filter_stats()
1890 void hists__inc_stats(struct hists *hists, struct hist_entry *h) in hists__inc_stats()
1903 struct hist_entry *he; in hierarchy_recalc_total_periods()
1918 he = rb_entry(node, struct hist_entry, rb_node); in hierarchy_recalc_total_periods()
1931 struct hist_entry *he) in hierarchy_insert_output_entry()
1935 struct hist_entry *iter; in hierarchy_insert_output_entry()
1941 iter = rb_entry(parent, struct hist_entry, rb_node); in hierarchy_insert_output_entry()
1969 struct hist_entry *he; in hists__hierarchy_output_resort()
1975 he = rb_entry(node, struct hist_entry, rb_node_in); in hists__hierarchy_output_resort()
2016 struct hist_entry *he, in __hists__insert_output_entry()
2022 struct hist_entry *iter; in __hists__insert_output_entry()
2041 iter = rb_entry(parent, struct hist_entry, rb_node); in __hists__insert_output_entry()
2067 struct hist_entry *n; in output_resort()
2099 n = rb_entry(next, struct hist_entry, rb_node_in); in output_resort()
2147 static bool can_goto_child(struct hist_entry *he, enum hierarchy_move_dir hmd) in can_goto_child()
2160 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_last()
2164 he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_last()
2171 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in __rb_hierarchy_next()
2190 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_prev()
2203 bool hist_entry__has_hierarchy_children(struct hist_entry *he, float limit) in hist_entry__has_hierarchy_children()
2206 struct hist_entry *child; in hist_entry__has_hierarchy_children()
2213 child = rb_entry(node, struct hist_entry, rb_node); in hist_entry__has_hierarchy_children()
2217 child = rb_entry(node, struct hist_entry, rb_node); in hist_entry__has_hierarchy_children()
2228 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, in hists__remove_entry_filter()
2234 struct hist_entry *parent = h->parent_he; in hists__remove_entry_filter()
2271 struct hist_entry *he) in hists__filter_entry_by_dso()
2283 struct hist_entry *he) in hists__filter_entry_by_thread()
2295 struct hist_entry *he) in hists__filter_entry_by_symbol()
2308 struct hist_entry *he) in hists__filter_entry_by_socket()
2320 struct hist_entry *he) in hists__filter_entry_by_parallelism()
2329 typedef bool (*filter_fn_t)(struct hists *hists, struct hist_entry *he);
2341 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_type()
2351 struct hist_entry *he) in resort_filtered_entry()
2355 struct hist_entry *iter; in resort_filtered_entry()
2362 iter = rb_entry(parent, struct hist_entry, rb_node); in resort_filtered_entry()
2380 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in resort_filtered_entry()
2403 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_hierarchy()
2447 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_hierarchy()
2541 static struct hist_entry *hists__add_dummy_entry(struct hists *hists, in hists__add_dummy_entry()
2542 struct hist_entry *pair) in hists__add_dummy_entry()
2547 struct hist_entry *he; in hists__add_dummy_entry()
2560 he = rb_entry(parent, struct hist_entry, rb_node_in); in hists__add_dummy_entry()
2590 static struct hist_entry *add_dummy_hierarchy_entry(struct hists *hists, in add_dummy_hierarchy_entry()
2592 struct hist_entry *pair) in add_dummy_hierarchy_entry()
2596 struct hist_entry *he; in add_dummy_hierarchy_entry()
2604 he = rb_entry(parent, struct hist_entry, rb_node_in); in add_dummy_hierarchy_entry()
2631 static struct hist_entry *hists__find_entry(struct hists *hists, in hists__find_entry()
2632 struct hist_entry *he) in hists__find_entry()
2642 struct hist_entry *iter = rb_entry(n, struct hist_entry, rb_node_in); in hists__find_entry()
2656 static struct hist_entry *hists__find_hierarchy_entry(struct rb_root_cached *root, in hists__find_hierarchy_entry()
2657 struct hist_entry *he) in hists__find_hierarchy_entry()
2662 struct hist_entry *iter; in hists__find_hierarchy_entry()
2665 iter = rb_entry(n, struct hist_entry, rb_node_in); in hists__find_hierarchy_entry()
2682 struct hist_entry *pos, *pair; in hists__match_hierarchy()
2685 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__match_hierarchy()
2702 struct hist_entry *pos, *pair; in hists__match()
2716 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__match()
2725 struct hist_entry *parent, in hists__link_hierarchy()
2730 struct hist_entry *pos, *leader; in hists__link_hierarchy()
2733 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__link_hierarchy()
2777 struct hist_entry *pos, *pair; in hists__link()
2792 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__link()
2809 struct hist_entry *pos; in hists__unlink()
2817 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__unlink()
3029 struct hist_entry *he; in hists__delete_remaining_entries()
3035 he = rb_entry(node, struct hist_entry, rb_node_in); in hists__delete_remaining_entries()