Lines Matching refs:hists
43 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter()
49 struct hists *hists = browser->hists; in hist_browser__get_folding() local
52 for (nd = rb_first(&hists->entries); in hist_browser__get_folding()
67 struct hists *hists = hb->hists; in hist_browser__set_title_space() local
68 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__set_title_space()
82 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
91 struct hists *hists = hb->hists; in hist_browser__update_rows() local
92 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__update_rows()
117 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
569 nd = rb_first(&browser->hists->entries); in __hist_browser__set_folding()
622 browser->b.entries = &browser->hists->entries; in hist_browser__run()
646 (browser->hists->stats.nr_lost_warned != in hist_browser__run()
647 browser->hists->stats.nr_events[PERF_RECORD_LOST])) { in hist_browser__run()
648 browser->hists->stats.nr_lost_warned = in hist_browser__run()
649 browser->hists->stats.nr_events[PERF_RECORD_LOST]; in hist_browser__run()
664 browser->hists->nr_entries, in hist_browser__run()
1103 u64 total = hists__total_period(entry->hists); in hist_browser__show_callchain()
1259 hists__for_each_format(browser->hists, fmt) { in hist_browser__show_entry()
1267 if (perf_hpp__should_skip(fmt, entry->hists) || in hist_browser__show_entry()
1350 int hierarchy_indent = (entry->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; in hist_browser__show_hierarchy_entry()
1377 fmt_node = list_first_entry(&entry->hists->hpp_formats, in hist_browser__show_hierarchy_entry()
1387 if (perf_hpp__should_skip(fmt, entry->hists) || in hist_browser__show_hierarchy_entry()
1508 int indent = browser->hists->nr_hpp_node - 2; in hist_browser__show_no_entry()
1526 fmt_node = list_first_entry(&browser->hists->hpp_formats, in hist_browser__show_no_entry()
1529 if (perf_hpp__should_skip(fmt, browser->hists) || in hist_browser__show_no_entry()
1533 ret = fmt->width(fmt, NULL, browser->hists); in hist_browser__show_no_entry()
1577 struct hists *hists = browser->hists; in hists_browser__scnprintf_headers() local
1587 if (hists__has_callchains(hists) && symbol_conf.use_callchain) { in hists_browser__scnprintf_headers()
1593 hists__for_each_format(browser->hists, fmt) { in hists_browser__scnprintf_headers()
1594 if (perf_hpp__should_skip(fmt, hists) || column++ < browser->b.horiz_scroll) in hists_browser__scnprintf_headers()
1597 ret = fmt->header(fmt, &dummy_hpp, hists, line, &span); in hists_browser__scnprintf_headers()
1614 struct hists *hists = browser->hists; in hists_browser__scnprintf_hierarchy_headers() local
1623 int indent = hists->nr_hpp_node - 2; in hists_browser__scnprintf_hierarchy_headers()
1632 fmt_node = list_first_entry(&hists->hpp_formats, in hists_browser__scnprintf_hierarchy_headers()
1638 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); in hists_browser__scnprintf_hierarchy_headers()
1657 list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) { in hists_browser__scnprintf_hierarchy_headers()
1669 if (perf_hpp__should_skip(fmt, hists)) in hists_browser__scnprintf_hierarchy_headers()
1679 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); in hists_browser__scnprintf_hierarchy_headers()
1710 struct hists *hists = browser->hists; in hists_browser__headers() local
1711 struct perf_hpp_list *hpp_list = hists->hpp_list; in hists_browser__headers()
1741 browser->top = rb_first(&hb->hists->entries); in ui_browser__hists_init_top()
1996 hists__for_each_format(browser->hists, fmt) { in hist_browser__fprintf_entry()
1997 if (perf_hpp__should_skip(fmt, he->hists)) in hist_browser__fprintf_entry()
2034 int hierarchy_indent = (he->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; in hist_browser__fprintf_hierarchy_entry()
2042 fmt_node = list_first_entry(&he->hists->hpp_formats, in hist_browser__fprintf_hierarchy_entry()
2135 struct hists *hists) in hist_browser__init() argument
2139 browser->hists = hists; in hist_browser__init()
2151 fmt_node = list_first_entry(&hists->hpp_formats, in hist_browser__init()
2159 hists__for_each_format(hists, fmt) in hist_browser__init()
2163 hists__reset_column_width(hists); in hist_browser__init()
2166 struct hist_browser *hist_browser__new(struct hists *hists) in hist_browser__new() argument
2171 hist_browser__init(browser, hists); in hist_browser__new()
2217 int printed = __hists__scnprintf_title(browser->hists, bf, size, !is_report_browser(hbt)); in hists_browser__scnprintf_title()
2350 evsel = hists_to_evsel(browser->hists); in do_annotate()
2361 ui_browser__update_nr_entries(&browser->b, browser->hists->nr_entries); in do_annotate()
2389 if ((!hists__has(browser->hists, thread) && in do_zoom_thread()
2390 !hists__has(browser->hists, comm)) || thread == NULL) in do_zoom_thread()
2393 if (browser->hists->thread_filter) { in do_zoom_thread()
2394 pstack__remove(browser->pstack, &browser->hists->thread_filter); in do_zoom_thread()
2396 thread__zput(browser->hists->thread_filter); in do_zoom_thread()
2399 if (hists__has(browser->hists, thread)) { in do_zoom_thread()
2408 browser->hists->thread_filter = thread__get(thread); in do_zoom_thread()
2410 pstack__push(browser->pstack, &browser->hists->thread_filter); in do_zoom_thread()
2413 hists__filter_by_thread(browser->hists); in do_zoom_thread()
2424 if ((!hists__has(browser->hists, thread) && in add_thread_opt()
2425 !hists__has(browser->hists, comm)) || thread == NULL) in add_thread_opt()
2428 if (hists__has(browser->hists, thread)) { in add_thread_opt()
2430 browser->hists->thread_filter ? "out of" : "into", in add_thread_opt()
2435 browser->hists->thread_filter ? "out of" : "into", in add_thread_opt()
2451 if (!hists__has(browser->hists, dso) || map == NULL) in do_zoom_dso()
2454 if (browser->hists->dso_filter) { in do_zoom_dso()
2455 pstack__remove(browser->pstack, &browser->hists->dso_filter); in do_zoom_dso()
2457 browser->hists->dso_filter = NULL; in do_zoom_dso()
2462 browser->hists->dso_filter = map->dso; in do_zoom_dso()
2464 pstack__push(browser->pstack, &browser->hists->dso_filter); in do_zoom_dso()
2467 hists__filter_by_dso(browser->hists); in do_zoom_dso()
2476 if (!hists__has(browser->hists, dso) || map == NULL) in add_dso_opt()
2480 browser->hists->dso_filter ? "out of" : "into", in add_dso_opt()
2501 if (!hists__has(browser->hists, dso) || map == NULL) in add_map_opt()
2603 if (!hists__has(browser->hists, socket) || act->socket < 0) in do_zoom_socket()
2606 if (browser->hists->socket_filter > -1) { in do_zoom_socket()
2607 pstack__remove(browser->pstack, &browser->hists->socket_filter); in do_zoom_socket()
2608 browser->hists->socket_filter = -1; in do_zoom_socket()
2611 browser->hists->socket_filter = act->socket; in do_zoom_socket()
2613 pstack__push(browser->pstack, &browser->hists->socket_filter); in do_zoom_socket()
2616 hists__filter_by_socket(browser->hists); in do_zoom_socket()
2625 if (!hists__has(browser->hists, socket) || socket_id < 0) in add_socket_opt()
2629 (browser->hists->socket_filter > -1) ? "out of" : "into", in add_socket_opt()
2641 struct rb_node *nd = rb_first(&hb->hists->entries); in hist_browser__update_nr_entries()
2644 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; in hist_browser__update_nr_entries()
2661 struct rb_node *nd = rb_first(&hb->hists->entries); in hist_browser__update_percent_limit()
2662 u64 total = hists__total_period(hb->hists); in hist_browser__update_percent_limit()
2708 struct hists *hists = evsel__hists(evsel); in perf_evsel__hists_browse() local
2806 if (!hists__has(hists, sym)) { in perf_evsel__hists_browse()
2849 hists->symbol_filter_str = *buf ? buf : NULL; in perf_evsel__hists_browse()
2850 hists__filter_by_symbol(hists); in perf_evsel__hists_browse()
2931 if (top == &browser->hists->dso_filter) { in perf_evsel__hists_browse()
2938 } else if (top == &browser->hists->thread_filter) { in perf_evsel__hists_browse()
2940 } else if (top == &browser->hists->socket_filter) { in perf_evsel__hists_browse()
2972 if (!hists__has(hists, sym) || browser->selection == NULL) in perf_evsel__hists_browse()
3016 if (hists__has(hists, thread) && thread) { in perf_evsel__hists_browse()
3031 if (hists__has(hists, sym) && browser->selection->sym) { in perf_evsel__hists_browse()
3083 struct hists *hists = evsel__hists(evsel); in perf_evsel_menu__write() local
3085 unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in perf_evsel_menu__write()
3100 struct hists *pos_hists = evsel__hists(pos); in perf_evsel_menu__write()
3110 nr_events = hists->stats.nr_events[PERF_RECORD_LOST]; in perf_evsel_menu__write()