Lines Matching refs:hists
21 static bool hists__filter_entry_by_dso(struct hists *hists,
23 static bool hists__filter_entry_by_thread(struct hists *hists,
25 static bool hists__filter_entry_by_symbol(struct hists *hists,
27 static bool hists__filter_entry_by_socket(struct hists *hists,
30 u16 hists__col_len(struct hists *hists, enum hist_column col) in hists__col_len() argument
32 return hists->col_len[col]; in hists__col_len()
35 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__set_col_len() argument
37 hists->col_len[col] = len; in hists__set_col_len()
40 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__new_col_len() argument
42 if (len > hists__col_len(hists, col)) { in hists__new_col_len()
43 hists__set_col_len(hists, col, len); in hists__new_col_len()
49 void hists__reset_col_len(struct hists *hists) in hists__reset_col_len() argument
54 hists__set_col_len(hists, col, 0); in hists__reset_col_len()
57 static void hists__set_unres_dso_col_len(struct hists *hists, int dso) in hists__set_unres_dso_col_len() argument
61 if (hists__col_len(hists, dso) < unresolved_col_width && in hists__set_unres_dso_col_len()
64 hists__set_col_len(hists, dso, unresolved_col_width); in hists__set_unres_dso_col_len()
67 void hists__calc_col_len(struct hists *hists, struct hist_entry *h) in hists__calc_col_len() argument
82 hists__new_col_len(hists, HISTC_SYMBOL, symlen); in hists__calc_col_len()
85 hists__new_col_len(hists, HISTC_SYMBOL, symlen); in hists__calc_col_len()
86 hists__set_unres_dso_col_len(hists, HISTC_DSO); in hists__calc_col_len()
90 if (hists__new_col_len(hists, HISTC_COMM, len)) in hists__calc_col_len()
91 hists__set_col_len(hists, HISTC_THREAD, len + 8); in hists__calc_col_len()
95 hists__new_col_len(hists, HISTC_DSO, len); in hists__calc_col_len()
99 hists__new_col_len(hists, HISTC_PARENT, h->parent->namelen); in hists__calc_col_len()
106 hists__new_col_len(hists, HISTC_SYMBOL_FROM, symlen); in hists__calc_col_len()
109 hists__new_col_len(hists, HISTC_DSO_FROM, symlen); in hists__calc_col_len()
112 hists__new_col_len(hists, HISTC_SYMBOL_FROM, symlen); in hists__calc_col_len()
113 hists__set_unres_dso_col_len(hists, HISTC_DSO_FROM); in hists__calc_col_len()
120 hists__new_col_len(hists, HISTC_SYMBOL_TO, symlen); in hists__calc_col_len()
123 hists__new_col_len(hists, HISTC_DSO_TO, symlen); in hists__calc_col_len()
126 hists__new_col_len(hists, HISTC_SYMBOL_TO, symlen); in hists__calc_col_len()
127 hists__set_unres_dso_col_len(hists, HISTC_DSO_TO); in hists__calc_col_len()
131 hists__new_col_len(hists, HISTC_SRCLINE_FROM, in hists__calc_col_len()
134 hists__new_col_len(hists, HISTC_SRCLINE_TO, in hists__calc_col_len()
142 hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, in hists__calc_col_len()
144 hists__new_col_len(hists, HISTC_MEM_DCACHELINE, in hists__calc_col_len()
148 hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, in hists__calc_col_len()
150 hists__new_col_len(hists, HISTC_MEM_DCACHELINE, in hists__calc_col_len()
157 hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL, in hists__calc_col_len()
161 hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL, in hists__calc_col_len()
167 hists__new_col_len(hists, HISTC_MEM_DADDR_DSO, in hists__calc_col_len()
171 hists__set_unres_dso_col_len(hists, HISTC_MEM_DADDR_DSO); in hists__calc_col_len()
174 hists__new_col_len(hists, HISTC_MEM_PHYS_DADDR, in hists__calc_col_len()
179 hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, symlen); in hists__calc_col_len()
180 hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL, symlen); in hists__calc_col_len()
181 hists__set_unres_dso_col_len(hists, HISTC_MEM_DADDR_DSO); in hists__calc_col_len()
184 hists__new_col_len(hists, HISTC_CGROUP_ID, 20); in hists__calc_col_len()
185 hists__new_col_len(hists, HISTC_CPU, 3); in hists__calc_col_len()
186 hists__new_col_len(hists, HISTC_SOCKET, 6); in hists__calc_col_len()
187 hists__new_col_len(hists, HISTC_MEM_LOCKED, 6); in hists__calc_col_len()
188 hists__new_col_len(hists, HISTC_MEM_TLB, 22); in hists__calc_col_len()
189 hists__new_col_len(hists, HISTC_MEM_SNOOP, 12); in hists__calc_col_len()
190 hists__new_col_len(hists, HISTC_MEM_LVL, 21 + 3); in hists__calc_col_len()
191 hists__new_col_len(hists, HISTC_LOCAL_WEIGHT, 12); in hists__calc_col_len()
192 hists__new_col_len(hists, HISTC_GLOBAL_WEIGHT, 12); in hists__calc_col_len()
196 hists__new_col_len(hists, HISTC_SRCLINE, len); in hists__calc_col_len()
200 hists__new_col_len(hists, HISTC_SRCFILE, strlen(h->srcfile)); in hists__calc_col_len()
203 hists__new_col_len(hists, HISTC_TRANSACTION, in hists__calc_col_len()
207 hists__new_col_len(hists, HISTC_TRACE, strlen(h->trace_output)); in hists__calc_col_len()
210 void hists__output_recalc_col_len(struct hists *hists, int max_rows) in hists__output_recalc_col_len() argument
212 struct rb_node *next = rb_first(&hists->entries); in hists__output_recalc_col_len()
216 hists__reset_col_len(hists); in hists__output_recalc_col_len()
221 hists__calc_col_len(hists, n); in hists__output_recalc_col_len()
274 static void hists__delete_entry(struct hists *hists, struct hist_entry *he);
276 static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) in hists__decay_entry() argument
292 hists->stats.total_period -= diff; in hists__decay_entry()
294 hists->stats.total_non_filtered_period -= diff; in hists__decay_entry()
304 if (hists__decay_entry(hists, child)) in hists__decay_entry()
305 hists__delete_entry(hists, child); in hists__decay_entry()
312 static void hists__delete_entry(struct hists *hists, struct hist_entry *he) in hists__delete_entry() argument
321 if (hists__has(hists, need_collapse)) in hists__delete_entry()
322 root_in = &hists->entries_collapsed; in hists__delete_entry()
324 root_in = hists->entries_in; in hists__delete_entry()
325 root_out = &hists->entries; in hists__delete_entry()
331 --hists->nr_entries; in hists__delete_entry()
333 --hists->nr_non_filtered_entries; in hists__delete_entry()
338 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel) in hists__decay_entries() argument
340 struct rb_node *next = rb_first(&hists->entries); in hists__decay_entries()
348 hists__decay_entry(hists, n))) { in hists__decay_entries()
349 hists__delete_entry(hists, n); in hists__decay_entries()
354 void hists__delete_entries(struct hists *hists) in hists__delete_entries() argument
356 struct rb_node *next = rb_first(&hists->entries); in hists__delete_entries()
363 hists__delete_entry(hists, n); in hists__delete_entries()
500 he->hists->callchain_period += period; in hist_entry__add_callchain_period()
502 he->hists->callchain_non_filtered_period += period; in hist_entry__add_callchain_period()
505 static struct hist_entry *hists__findnew_entry(struct hists *hists, in hists__findnew_entry() argument
517 p = &hists->entries_in->rb_node; in hists__findnew_entry()
570 hists->nr_entries++; in hists__findnew_entry()
573 rb_insert_color(&he->rb_node_in, hists->entries_in); in hists__findnew_entry()
583 __hists__add_entry(struct hists *hists, in __hists__add_entry() argument
617 .hists = hists, in __hists__add_entry()
624 }, *he = hists__findnew_entry(hists, &entry, al, sample_self); in __hists__add_entry()
626 if (!hists->has_callchains && he && he->callchain_size != 0) in __hists__add_entry()
627 hists->has_callchains = true; in __hists__add_entry()
631 struct hist_entry *hists__add_entry(struct hists *hists, in hists__add_entry() argument
639 return __hists__add_entry(hists, al, sym_parent, bi, mi, in hists__add_entry()
643 struct hist_entry *hists__add_entry_ops(struct hists *hists, in hists__add_entry_ops() argument
652 return __hists__add_entry(hists, al, sym_parent, bi, mi, in hists__add_entry_ops()
689 struct hists *hists = evsel__hists(iter->evsel); in iter_add_single_mem_entry() local
709 he = hists__add_entry(hists, al, iter->parent, NULL, mi, in iter_add_single_mem_entry()
723 struct hists *hists = evsel__hists(evsel); in iter_finish_mem_entry() local
730 hists__inc_nr_samples(hists, he->filtered); in iter_finish_mem_entry()
793 struct hists *hists = evsel__hists(evsel); in iter_add_next_branch_entry() local
811 he = hists__add_entry(hists, al, iter->parent, &bi[i], NULL, in iter_add_next_branch_entry()
816 hists__inc_nr_samples(hists, he->filtered); in iter_add_next_branch_entry()
903 struct hists *hists = evsel__hists(evsel); in iter_add_single_cumulative_entry() local
909 he = hists__add_entry(hists, al, iter->parent, NULL, NULL, in iter_add_single_cumulative_entry()
925 hists__inc_nr_samples(hists, he->filtered); in iter_add_single_cumulative_entry()
952 .hists = evsel__hists(evsel), in iter_add_next_cumulative_entry()
1093 struct hists *hists = left->hists; in hist_entry__cmp() local
1097 hists__for_each_sort_list(hists, fmt) { in hist_entry__cmp()
1099 !perf_hpp__defined_dynamic_entry(fmt, hists)) in hist_entry__cmp()
1113 struct hists *hists = left->hists; in hist_entry__collapse() local
1117 hists__for_each_sort_list(hists, fmt) { in hist_entry__collapse()
1119 !perf_hpp__defined_dynamic_entry(fmt, hists)) in hist_entry__collapse()
1171 if (!list_is_last(&fmt->list, &he->hists->hpp_list->fields)) { in hist_entry__snprintf_alignment()
1172 const int width = fmt->width(fmt, hpp, he->hists); in hist_entry__snprintf_alignment()
1186 static void hists__apply_filters(struct hists *hists, struct hist_entry *he);
1187 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *he,
1278 hists__apply_filters(he->hists, he); in hist_entry__apply_hierarchy_filters()
1281 static struct hist_entry *hierarchy_insert_entry(struct hists *hists, in hierarchy_insert_entry() argument
1319 hists->nr_entries++; in hierarchy_insert_entry()
1350 static int hists__hierarchy_insert_entry(struct hists *hists, in hists__hierarchy_insert_entry() argument
1360 list_for_each_entry(node, &hists->hpp_formats, list) { in hists__hierarchy_insert_entry()
1366 new_he = hierarchy_insert_entry(hists, root, he, parent, &node->hpp); in hists__hierarchy_insert_entry()
1397 static int hists__collapse_insert_entry(struct hists *hists, in hists__collapse_insert_entry() argument
1407 return hists__hierarchy_insert_entry(hists, root, he); in hists__collapse_insert_entry()
1438 hists->nr_entries++; in hists__collapse_insert_entry()
1445 struct rb_root *hists__get_rotate_entries_in(struct hists *hists) in hists__get_rotate_entries_in() argument
1449 pthread_mutex_lock(&hists->lock); in hists__get_rotate_entries_in()
1451 root = hists->entries_in; in hists__get_rotate_entries_in()
1452 if (++hists->entries_in > &hists->entries_in_array[1]) in hists__get_rotate_entries_in()
1453 hists->entries_in = &hists->entries_in_array[0]; in hists__get_rotate_entries_in()
1455 pthread_mutex_unlock(&hists->lock); in hists__get_rotate_entries_in()
1460 static void hists__apply_filters(struct hists *hists, struct hist_entry *he) in hists__apply_filters() argument
1462 hists__filter_entry_by_dso(hists, he); in hists__apply_filters()
1463 hists__filter_entry_by_thread(hists, he); in hists__apply_filters()
1464 hists__filter_entry_by_symbol(hists, he); in hists__apply_filters()
1465 hists__filter_entry_by_socket(hists, he); in hists__apply_filters()
1468 int hists__collapse_resort(struct hists *hists, struct ui_progress *prog) in hists__collapse_resort() argument
1475 if (!hists__has(hists, need_collapse)) in hists__collapse_resort()
1478 hists->nr_entries = 0; in hists__collapse_resort()
1480 root = hists__get_rotate_entries_in(hists); in hists__collapse_resort()
1491 ret = hists__collapse_insert_entry(hists, &hists->entries_collapsed, n); in hists__collapse_resort()
1501 hists__apply_filters(hists, n); in hists__collapse_resort()
1511 struct hists *hists = a->hists; in hist_entry__sort() local
1515 hists__for_each_sort_list(hists, fmt) { in hist_entry__sort()
1516 if (perf_hpp__should_skip(fmt, a->hists)) in hist_entry__sort()
1527 static void hists__reset_filter_stats(struct hists *hists) in hists__reset_filter_stats() argument
1529 hists->nr_non_filtered_entries = 0; in hists__reset_filter_stats()
1530 hists->stats.total_non_filtered_period = 0; in hists__reset_filter_stats()
1533 void hists__reset_stats(struct hists *hists) in hists__reset_stats() argument
1535 hists->nr_entries = 0; in hists__reset_stats()
1536 hists->stats.total_period = 0; in hists__reset_stats()
1538 hists__reset_filter_stats(hists); in hists__reset_stats()
1541 static void hists__inc_filter_stats(struct hists *hists, struct hist_entry *h) in hists__inc_filter_stats() argument
1543 hists->nr_non_filtered_entries++; in hists__inc_filter_stats()
1544 hists->stats.total_non_filtered_period += h->stat.period; in hists__inc_filter_stats()
1547 void hists__inc_stats(struct hists *hists, struct hist_entry *h) in hists__inc_stats() argument
1550 hists__inc_filter_stats(hists, h); in hists__inc_stats()
1552 hists->nr_entries++; in hists__inc_stats()
1553 hists->stats.total_period += h->stat.period; in hists__inc_stats()
1556 static void hierarchy_recalc_total_periods(struct hists *hists) in hierarchy_recalc_total_periods() argument
1561 node = rb_first(&hists->entries); in hierarchy_recalc_total_periods()
1563 hists->stats.total_period = 0; in hierarchy_recalc_total_periods()
1564 hists->stats.total_non_filtered_period = 0; in hierarchy_recalc_total_periods()
1575 hists->stats.total_period += he->stat.period; in hierarchy_recalc_total_periods()
1577 hists->stats.total_non_filtered_period += he->stat.period; in hierarchy_recalc_total_periods()
1609 static void hists__hierarchy_output_resort(struct hists *hists, in hists__hierarchy_output_resort() argument
1631 hists->nr_entries++; in hists__hierarchy_output_resort()
1633 hists->nr_non_filtered_entries++; in hists__hierarchy_output_resort()
1634 hists__calc_col_len(hists, he); in hists__hierarchy_output_resort()
1638 hists__hierarchy_output_resort(hists, prog, in hists__hierarchy_output_resort()
1701 perf_hpp__defined_dynamic_entry(fmt, he->hists)) in __hists__insert_output_entry()
1706 static void output_resort(struct hists *hists, struct ui_progress *prog, in output_resort() argument
1715 callchain_total = hists->callchain_period; in output_resort()
1717 callchain_total = hists->callchain_non_filtered_period; in output_resort()
1721 hists__reset_stats(hists); in output_resort()
1722 hists__reset_col_len(hists); in output_resort()
1725 hists__hierarchy_output_resort(hists, prog, in output_resort()
1726 &hists->entries_collapsed, in output_resort()
1727 &hists->entries, in output_resort()
1730 hierarchy_recalc_total_periods(hists); in output_resort()
1734 if (hists__has(hists, need_collapse)) in output_resort()
1735 root = &hists->entries_collapsed; in output_resort()
1737 root = hists->entries_in; in output_resort()
1740 hists->entries = RB_ROOT; in output_resort()
1749 __hists__insert_output_entry(&hists->entries, n, min_callchain_hits, use_callchain); in output_resort()
1750 hists__inc_stats(hists, n); in output_resort()
1753 hists__calc_col_len(hists, n); in output_resort()
1774 void hists__output_resort(struct hists *hists, struct ui_progress *prog) in hists__output_resort() argument
1776 output_resort(hists, prog, symbol_conf.use_callchain, NULL); in hists__output_resort()
1779 void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog, in hists__output_resort_cb() argument
1782 output_resort(hists, prog, symbol_conf.use_callchain, cb); in hists__output_resort_cb()
1866 static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, in hists__remove_entry_filter() argument
1901 hists->stats.nr_non_filtered_samples += h->stat.nr_events; in hists__remove_entry_filter()
1903 hists__inc_filter_stats(hists, h); in hists__remove_entry_filter()
1904 hists__calc_col_len(hists, h); in hists__remove_entry_filter()
1908 static bool hists__filter_entry_by_dso(struct hists *hists, in hists__filter_entry_by_dso() argument
1911 if (hists->dso_filter != NULL && in hists__filter_entry_by_dso()
1912 (he->ms.map == NULL || he->ms.map->dso != hists->dso_filter)) { in hists__filter_entry_by_dso()
1920 static bool hists__filter_entry_by_thread(struct hists *hists, in hists__filter_entry_by_thread() argument
1923 if (hists->thread_filter != NULL && in hists__filter_entry_by_thread()
1924 he->thread != hists->thread_filter) { in hists__filter_entry_by_thread()
1932 static bool hists__filter_entry_by_symbol(struct hists *hists, in hists__filter_entry_by_symbol() argument
1935 if (hists->symbol_filter_str != NULL && in hists__filter_entry_by_symbol()
1937 hists->symbol_filter_str) == NULL)) { in hists__filter_entry_by_symbol()
1945 static bool hists__filter_entry_by_socket(struct hists *hists, in hists__filter_entry_by_socket() argument
1948 if ((hists->socket_filter > -1) && in hists__filter_entry_by_socket()
1949 (he->socket != hists->socket_filter)) { in hists__filter_entry_by_socket()
1957 typedef bool (*filter_fn_t)(struct hists *hists, struct hist_entry *he);
1959 static void hists__filter_by_type(struct hists *hists, int type, filter_fn_t filter) in hists__filter_by_type() argument
1963 hists->stats.nr_non_filtered_samples = 0; in hists__filter_by_type()
1965 hists__reset_filter_stats(hists); in hists__filter_by_type()
1966 hists__reset_col_len(hists); in hists__filter_by_type()
1968 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { in hists__filter_by_type()
1971 if (filter(hists, h)) in hists__filter_by_type()
1974 hists__remove_entry_filter(hists, h, type); in hists__filter_by_type()
2015 static void hists__filter_hierarchy(struct hists *hists, int type, const void *arg) in hists__filter_hierarchy() argument
2020 hists->stats.nr_non_filtered_samples = 0; in hists__filter_hierarchy()
2022 hists__reset_filter_stats(hists); in hists__filter_hierarchy()
2023 hists__reset_col_len(hists); in hists__filter_hierarchy()
2025 nd = rb_first(&hists->entries); in hists__filter_hierarchy()
2057 hists__remove_entry_filter(hists, h, type); in hists__filter_hierarchy()
2063 hierarchy_recalc_total_periods(hists); in hists__filter_hierarchy()
2069 nd = rb_first(&hists->entries); in hists__filter_hierarchy()
2074 rb_erase(&h->rb_node, &hists->entries); in hists__filter_hierarchy()
2079 hists->entries = new_root; in hists__filter_hierarchy()
2082 void hists__filter_by_thread(struct hists *hists) in hists__filter_by_thread() argument
2085 hists__filter_hierarchy(hists, HIST_FILTER__THREAD, in hists__filter_by_thread()
2086 hists->thread_filter); in hists__filter_by_thread()
2088 hists__filter_by_type(hists, HIST_FILTER__THREAD, in hists__filter_by_thread()
2092 void hists__filter_by_dso(struct hists *hists) in hists__filter_by_dso() argument
2095 hists__filter_hierarchy(hists, HIST_FILTER__DSO, in hists__filter_by_dso()
2096 hists->dso_filter); in hists__filter_by_dso()
2098 hists__filter_by_type(hists, HIST_FILTER__DSO, in hists__filter_by_dso()
2102 void hists__filter_by_symbol(struct hists *hists) in hists__filter_by_symbol() argument
2105 hists__filter_hierarchy(hists, HIST_FILTER__SYMBOL, in hists__filter_by_symbol()
2106 hists->symbol_filter_str); in hists__filter_by_symbol()
2108 hists__filter_by_type(hists, HIST_FILTER__SYMBOL, in hists__filter_by_symbol()
2112 void hists__filter_by_socket(struct hists *hists) in hists__filter_by_socket() argument
2115 hists__filter_hierarchy(hists, HIST_FILTER__SOCKET, in hists__filter_by_socket()
2116 &hists->socket_filter); in hists__filter_by_socket()
2118 hists__filter_by_type(hists, HIST_FILTER__SOCKET, in hists__filter_by_socket()
2128 void hists__inc_nr_events(struct hists *hists, u32 type) in hists__inc_nr_events() argument
2130 events_stats__inc(&hists->stats, type); in hists__inc_nr_events()
2133 void hists__inc_nr_samples(struct hists *hists, bool filtered) in hists__inc_nr_samples() argument
2135 events_stats__inc(&hists->stats, PERF_RECORD_SAMPLE); in hists__inc_nr_samples()
2137 hists->stats.nr_non_filtered_samples++; in hists__inc_nr_samples()
2140 static struct hist_entry *hists__add_dummy_entry(struct hists *hists, in hists__add_dummy_entry() argument
2149 if (hists__has(hists, need_collapse)) in hists__add_dummy_entry()
2150 root = &hists->entries_collapsed; in hists__add_dummy_entry()
2152 root = hists->entries_in; in hists__add_dummy_entry()
2174 he->hists = hists; in hists__add_dummy_entry()
2179 hists__inc_stats(hists, he); in hists__add_dummy_entry()
2186 static struct hist_entry *add_dummy_hierarchy_entry(struct hists *hists, in add_dummy_hierarchy_entry() argument
2222 he->hists = hists; in add_dummy_hierarchy_entry()
2224 hists__inc_stats(hists, he); in add_dummy_hierarchy_entry()
2230 static struct hist_entry *hists__find_entry(struct hists *hists, in hists__find_entry() argument
2235 if (hists__has(hists, need_collapse)) in hists__find_entry()
2236 n = hists->entries_collapsed.rb_node; in hists__find_entry()
2238 n = hists->entries_in->rb_node; in hists__find_entry()
2303 void hists__match(struct hists *leader, struct hists *other) in hists__match()
2329 static int hists__link_hierarchy(struct hists *leader_hists, in hists__link_hierarchy()
2344 if (leader->hists == leader_hists) { in hists__link_hierarchy()
2378 int hists__link(struct hists *leader, struct hists *other) in hists__link()
2458 u64 hists__total_period(struct hists *hists) in hists__total_period() argument
2460 return symbol_conf.filter_relative ? hists->stats.total_non_filtered_period : in hists__total_period()
2461 hists->stats.total_period; in hists__total_period()
2464 int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq) in __hists__scnprintf_title() argument
2468 const struct dso *dso = hists->dso_filter; in __hists__scnprintf_title()
2469 const struct thread *thread = hists->thread_filter; in __hists__scnprintf_title()
2470 int socket_id = hists->socket_filter; in __hists__scnprintf_title()
2471 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __hists__scnprintf_title()
2472 u64 nr_events = hists->stats.total_period; in __hists__scnprintf_title()
2473 struct perf_evsel *evsel = hists_to_evsel(hists); in __hists__scnprintf_title()
2481 nr_samples = hists->stats.nr_non_filtered_samples; in __hists__scnprintf_title()
2482 nr_events = hists->stats.total_non_filtered_period; in __hists__scnprintf_title()
2492 struct hists *pos_hists = evsel__hists(pos); in __hists__scnprintf_title()
2518 if (hists->uid_filter_str) in __hists__scnprintf_title()
2520 ", UID: %s", hists->uid_filter_str); in __hists__scnprintf_title()
2522 if (hists__has(hists, thread)) { in __hists__scnprintf_title()
2566 int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list) in __hists__init() argument
2568 memset(hists, 0, sizeof(*hists)); in __hists__init()
2569 hists->entries_in_array[0] = hists->entries_in_array[1] = RB_ROOT; in __hists__init()
2570 hists->entries_in = &hists->entries_in_array[0]; in __hists__init()
2571 hists->entries_collapsed = RB_ROOT; in __hists__init()
2572 hists->entries = RB_ROOT; in __hists__init()
2573 pthread_mutex_init(&hists->lock, NULL); in __hists__init()
2574 hists->socket_filter = -1; in __hists__init()
2575 hists->hpp_list = hpp_list; in __hists__init()
2576 INIT_LIST_HEAD(&hists->hpp_formats); in __hists__init()
2594 static void hists__delete_all_entries(struct hists *hists) in hists__delete_all_entries() argument
2596 hists__delete_entries(hists); in hists__delete_all_entries()
2597 hists__delete_remaining_entries(&hists->entries_in_array[0]); in hists__delete_all_entries()
2598 hists__delete_remaining_entries(&hists->entries_in_array[1]); in hists__delete_all_entries()
2599 hists__delete_remaining_entries(&hists->entries_collapsed); in hists__delete_all_entries()
2604 struct hists *hists = evsel__hists(evsel); in hists_evsel__exit() local
2608 hists__delete_all_entries(hists); in hists_evsel__exit()
2610 list_for_each_entry_safe(node, tmp, &hists->hpp_formats, list) { in hists_evsel__exit()
2622 struct hists *hists = evsel__hists(evsel); in hists_evsel__init() local
2624 __hists__init(hists, &perf_hpp_list); in hists_evsel__init()