Lines Matching full:hb

52 static void hist_browser__update_nr_entries(struct hist_browser *hb);
57 static bool hist_browser__has_filter(struct hist_browser *hb) in hist_browser__has_filter() argument
59 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter()
80 static void hist_browser__set_title_space(struct hist_browser *hb) in hist_browser__set_title_space() argument
82 struct ui_browser *browser = &hb->b; in hist_browser__set_title_space()
83 struct hists *hists = hb->hists; in hist_browser__set_title_space()
86 browser->extra_title_lines = hb->show_headers ? hpp_list->nr_header_lines : 0; in hist_browser__set_title_space()
89 static u32 hist_browser__nr_entries(struct hist_browser *hb) in hist_browser__nr_entries() argument
94 nr_entries = hb->nr_hierarchy_entries; in hist_browser__nr_entries()
95 else if (hist_browser__has_filter(hb)) in hist_browser__nr_entries()
96 nr_entries = hb->nr_non_filtered_entries; in hist_browser__nr_entries()
98 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
100 hb->nr_callchain_rows = hist_browser__get_folding(hb); in hist_browser__nr_entries()
101 return nr_entries + hb->nr_callchain_rows; in hist_browser__nr_entries()
104 static void hist_browser__update_rows(struct hist_browser *hb) in hist_browser__update_rows() argument
106 struct ui_browser *browser = &hb->b; in hist_browser__update_rows()
107 struct hists *hists = hb->hists; in hist_browser__update_rows()
111 if (!hb->show_headers) { in hist_browser__update_rows()
130 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh_dimensions() local
133 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
273 static int hierarchy_count_rows(struct hist_browser *hb, struct hist_entry *he, in hierarchy_count_rows() argument
293 if (!child->filtered && percent >= hb->min_pcnt) { in hierarchy_count_rows()
297 count += hierarchy_count_rows(hb, child, true); in hierarchy_count_rows()
565 static int hierarchy_set_folding(struct hist_browser *hb, struct hist_entry *he, in hierarchy_set_folding() argument
576 if (!child->filtered && percent >= hb->min_pcnt) in hierarchy_set_folding()
584 struct hist_browser *hb, bool unfold) in hist_entry__set_folding() argument
595 n = hierarchy_set_folding(hb, he, unfold); in hist_entry__set_folding()
1815 struct hist_browser *hb; in ui_browser__hists_init_top() local
1817 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_init_top()
1818 browser->top = rb_first_cached(&hb->hists->entries); in ui_browser__hists_init_top()
1826 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh() local
1828 if (hb->show_headers) in hist_browser__refresh()
1829 hist_browser__show_headers(hb); in hist_browser__refresh()
1832 hb->he_selection = NULL; in hist_browser__refresh()
1833 hb->selection = NULL; in hist_browser__refresh()
1850 if (percent < hb->min_pcnt) in hist_browser__refresh()
1854 row += hist_browser__show_hierarchy_entry(hb, h, row, in hist_browser__refresh()
1860 hist_browser__show_no_entry(hb, row, h->depth + 1); in hist_browser__refresh()
1864 row += hist_browser__show_entry(hb, h, row); in hist_browser__refresh()
1919 struct hist_browser *hb; in ui_browser__hists_seek() local
1921 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_seek()
1931 hb->min_pcnt); in ui_browser__hists_seek()
1938 nd = hists__filter_prev_entries(nd, hb->min_pcnt); in ui_browser__hists_seek()
1985 hb->min_pcnt); in ui_browser__hists_seek()
2019 hb->min_pcnt); in ui_browser__hists_seek()
2914 static void hist_browser__update_nr_entries(struct hist_browser *hb) in hist_browser__update_nr_entries() argument
2917 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in hist_browser__update_nr_entries()
2919 if (hb->min_pcnt == 0 && !symbol_conf.report_hierarchy) { in hist_browser__update_nr_entries()
2920 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
2924 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_nr_entries()
2929 hb->nr_non_filtered_entries = nr_entries; in hist_browser__update_nr_entries()
2930 hb->nr_hierarchy_entries = nr_entries; in hist_browser__update_nr_entries()
2933 static void hist_browser__update_percent_limit(struct hist_browser *hb, in hist_browser__update_percent_limit() argument
2937 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in hist_browser__update_percent_limit()
2938 u64 total = hists__total_period(hb->hists); in hist_browser__update_percent_limit()
2941 hb->min_pcnt = callchain_param.min_percent = percent; in hist_browser__update_percent_limit()
2943 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_percent_limit()
2971 hist_entry__set_folding(he, hb, false); in hist_browser__update_percent_limit()