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()
1808 struct hist_browser *hb; in ui_browser__hists_init_top() local
1810 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_init_top()
1811 browser->top = rb_first_cached(&hb->hists->entries); in ui_browser__hists_init_top()
1819 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh() local
1821 if (hb->show_headers) in hist_browser__refresh()
1822 hist_browser__show_headers(hb); in hist_browser__refresh()
1825 hb->he_selection = NULL; in hist_browser__refresh()
1826 hb->selection = NULL; in hist_browser__refresh()
1843 if (percent < hb->min_pcnt) in hist_browser__refresh()
1847 row += hist_browser__show_hierarchy_entry(hb, h, row, in hist_browser__refresh()
1853 hist_browser__show_no_entry(hb, row, h->depth + 1); in hist_browser__refresh()
1857 row += hist_browser__show_entry(hb, h, row); in hist_browser__refresh()
1912 struct hist_browser *hb; in ui_browser__hists_seek() local
1914 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_seek()
1924 hb->min_pcnt); in ui_browser__hists_seek()
1931 nd = hists__filter_prev_entries(nd, hb->min_pcnt); in ui_browser__hists_seek()
1978 hb->min_pcnt); in ui_browser__hists_seek()
2012 hb->min_pcnt); in ui_browser__hists_seek()
2907 static void hist_browser__update_nr_entries(struct hist_browser *hb) in hist_browser__update_nr_entries() argument
2910 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in hist_browser__update_nr_entries()
2912 if (hb->min_pcnt == 0 && !symbol_conf.report_hierarchy) { in hist_browser__update_nr_entries()
2913 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
2917 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_nr_entries()
2922 hb->nr_non_filtered_entries = nr_entries; in hist_browser__update_nr_entries()
2923 hb->nr_hierarchy_entries = nr_entries; in hist_browser__update_nr_entries()
2926 static void hist_browser__update_percent_limit(struct hist_browser *hb, in hist_browser__update_percent_limit() argument
2930 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in hist_browser__update_percent_limit()
2931 u64 total = hists__total_period(hb->hists); in hist_browser__update_percent_limit()
2934 hb->min_pcnt = callchain_param.min_percent = percent; in hist_browser__update_percent_limit()
2936 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_percent_limit()
2964 hist_entry__set_folding(he, hb, false); in hist_browser__update_percent_limit()