Lines Matching refs:hists
58 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter()
64 struct hists *hists = browser->hists; in hist_browser__get_folding() local
67 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding()
82 struct hists *hists = hb->hists; in hist_browser__set_title_space() local
83 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__set_title_space()
97 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
106 struct hists *hists = hb->hists; in hist_browser__update_rows() local
107 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__update_rows()
132 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
635 nd = rb_first_cached(&browser->hists->entries); in __hist_browser__set_folding()
685 struct evsel *evsel = hists_to_evsel(browser->hists); in hist_browser__handle_hotkey()
717 seq++, browser->b.nr_entries, browser->hists->nr_entries, in hist_browser__handle_hotkey()
760 browser->b.entries = &browser->hists->entries; in hist_browser__run()
1180 u64 total = hists__total_period(entry->hists); in hist_browser__show_callchain()
1338 hists__for_each_format(browser->hists, fmt) { in hist_browser__show_entry()
1346 if (perf_hpp__should_skip(fmt, entry->hists) || in hist_browser__show_entry()
1429 int hierarchy_indent = (entry->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; in hist_browser__show_hierarchy_entry()
1456 fmt_node = list_first_entry(&entry->hists->hpp_formats, in hist_browser__show_hierarchy_entry()
1466 if (perf_hpp__should_skip(fmt, entry->hists) || in hist_browser__show_hierarchy_entry()
1587 int indent = browser->hists->nr_hpp_node - 2; in hist_browser__show_no_entry()
1605 fmt_node = list_first_entry(&browser->hists->hpp_formats, in hist_browser__show_no_entry()
1608 if (perf_hpp__should_skip(fmt, browser->hists) || in hist_browser__show_no_entry()
1612 ret = fmt->width(fmt, NULL, browser->hists); in hist_browser__show_no_entry()
1656 struct hists *hists = browser->hists; in hists_browser__scnprintf_headers() local
1666 if (hists__has_callchains(hists) && symbol_conf.use_callchain) { in hists_browser__scnprintf_headers()
1672 hists__for_each_format(browser->hists, fmt) { in hists_browser__scnprintf_headers()
1673 if (perf_hpp__should_skip(fmt, hists) || column++ < browser->b.horiz_scroll) in hists_browser__scnprintf_headers()
1676 ret = fmt->header(fmt, &dummy_hpp, hists, line, &span); in hists_browser__scnprintf_headers()
1693 struct hists *hists = browser->hists; in hists_browser__scnprintf_hierarchy_headers() local
1702 int indent = hists->nr_hpp_node - 2; in hists_browser__scnprintf_hierarchy_headers()
1711 fmt_node = list_first_entry(&hists->hpp_formats, in hists_browser__scnprintf_hierarchy_headers()
1717 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); in hists_browser__scnprintf_hierarchy_headers()
1736 list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) { in hists_browser__scnprintf_hierarchy_headers()
1748 if (perf_hpp__should_skip(fmt, hists)) in hists_browser__scnprintf_hierarchy_headers()
1758 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); in hists_browser__scnprintf_hierarchy_headers()
1789 struct hists *hists = browser->hists; in hists_browser__headers() local
1790 struct perf_hpp_list *hpp_list = hists->hpp_list; in hists_browser__headers()
1820 browser->top = rb_first_cached(&hb->hists->entries); in ui_browser__hists_init_top()
2079 hists__for_each_format(browser->hists, fmt) { in hist_browser__fprintf_entry()
2080 if (perf_hpp__should_skip(fmt, he->hists)) in hist_browser__fprintf_entry()
2117 int hierarchy_indent = (he->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; in hist_browser__fprintf_hierarchy_entry()
2125 fmt_node = list_first_entry(&he->hists->hpp_formats, in hist_browser__fprintf_hierarchy_entry()
2219 struct hists *hists) in hist_browser__init() argument
2223 browser->hists = hists; in hist_browser__init()
2235 fmt_node = list_first_entry(&hists->hpp_formats, in hist_browser__init()
2243 hists__for_each_format(hists, fmt) in hist_browser__init()
2247 hists__reset_column_width(hists); in hist_browser__init()
2250 struct hist_browser *hist_browser__new(struct hists *hists) in hist_browser__new() argument
2255 hist_browser__init(browser, hists); in hist_browser__new()
2306 int printed = __hists__scnprintf_title(browser->hists, bf, size, !is_report_browser(hbt)); in hists_browser__scnprintf_title()
2456 evsel = hists_to_evsel(browser->hists); in do_annotate()
2468 ui_browser__update_nr_entries(&browser->b, browser->hists->nr_entries); in do_annotate()
2524 if ((!hists__has(browser->hists, thread) && in do_zoom_thread()
2525 !hists__has(browser->hists, comm)) || thread == NULL) in do_zoom_thread()
2528 if (browser->hists->thread_filter) { in do_zoom_thread()
2529 pstack__remove(browser->pstack, &browser->hists->thread_filter); in do_zoom_thread()
2531 thread__zput(browser->hists->thread_filter); in do_zoom_thread()
2534 if (hists__has(browser->hists, thread)) { in do_zoom_thread()
2543 browser->hists->thread_filter = thread__get(thread); in do_zoom_thread()
2545 pstack__push(browser->pstack, &browser->hists->thread_filter); in do_zoom_thread()
2548 hists__filter_by_thread(browser->hists); in do_zoom_thread()
2559 if ((!hists__has(browser->hists, thread) && in add_thread_opt()
2560 !hists__has(browser->hists, comm)) || thread == NULL) in add_thread_opt()
2563 if (hists__has(browser->hists, thread)) { in add_thread_opt()
2565 browser->hists->thread_filter ? "out of" : "into", in add_thread_opt()
2570 browser->hists->thread_filter ? "out of" : "into", in add_thread_opt()
2583 if (!hists__has(browser->hists, dso) || map == NULL) in hists_browser__zoom_map()
2586 if (browser->hists->dso_filter) { in hists_browser__zoom_map()
2587 pstack__remove(browser->pstack, &browser->hists->dso_filter); in hists_browser__zoom_map()
2589 browser->hists->dso_filter = NULL; in hists_browser__zoom_map()
2594 browser->hists->dso_filter = map->dso; in hists_browser__zoom_map()
2596 pstack__push(browser->pstack, &browser->hists->dso_filter); in hists_browser__zoom_map()
2599 hists__filter_by_dso(browser->hists); in hists_browser__zoom_map()
2614 if (!hists__has(browser->hists, dso) || map == NULL) in add_dso_opt()
2618 browser->hists->dso_filter ? "out of" : "into", in add_dso_opt()
2661 if (!hists__has(browser->hists, dso) || map == NULL) in add_map_opt()
2854 if (!hists__has(browser->hists, socket) || act->socket < 0) in do_zoom_socket()
2857 if (browser->hists->socket_filter > -1) { in do_zoom_socket()
2858 pstack__remove(browser->pstack, &browser->hists->socket_filter); in do_zoom_socket()
2859 browser->hists->socket_filter = -1; in do_zoom_socket()
2862 browser->hists->socket_filter = act->socket; in do_zoom_socket()
2864 pstack__push(browser->pstack, &browser->hists->socket_filter); in do_zoom_socket()
2867 hists__filter_by_socket(browser->hists); in do_zoom_socket()
2876 if (!hists__has(browser->hists, socket) || socket_id < 0) in add_socket_opt()
2880 (browser->hists->socket_filter > -1) ? "out of" : "into", in add_socket_opt()
2892 struct rb_node *nd = rb_first_cached(&hb->hists->entries); in hist_browser__update_nr_entries()
2895 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
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()
2955 struct hists *hists = evsel__hists(evsel); in evsel__hists_browse() local
3085 if (!hists__has(hists, sym)) { in evsel__hists_browse()
3164 hists->symbol_filter_str = *buf ? buf : NULL; in evsel__hists_browse()
3165 hists__filter_by_symbol(hists); in evsel__hists_browse()
3247 if (top == &browser->hists->dso_filter) { in evsel__hists_browse()
3254 } else if (top == &browser->hists->thread_filter) { in evsel__hists_browse()
3256 } else if (top == &browser->hists->socket_filter) { in evsel__hists_browse()
3288 if (!hists__has(hists, sym) || browser->selection == NULL) in evsel__hists_browse()
3335 if (hists__has(hists, thread) && thread) { in evsel__hists_browse()
3350 if (hists__has(hists, sym) && browser->selection->sym) { in evsel__hists_browse()
3418 struct hists *hists = evsel__hists(evsel); in perf_evsel_menu__write() local
3420 unsigned long nr_events = hists->stats.nr_samples; in perf_evsel_menu__write()
3435 struct hists *pos_hists = evsel__hists(pos); in perf_evsel_menu__write()
3649 struct hists *hists = evsel__hists(browser->block_evsel); in block_hists_browser__title() local
3651 unsigned long nr_samples = hists->stats.nr_samples; in block_hists_browser__title()
3665 struct hists *hists = &bh->block_hists; in block_hists_tui_browse() local
3672 browser = hist_browser__new(hists); in block_hists_tui_browse()