Lines Matching refs:hb
41 static void hist_browser__update_nr_entries(struct hist_browser *hb);
46 static bool hist_browser__has_filter(struct hist_browser *hb) in hist_browser__has_filter() argument
48 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter; in hist_browser__has_filter()
69 static u32 hist_browser__nr_entries(struct hist_browser *hb) in hist_browser__nr_entries() argument
73 if (hist_browser__has_filter(hb)) in hist_browser__nr_entries()
74 nr_entries = hb->nr_non_filtered_entries; in hist_browser__nr_entries()
76 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
78 hb->nr_callchain_rows = hist_browser__get_folding(hb); in hist_browser__nr_entries()
79 return nr_entries + hb->nr_callchain_rows; in hist_browser__nr_entries()
82 static void hist_browser__update_rows(struct hist_browser *hb) in hist_browser__update_rows() argument
84 struct ui_browser *browser = &hb->b; in hist_browser__update_rows()
85 u16 header_offset = hb->show_headers ? 1 : 0, index_row; in hist_browser__update_rows()
99 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh_dimensions() local
102 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
110 hist_browser__update_rows(hb); in hist_browser__refresh_dimensions()
891 struct hist_browser *hb; in ui_browser__hists_init_top() local
893 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_init_top()
894 browser->top = rb_first(&hb->hists->entries); in ui_browser__hists_init_top()
903 struct hist_browser *hb = container_of(browser, struct hist_browser, b); in hist_browser__refresh() local
905 if (hb->show_headers) { in hist_browser__refresh()
906 hist_browser__show_headers(hb); in hist_browser__refresh()
920 if (percent < hb->min_pcnt) in hist_browser__refresh()
923 row += hist_browser__show_entry(hb, h, row); in hist_browser__refresh()
969 struct hist_browser *hb; in ui_browser__hists_seek() local
971 hb = container_of(browser, struct hist_browser, b); in ui_browser__hists_seek()
981 hb->min_pcnt); in ui_browser__hists_seek()
988 hb->min_pcnt); in ui_browser__hists_seek()
1031 nd = hists__filter_entries(rb_next(nd), hb->min_pcnt); in ui_browser__hists_seek()
1065 hb->min_pcnt); in ui_browser__hists_seek()
1398 static void hist_browser__update_nr_entries(struct hist_browser *hb) in hist_browser__update_nr_entries() argument
1401 struct rb_node *nd = rb_first(&hb->hists->entries); in hist_browser__update_nr_entries()
1403 if (hb->min_pcnt == 0) { in hist_browser__update_nr_entries()
1404 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
1408 while ((nd = hists__filter_entries(nd, hb->min_pcnt)) != NULL) { in hist_browser__update_nr_entries()
1413 hb->nr_non_filtered_entries = nr_entries; in hist_browser__update_nr_entries()