Lines Matching refs:hb
43 static void hist_browser__update_nr_entries(struct hist_browser *hb);
48 static bool hist_browser__has_filter(struct hist_browser *hb) in hist_browser__has_filter() argument
50 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter; in hist_browser__has_filter()
71 static u32 hist_browser__nr_entries(struct hist_browser *hb) in hist_browser__nr_entries() argument
75 if (hist_browser__has_filter(hb)) in hist_browser__nr_entries()
76 nr_entries = hb->nr_non_filtered_entries; in hist_browser__nr_entries()
78 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
80 hb->nr_callchain_rows = hist_browser__get_folding(hb); in hist_browser__nr_entries()
81 return nr_entries + hb->nr_callchain_rows; in hist_browser__nr_entries()
84 static void hist_browser__update_rows(struct hist_browser *hb) in hist_browser__update_rows() argument
86 struct ui_browser *browser = &hb->b; in hist_browser__update_rows()
87 u16 header_offset = hb->show_headers ? 1 : 0, index_row; in hist_browser__update_rows()
101 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh_dimensions() local
104 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
112 hist_browser__update_rows(hb); in hist_browser__refresh_dimensions()
914 struct hist_browser *hb; in ui_browser__hists_init_top() local
916 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_init_top()
917 browser->top = rb_first(&hb->hists->entries); in ui_browser__hists_init_top()
926 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh() local
928 if (hb->show_headers) { in hist_browser__refresh()
929 hist_browser__show_headers(hb); in hist_browser__refresh()
934 hb->he_selection = NULL; in hist_browser__refresh()
935 hb->selection = NULL; in hist_browser__refresh()
945 if (percent < hb->min_pcnt) in hist_browser__refresh()
948 row += hist_browser__show_entry(hb, h, row); in hist_browser__refresh()
994 struct hist_browser *hb; in ui_browser__hists_seek() local
996 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_seek()
1006 hb->min_pcnt); in ui_browser__hists_seek()
1013 hb->min_pcnt); in ui_browser__hists_seek()
1059 nd = hists__filter_entries(rb_next(nd), hb->min_pcnt); in ui_browser__hists_seek()
1093 hb->min_pcnt); in ui_browser__hists_seek()
1725 static void hist_browser__update_nr_entries(struct hist_browser *hb) in hist_browser__update_nr_entries() argument
1728 struct rb_node *nd = rb_first(&hb->hists->entries); in hist_browser__update_nr_entries()
1730 if (hb->min_pcnt == 0) { in hist_browser__update_nr_entries()
1731 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
1735 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_nr_entries()
1740 hb->nr_non_filtered_entries = nr_entries; in hist_browser__update_nr_entries()