Lines Matching refs:hists
35 #include "../browsers/hists.h"
58 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter;
64 struct hists *hists = browser->hists;
67 for (nd = rb_first_cached(&hists->entries);
82 struct hists *hists = hb->hists;
83 struct perf_hpp_list *hpp_list = hists->hpp_list;
97 nr_entries = hb->hists->nr_entries;
106 struct hists *hists = hb->hists;
107 struct perf_hpp_list *hpp_list = hists->hpp_list;
132 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]"));
608 nd = rb_first_cached(&browser->hists->entries);
689 (browser->hists->stats.nr_lost_warned !=
690 browser->hists->stats.nr_events[PERF_RECORD_LOST])) {
691 browser->hists->stats.nr_lost_warned =
692 browser->hists->stats.nr_events[PERF_RECORD_LOST];
706 seq++, browser->b.nr_entries, browser->hists->nr_entries,
749 browser->b.entries = &browser->hists->entries;
772 /* for hists browser */
1169 u64 total = hists__total_period(entry->hists);
1327 hists__for_each_format(browser->hists, fmt) {
1335 if (perf_hpp__should_skip(fmt, entry->hists) ||
1418 int hierarchy_indent = (entry->hists->nr_hpp_node - 2) * HIERARCHY_INDENT;
1445 fmt_node = list_first_entry(&entry->hists->hpp_formats,
1455 if (perf_hpp__should_skip(fmt, entry->hists) ||
1576 int indent = browser->hists->nr_hpp_node - 2;
1594 fmt_node = list_first_entry(&browser->hists->hpp_formats,
1597 if (perf_hpp__should_skip(fmt, browser->hists) ||
1601 ret = fmt->width(fmt, NULL, browser->hists);
1645 struct hists *hists = browser->hists;
1655 if (hists__has_callchains(hists) && symbol_conf.use_callchain) {
1661 hists__for_each_format(browser->hists, fmt) {
1662 if (perf_hpp__should_skip(fmt, hists) || column++ < browser->b.horiz_scroll)
1665 ret = fmt->header(fmt, &dummy_hpp, hists, line, &span);
1682 struct hists *hists = browser->hists;
1691 int indent = hists->nr_hpp_node - 2;
1700 fmt_node = list_first_entry(&hists->hpp_formats,
1706 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL);
1725 list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) {
1737 if (perf_hpp__should_skip(fmt, hists))
1747 ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL);
1778 struct hists *hists = browser->hists;
1779 struct perf_hpp_list *hpp_list = hists->hpp_list;
1809 browser->top = rb_first_cached(&hb->hists->entries);
2068 hists__for_each_format(browser->hists, fmt) {
2069 if (perf_hpp__should_skip(fmt, he->hists))
2106 int hierarchy_indent = (he->hists->nr_hpp_node - 2) * HIERARCHY_INDENT;
2114 fmt_node = list_first_entry(&he->hists->hpp_formats,
2208 struct hists *hists)
2212 browser->hists = hists;
2224 fmt_node = list_first_entry(&hists->hpp_formats,
2232 hists__for_each_format(hists, fmt)
2236 hists__reset_column_width(hists);
2239 struct hist_browser *hist_browser__new(struct hists *hists)
2244 hist_browser__init(browser, hists);
2295 int printed = __hists__scnprintf_title(browser->hists, bf, size, !is_report_browser(hbt));
2445 evsel = hists_to_evsel(browser->hists);
2457 ui_browser__update_nr_entries(&browser->b, browser->hists->nr_entries);
2513 if ((!hists__has(browser->hists, thread) &&
2514 !hists__has(browser->hists, comm)) || thread == NULL)
2517 if (browser->hists->thread_filter) {
2518 pstack__remove(browser->pstack, &browser->hists->thread_filter);
2520 thread__zput(browser->hists->thread_filter);
2523 if (hists__has(browser->hists, thread)) {
2532 browser->hists->thread_filter = thread__get(thread);
2534 pstack__push(browser->pstack, &browser->hists->thread_filter);
2537 hists__filter_by_thread(browser->hists);
2548 if ((!hists__has(browser->hists, thread) &&
2549 !hists__has(browser->hists, comm)) || thread == NULL)
2552 if (hists__has(browser->hists, thread)) {
2554 browser->hists->thread_filter ? "out of" : "into",
2559 browser->hists->thread_filter ? "out of" : "into",
2572 if (!hists__has(browser->hists, dso) || map == NULL)
2575 if (browser->hists->dso_filter) {
2576 pstack__remove(browser->pstack, &browser->hists->dso_filter);
2578 browser->hists->dso_filter = NULL;
2583 browser->hists->dso_filter = map->dso;
2585 pstack__push(browser->pstack, &browser->hists->dso_filter);
2588 hists__filter_by_dso(browser->hists);
2603 if (!hists__has(browser->hists, dso) || map == NULL)
2607 browser->hists->dso_filter ? "out of" : "into",
2650 if (!hists__has(browser->hists, dso) || map == NULL)
2843 if (!hists__has(browser->hists, socket) || act->socket < 0)
2846 if (browser->hists->socket_filter > -1) {
2847 pstack__remove(browser->pstack, &browser->hists->socket_filter);
2848 browser->hists->socket_filter = -1;
2851 browser->hists->socket_filter = act->socket;
2853 pstack__push(browser->pstack, &browser->hists->socket_filter);
2856 hists__filter_by_socket(browser->hists);
2865 if (!hists__has(browser->hists, socket) || socket_id < 0)
2869 (browser->hists->socket_filter > -1) ? "out of" : "into",
2881 struct rb_node *nd = rb_first_cached(&hb->hists->entries);
2884 hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries;
2901 struct rb_node *nd = rb_first_cached(&hb->hists->entries);
2902 u64 total = hists__total_period(hb->hists);
2948 struct hists *hists = evsel__hists(evsel);
3078 if (!hists__has(hists, sym)) {
3157 hists->symbol_filter_str = *buf ? buf : NULL;
3158 hists__filter_by_symbol(hists);
3240 if (top == &browser->hists->dso_filter) {
3247 } else if (top == &browser->hists->thread_filter) {
3249 } else if (top == &browser->hists->socket_filter) {
3281 if (!hists__has(hists, sym) || browser->selection == NULL)
3328 if (hists__has(hists, thread) && thread) {
3343 if (hists__has(hists, sym) && browser->selection->sym) {
3411 struct hists *hists = evsel__hists(evsel);
3413 unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE];
3428 struct hists *pos_hists = evsel__hists(pos);
3438 nr_events = hists->stats.nr_events[PERF_RECORD_LOST];
3494 * default evsel resorted hists tree.
3655 struct hists *hists = evsel__hists(browser->block_evsel);
3657 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE];
3671 struct hists *hists = &bh->block_hists;
3678 browser = hist_browser__new(hists);