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()
623 return zalloc(size + sizeof(struct hist_entry)); in hist_entry__zalloc()
636 static struct hist_entry *hist_entry__new(struct hist_entry *template, in hist_entry__new()
641 struct hist_entry *he; in hist_entry__new()
668 static void hist_entry__add_callchain_period(struct hist_entry *he, u64 period, u64 latency) in hist_entry__add_callchain_period()
681 static struct hist_entry *hists__findnew_entry(struct hists *hists, in hists__findnew_entry()
682 struct hist_entry *entry, in hists__findnew_entry()
688 struct hist_entry *he; in hists__findnew_entry()
698 he = rb_entry(parent, struct hist_entry, rb_node_in); in hists__findnew_entry()
777 static void hists__res_sample(struct hist_entry *he, struct perf_sample *sample) in hists__res_sample()
793 static struct hist_entry*
806 struct hist_entry entry = { in __hists__add_entry()
860 struct hist_entry *hists__add_entry(struct hists *hists, in hists__add_entry()
873 struct hist_entry *hists__add_entry_ops(struct hists *hists, in hists__add_entry_ops()
887 struct hist_entry *hists__add_entry_block(struct hists *hists, in hists__add_entry_block()
891 struct hist_entry entry = { in hists__add_entry_block()
939 struct hist_entry *he; in iter_add_single_mem_entry()
972 struct hist_entry *he = iter->he; in iter_finish_mem_entry()
1041 struct hist_entry *he = NULL; in iter_add_next_branch_entry()
1107 struct hist_entry *he; in iter_add_single_normal_entry()
1122 struct hist_entry *he = iter->he; in iter_finish_normal_entry()
1140 struct hist_entry **he_cache; in iter_prepare_cumulative_entry()
1170 struct hist_entry **he_cache = iter->he_cache; in iter_add_single_cumulative_entry()
1171 struct hist_entry *he; in iter_add_single_cumulative_entry()
1209 hist_entry__fast__sym_diff(struct hist_entry *left, in hist_entry__fast__sym_diff()
1210 struct hist_entry *right) in hist_entry__fast__sym_diff()
1228 struct hist_entry **he_cache = iter->he_cache; in iter_add_next_cumulative_entry()
1229 struct hist_entry *he; in iter_add_next_cumulative_entry()
1230 struct hist_entry he_tmp = { in iter_add_next_cumulative_entry()
1387 hist_entry__cmp_impl(struct perf_hpp_list *hpp_list, struct hist_entry *left, in hist_entry__cmp_impl()
1388 struct hist_entry *right, unsigned long fn_offset, in hist_entry__cmp_impl()
1423 hist_entry__cmp(struct hist_entry *left, struct hist_entry *right) in hist_entry__cmp()
1430 hist_entry__sort(struct hist_entry *left, struct hist_entry *right) in hist_entry__sort()
1437 hist_entry__collapse(struct hist_entry *left, struct hist_entry *right) in hist_entry__collapse()
1445 struct hist_entry *left, in hist_entry__collapse_hierarchy()
1446 struct hist_entry *right) in hist_entry__collapse_hierarchy()
1452 void hist_entry__delete(struct hist_entry *he) in hist_entry__delete()
1458 struct hist_entry *child, *tmp; in hist_entry__delete()
1505 int hist_entry__snprintf_alignment(struct hist_entry *he, struct perf_hpp *hpp, in hist_entry__snprintf_alignment()
1523 static void hists__apply_filters(struct hists *hists, struct hist_entry *he);
1524 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *he,
1534 static void hist_entry__check_and_remove_filter(struct hist_entry *he, in hist_entry__check_and_remove_filter()
1540 struct hist_entry *parent = he->parent_he; in hist_entry__check_and_remove_filter()
1608 static void hist_entry__apply_hierarchy_filters(struct hist_entry *he) in hist_entry__apply_hierarchy_filters()
1625 static struct hist_entry *hierarchy_insert_entry(struct hists *hists, in hierarchy_insert_entry()
1627 struct hist_entry *he, in hierarchy_insert_entry()
1628 struct hist_entry *parent_he, in hierarchy_insert_entry()
1633 struct hist_entry *iter, *new; in hierarchy_insert_entry()
1640 iter = rb_entry(parent, struct hist_entry, rb_node_in); in hierarchy_insert_entry()
1698 struct hist_entry *he) in hists__hierarchy_insert_entry()
1701 struct hist_entry *new_he = NULL; in hists__hierarchy_insert_entry()
1702 struct hist_entry *parent = NULL; in hists__hierarchy_insert_entry()
1750 struct hist_entry *he) in hists__collapse_insert_entry()
1754 struct hist_entry *iter; in hists__collapse_insert_entry()
1763 iter = rb_entry(parent, struct hist_entry, rb_node_in); in hists__collapse_insert_entry()
1819 static void hists__apply_filters(struct hists *hists, struct hist_entry *he) in hists__apply_filters()
1832 struct hist_entry *n; in hists__collapse_resort()
1847 n = rb_entry(next, struct hist_entry, rb_node_in); in hists__collapse_resort()
1885 static void hists__inc_filter_stats(struct hists *hists, struct hist_entry *h) in hists__inc_filter_stats()
1892 void hists__inc_stats(struct hists *hists, struct hist_entry *h) in hists__inc_stats()
1905 struct hist_entry *he; in hierarchy_recalc_total_periods()
1920 he = rb_entry(node, struct hist_entry, rb_node); in hierarchy_recalc_total_periods()
1933 struct hist_entry *he) in hierarchy_insert_output_entry()
1937 struct hist_entry *iter; in hierarchy_insert_output_entry()
1943 iter = rb_entry(parent, struct hist_entry, rb_node); in hierarchy_insert_output_entry()
1971 struct hist_entry *he; in hists__hierarchy_output_resort()
1977 he = rb_entry(node, struct hist_entry, rb_node_in); in hists__hierarchy_output_resort()
2018 struct hist_entry *he, in __hists__insert_output_entry()
2024 struct hist_entry *iter; in __hists__insert_output_entry()
2043 iter = rb_entry(parent, struct hist_entry, rb_node); in __hists__insert_output_entry()
2069 struct hist_entry *n; in output_resort()
2101 n = rb_entry(next, struct hist_entry, rb_node_in); in output_resort()
2149 static bool can_goto_child(struct hist_entry *he, enum hierarchy_move_dir hmd) in can_goto_child()
2162 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_last()
2166 he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_last()
2173 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in __rb_hierarchy_next()
2192 struct hist_entry *he = rb_entry(node, struct hist_entry, rb_node); in rb_hierarchy_prev()
2205 bool hist_entry__has_hierarchy_children(struct hist_entry *he, float limit) in hist_entry__has_hierarchy_children()
2208 struct hist_entry *child; in hist_entry__has_hierarchy_children()
2215 child = rb_entry(node, struct hist_entry, rb_node); in hist_entry__has_hierarchy_children()
2219 child = rb_entry(node, struct hist_entry, rb_node); in hist_entry__has_hierarchy_children()
2230 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, in hists__remove_entry_filter()
2236 struct hist_entry *parent = h->parent_he; in hists__remove_entry_filter()
2273 struct hist_entry *he) in hists__filter_entry_by_dso()
2285 struct hist_entry *he) in hists__filter_entry_by_thread()
2297 struct hist_entry *he) in hists__filter_entry_by_symbol()
2310 struct hist_entry *he) in hists__filter_entry_by_socket()
2322 struct hist_entry *he) in hists__filter_entry_by_parallelism()
2331 typedef bool (*filter_fn_t)(struct hists *hists, struct hist_entry *he);
2343 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_by_type()
2353 struct hist_entry *he) in resort_filtered_entry()
2357 struct hist_entry *iter; in resort_filtered_entry()
2364 iter = rb_entry(parent, struct hist_entry, rb_node); in resort_filtered_entry()
2382 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in resort_filtered_entry()
2405 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_hierarchy()
2449 struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); in hists__filter_hierarchy()
2543 static struct hist_entry *hists__add_dummy_entry(struct hists *hists, in hists__add_dummy_entry()
2544 struct hist_entry *pair) in hists__add_dummy_entry()
2549 struct hist_entry *he; in hists__add_dummy_entry()
2562 he = rb_entry(parent, struct hist_entry, rb_node_in); in hists__add_dummy_entry()
2592 static struct hist_entry *add_dummy_hierarchy_entry(struct hists *hists, in add_dummy_hierarchy_entry()
2594 struct hist_entry *pair) in add_dummy_hierarchy_entry()
2598 struct hist_entry *he; in add_dummy_hierarchy_entry()
2606 he = rb_entry(parent, struct hist_entry, rb_node_in); in add_dummy_hierarchy_entry()
2633 static struct hist_entry *hists__find_entry(struct hists *hists, in hists__find_entry()
2634 struct hist_entry *he) in hists__find_entry()
2644 struct hist_entry *iter = rb_entry(n, struct hist_entry, rb_node_in); in hists__find_entry()
2658 static struct hist_entry *hists__find_hierarchy_entry(struct rb_root_cached *root, in hists__find_hierarchy_entry()
2659 struct hist_entry *he) in hists__find_hierarchy_entry()
2664 struct hist_entry *iter; in hists__find_hierarchy_entry()
2667 iter = rb_entry(n, struct hist_entry, rb_node_in); in hists__find_hierarchy_entry()
2684 struct hist_entry *pos, *pair; in hists__match_hierarchy()
2687 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__match_hierarchy()
2704 struct hist_entry *pos, *pair; in hists__match()
2718 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__match()
2727 struct hist_entry *parent, in hists__link_hierarchy()
2732 struct hist_entry *pos, *leader; in hists__link_hierarchy()
2735 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__link_hierarchy()
2779 struct hist_entry *pos, *pair; in hists__link()
2794 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__link()
2811 struct hist_entry *pos; in hists__unlink()
2819 pos = rb_entry(nd, struct hist_entry, rb_node_in); in hists__unlink()
3031 struct hist_entry *he; in hists__delete_remaining_entries()
3037 he = rb_entry(node, struct hist_entry, rb_node_in); in hists__delete_remaining_entries()