Lines Matching refs:hists
44 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter()
50 struct hists *hists = browser->hists; in hist_browser__get_folding() local
53 for (nd = rb_first(&hists->entries); in hist_browser__get_folding()
74 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
83 struct hists *hists = hb->hists; in hist_browser__update_rows() local
84 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__update_rows()
103 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
116 struct hists *hists = browser->hists; in hist_browser__gotorc() local
117 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__gotorc()
641 nd = rb_first(&browser->hists->entries); in __hist_browser__set_folding()
693 browser->b.entries = &browser->hists->entries; in hist_browser__run()
716 if (browser->hists->stats.nr_lost_warned != in hist_browser__run()
717 browser->hists->stats.nr_events[PERF_RECORD_LOST]) { in hist_browser__run()
718 browser->hists->stats.nr_lost_warned = in hist_browser__run()
719 browser->hists->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__run()
734 browser->hists->nr_entries, in hist_browser__run()
1242 u64 total = hists__total_period(entry->hists); in hist_browser__show_callchain()
1403 hists__for_each_format(browser->hists, fmt) { in hist_browser__show_entry()
1411 if (perf_hpp__should_skip(fmt, entry->hists) || in hist_browser__show_entry()
1499 int hierarchy_indent = (entry->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; in hist_browser__show_hierarchy_entry()
1526 fmt_node = list_first_entry(&entry->hists->hpp_formats, in hist_browser__show_hierarchy_entry()
1536 if (perf_hpp__should_skip(fmt, entry->hists) || in hist_browser__show_hierarchy_entry()
1657 int indent = browser->hists->nr_hpp_node - 2; in hist_browser__show_no_entry()
1675 fmt_node = list_first_entry(&browser->hists->hpp_formats, in hist_browser__show_no_entry()
1678 if (perf_hpp__should_skip(fmt, browser->hists) || in hist_browser__show_no_entry()
1682 ret = fmt->width(fmt, NULL, browser->hists); in hist_browser__show_no_entry()
1726 struct hists *hists = browser->hists; in hists_browser__scnprintf_headers() local
1742 hists__for_each_format(browser->hists, fmt) { in hists_browser__scnprintf_headers()
1743 if (perf_hpp__should_skip(fmt, hists) || column++ < browser->b.horiz_scroll) in hists_browser__scnprintf_headers()
1746 ret = fmt->header(fmt, &dummy_hpp, hists, line, &span); in hists_browser__scnprintf_headers()
1763 struct hists *hists = browser->hists; in hists_browser__scnprintf_hierarchy_headers() local
1772 int indent = hists->nr_hpp_node - 2; in hists_browser__scnprintf_hierarchy_headers()
1781 fmt_node = list_first_entry(&hists->hpp_formats, in hists_browser__scnprintf_hierarchy_headers()
1787 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); in hists_browser__scnprintf_hierarchy_headers()
1806 list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) { in hists_browser__scnprintf_hierarchy_headers()
1818 if (perf_hpp__should_skip(fmt, hists)) in hists_browser__scnprintf_hierarchy_headers()
1828 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); in hists_browser__scnprintf_hierarchy_headers()
1859 struct hists *hists = browser->hists; in hists_browser__headers() local
1860 struct perf_hpp_list *hpp_list = hists->hpp_list; in hists_browser__headers()
1890 browser->top = rb_first(&hb->hists->entries); in ui_browser__hists_init_top()
1900 struct hists *hists = hb->hists; in hist_browser__refresh() local
1903 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__refresh()
2151 hists__for_each_format(browser->hists, fmt) { in hist_browser__fprintf_entry()
2152 if (perf_hpp__should_skip(fmt, he->hists)) in hist_browser__fprintf_entry()
2189 int hierarchy_indent = (he->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; in hist_browser__fprintf_hierarchy_entry()
2197 fmt_node = list_first_entry(&he->hists->hpp_formats, in hist_browser__fprintf_hierarchy_entry()
2290 struct hists *hists) in hist_browser__init() argument
2294 browser->hists = hists; in hist_browser__init()
2305 fmt_node = list_first_entry(&hists->hpp_formats, in hist_browser__init()
2313 hists__for_each_format(hists, fmt) in hist_browser__init()
2317 hists__reset_column_width(hists); in hist_browser__init()
2320 struct hist_browser *hist_browser__new(struct hists *hists) in hist_browser__new() argument
2325 hist_browser__init(browser, hists); in hist_browser__new()
2370 struct hists *hists = browser->hists; in perf_evsel_browser_title() local
2373 const struct dso *dso = hists->dso_filter; in perf_evsel_browser_title()
2374 const struct thread *thread = hists->thread_filter; in perf_evsel_browser_title()
2375 int socket_id = hists->socket_filter; in perf_evsel_browser_title()
2376 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_browser_title()
2377 u64 nr_events = hists->stats.total_period; in perf_evsel_browser_title()
2378 struct perf_evsel *evsel = hists_to_evsel(hists); in perf_evsel_browser_title()
2386 nr_samples = hists->stats.nr_non_filtered_samples; in perf_evsel_browser_title()
2387 nr_events = hists->stats.total_non_filtered_period; in perf_evsel_browser_title()
2397 struct hists *pos_hists = evsel__hists(pos); in perf_evsel_browser_title()
2418 if (hists->uid_filter_str) in perf_evsel_browser_title()
2420 ", UID: %s", hists->uid_filter_str); in perf_evsel_browser_title()
2422 if (hists__has(hists, thread)) { in perf_evsel_browser_title()
2569 evsel = hists_to_evsel(browser->hists); in do_annotate()
2579 ui_browser__update_nr_entries(&browser->b, browser->hists->nr_entries); in do_annotate()
2607 if ((!hists__has(browser->hists, thread) && in do_zoom_thread()
2608 !hists__has(browser->hists, comm)) || thread == NULL) in do_zoom_thread()
2611 if (browser->hists->thread_filter) { in do_zoom_thread()
2612 pstack__remove(browser->pstack, &browser->hists->thread_filter); in do_zoom_thread()
2614 thread__zput(browser->hists->thread_filter); in do_zoom_thread()
2617 if (hists__has(browser->hists, thread)) { in do_zoom_thread()
2626 browser->hists->thread_filter = thread__get(thread); in do_zoom_thread()
2628 pstack__push(browser->pstack, &browser->hists->thread_filter); in do_zoom_thread()
2631 hists__filter_by_thread(browser->hists); in do_zoom_thread()
2642 if ((!hists__has(browser->hists, thread) && in add_thread_opt()
2643 !hists__has(browser->hists, comm)) || thread == NULL) in add_thread_opt()
2646 if (hists__has(browser->hists, thread)) { in add_thread_opt()
2648 browser->hists->thread_filter ? "out of" : "into", in add_thread_opt()
2653 browser->hists->thread_filter ? "out of" : "into", in add_thread_opt()
2669 if (!hists__has(browser->hists, dso) || map == NULL) in do_zoom_dso()
2672 if (browser->hists->dso_filter) { in do_zoom_dso()
2673 pstack__remove(browser->pstack, &browser->hists->dso_filter); in do_zoom_dso()
2675 browser->hists->dso_filter = NULL; in do_zoom_dso()
2680 browser->hists->dso_filter = map->dso; in do_zoom_dso()
2682 pstack__push(browser->pstack, &browser->hists->dso_filter); in do_zoom_dso()
2685 hists__filter_by_dso(browser->hists); in do_zoom_dso()
2694 if (!hists__has(browser->hists, dso) || map == NULL) in add_dso_opt()
2698 browser->hists->dso_filter ? "out of" : "into", in add_dso_opt()
2719 if (!hists__has(browser->hists, dso) || map == NULL) in add_map_opt()
2821 if (!hists__has(browser->hists, socket) || act->socket < 0) in do_zoom_socket()
2824 if (browser->hists->socket_filter > -1) { in do_zoom_socket()
2825 pstack__remove(browser->pstack, &browser->hists->socket_filter); in do_zoom_socket()
2826 browser->hists->socket_filter = -1; in do_zoom_socket()
2829 browser->hists->socket_filter = act->socket; in do_zoom_socket()
2831 pstack__push(browser->pstack, &browser->hists->socket_filter); in do_zoom_socket()
2834 hists__filter_by_socket(browser->hists); in do_zoom_socket()
2843 if (!hists__has(browser->hists, socket) || socket_id < 0) in add_socket_opt()
2847 (browser->hists->socket_filter > -1) ? "out of" : "into", in add_socket_opt()
2859 struct rb_node *nd = rb_first(&hb->hists->entries); in hist_browser__update_nr_entries()
2862 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
2879 struct rb_node *nd = rb_first(&hb->hists->entries); in hist_browser__update_percent_limit()
2880 u64 total = hists__total_period(hb->hists); in hist_browser__update_percent_limit()
2924 struct hists *hists = evsel__hists(evsel); in perf_evsel__hists_browse() local
3021 if (!hists__has(hists, sym)) { in perf_evsel__hists_browse()
3064 hists->symbol_filter_str = *buf ? buf : NULL; in perf_evsel__hists_browse()
3065 hists__filter_by_symbol(hists); in perf_evsel__hists_browse()
3147 if (top == &browser->hists->dso_filter) { in perf_evsel__hists_browse()
3154 } else if (top == &browser->hists->thread_filter) { in perf_evsel__hists_browse()
3156 } else if (top == &browser->hists->socket_filter) { in perf_evsel__hists_browse()
3188 if (!hists__has(hists, sym) || browser->selection == NULL) in perf_evsel__hists_browse()
3232 if (hists__has(hists, thread) && thread) { in perf_evsel__hists_browse()
3247 if (hists__has(hists, sym) && browser->selection->sym) { in perf_evsel__hists_browse()
3298 struct hists *hists = evsel__hists(evsel); in perf_evsel_menu__write() local
3300 unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write()
3315 struct hists *pos_hists = evsel__hists(pos); in perf_evsel_menu__write()
3325 nr_events = hists->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write()