Lines Matching refs:hb

51 static void hist_browser__update_nr_entries(struct hist_browser *hb);
56 static bool hist_browser__has_filter(struct hist_browser *hb) in hist_browser__has_filter() argument
58 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter()
79 static void hist_browser__set_title_space(struct hist_browser *hb) in hist_browser__set_title_space() argument
81 struct ui_browser *browser = &hb->b; in hist_browser__set_title_space()
82 struct hists *hists = hb->hists; in hist_browser__set_title_space()
85 browser->extra_title_lines = hb->show_headers ? hpp_list->nr_header_lines : 0; in hist_browser__set_title_space()
88 static u32 hist_browser__nr_entries(struct hist_browser *hb) in hist_browser__nr_entries() argument
93 nr_entries = hb->nr_hierarchy_entries; in hist_browser__nr_entries()
94 else if (hist_browser__has_filter(hb)) in hist_browser__nr_entries()
95 nr_entries = hb->nr_non_filtered_entries; in hist_browser__nr_entries()
97 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
99 hb->nr_callchain_rows = hist_browser__get_folding(hb); in hist_browser__nr_entries()
100 return nr_entries + hb->nr_callchain_rows; in hist_browser__nr_entries()
103 static void hist_browser__update_rows(struct hist_browser *hb) in hist_browser__update_rows() argument
105 struct ui_browser *browser = &hb->b; in hist_browser__update_rows()
106 struct hists *hists = hb->hists; in hist_browser__update_rows()
110 if (!hb->show_headers) { in hist_browser__update_rows()
129 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh_dimensions() local
132 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
272 static int hierarchy_count_rows(struct hist_browser *hb, struct hist_entry *he, in hierarchy_count_rows() argument
292 if (!child->filtered && percent >= hb->min_pcnt) { in hierarchy_count_rows()
296 count += hierarchy_count_rows(hb, child, true); in hierarchy_count_rows()
569 static int hierarchy_set_folding(struct hist_browser *hb, struct hist_entry *he, in hierarchy_set_folding() argument
580 if (!child->filtered && percent >= hb->min_pcnt) in hierarchy_set_folding()
588 struct hist_browser *hb, bool unfold) in __hist_entry__set_folding() argument
599 n = hierarchy_set_folding(hb, he, unfold); in __hist_entry__set_folding()
1817 struct hist_browser *hb; in ui_browser__hists_init_top() local
1819 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_init_top()
1820 browser->top = rb_first_cached(&hb->hists->entries); in ui_browser__hists_init_top()
1828 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh() local
1830 if (hb->show_headers) in hist_browser__refresh()
1831 hist_browser__show_headers(hb); in hist_browser__refresh()
1834 hb->he_selection = NULL; in hist_browser__refresh()
1835 hb->selection = NULL; in hist_browser__refresh()
1852 if (percent < hb->min_pcnt) in hist_browser__refresh()
1856 row += hist_browser__show_hierarchy_entry(hb, h, row, in hist_browser__refresh()
1862 hist_browser__show_no_entry(hb, row, h->depth + 1); in hist_browser__refresh()
1866 row += hist_browser__show_entry(hb, h, row); in hist_browser__refresh()
1921 struct hist_browser *hb; in ui_browser__hists_seek() local
1923 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_seek()
1933 hb->min_pcnt); in ui_browser__hists_seek()
1940 nd = hists__filter_prev_entries(nd, hb->min_pcnt); in ui_browser__hists_seek()
1987 hb->min_pcnt); in ui_browser__hists_seek()
2021 hb->min_pcnt); in ui_browser__hists_seek()
2889 static void hist_browser__update_nr_entries(struct hist_browser *hb) in hist_browser__update_nr_entries() argument
2892 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in hist_browser__update_nr_entries()
2894 if (hb->min_pcnt == 0 && !symbol_conf.report_hierarchy) { in hist_browser__update_nr_entries()
2895 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
2899 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_nr_entries()
2904 hb->nr_non_filtered_entries = nr_entries; in hist_browser__update_nr_entries()
2905 hb->nr_hierarchy_entries = nr_entries; in hist_browser__update_nr_entries()
2908 static void hist_browser__update_percent_limit(struct hist_browser *hb, in hist_browser__update_percent_limit() argument
2912 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in hist_browser__update_percent_limit()
2913 u64 total = hists__total_period(hb->hists); in hist_browser__update_percent_limit()
2916 hb->min_pcnt = callchain_param.min_percent = percent; in hist_browser__update_percent_limit()
2918 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_percent_limit()
2946 hist_entry__set_folding(he, hb, false); in hist_browser__update_percent_limit()