Home
last modified time | relevance | path

Searched refs:hists (Results 1 – 22 of 22) sorted by relevance

/tools/perf/tests/
Dhists_filter.c70 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local
73 hists->thread_filter = NULL; in add_hist_entries()
74 hists->dso_filter = NULL; in add_hist_entries()
75 hists->symbol_filter_str = NULL; in add_hist_entries()
143 struct hists *hists = evsel__hists(evsel); in test__hists_filter() local
145 hists__collapse_resort(hists, NULL); in test__hists_filter()
150 print_hists_out(hists); in test__hists_filter()
154 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
156 hists->nr_entries == 9); in test__hists_filter()
158 hists->stats.total_period == 1000); in test__hists_filter()
[all …]
Dhists_link.c79 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local
90 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
109 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
142 static int __validate_match(struct hists *hists) in __validate_match() argument
151 if (hists__has(hists, need_collapse)) in __validate_match()
152 root = &hists->entries_collapsed; in __validate_match()
154 root = hists->entries_in; in __validate_match()
185 static int validate_match(struct hists *leader, struct hists *other) in validate_match()
190 static int __validate_link(struct hists *hists, int idx) in __validate_link() argument
203 if (hists__has(hists, need_collapse)) in __validate_link()
[all …]
Dhists_cumulate.c79 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument
82 struct perf_evsel *evsel = hists_to_evsel(hists); in add_hist_entries()
125 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
132 if (hists__has(hists, need_collapse)) in del_hist_entries()
133 root_in = &hists->entries_collapsed; in del_hist_entries()
135 root_in = hists->entries_in; in del_hist_entries()
137 root_out = &hists->entries; in del_hist_entries()
176 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
191 hists__collapse_resort(hists, NULL); in do_test()
192 perf_evsel__output_resort(hists_to_evsel(hists), NULL); in do_test()
[all …]
Dhists_output.c49 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument
52 struct perf_evsel *evsel = hists_to_evsel(hists); in add_hist_entries()
91 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
98 if (hists__has(hists, need_collapse)) in del_hist_entries()
99 root_in = &hists->entries_collapsed; in del_hist_entries()
101 root_in = hists->entries_in; in del_hist_entries()
103 root_out = &hists->entries; in del_hist_entries()
127 struct hists *hists = evsel__hists(evsel); in test1() local
152 err = add_hist_entries(hists, machine); in test1()
156 hists__collapse_resort(hists, NULL); in test1()
[all …]
Dhists_common.h73 void print_hists_in(struct hists *hists);
74 void print_hists_out(struct hists *hists);
Dhists_common.c161 void print_hists_in(struct hists *hists) in print_hists_in() argument
167 if (hists__has(hists, need_collapse)) in print_hists_in()
168 root = &hists->entries_collapsed; in print_hists_in()
170 root = hists->entries_in; in print_hists_in()
191 void print_hists_out(struct hists *hists) in print_hists_out() argument
197 root = &hists->entries; in print_hists_out()
/tools/perf/util/
Dhist.h70 struct hists { struct
128 struct hist_entry *hists__add_entry(struct hists *hists,
136 struct hist_entry *hists__add_entry_ops(struct hists *hists,
155 struct hists *hists);
163 void hists__output_resort(struct hists *hists, struct ui_progress *prog);
164 void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
166 int hists__collapse_resort(struct hists *hists, struct ui_progress *prog);
168 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel);
169 void hists__delete_entries(struct hists *hists);
170 void hists__output_recalc_col_len(struct hists *hists, int max_rows);
[all …]
Dhist.c19 static bool hists__filter_entry_by_dso(struct hists *hists,
21 static bool hists__filter_entry_by_thread(struct hists *hists,
23 static bool hists__filter_entry_by_symbol(struct hists *hists,
25 static bool hists__filter_entry_by_socket(struct hists *hists,
28 u16 hists__col_len(struct hists *hists, enum hist_column col) in hists__col_len() argument
30 return hists->col_len[col]; in hists__col_len()
33 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__set_col_len() argument
35 hists->col_len[col] = len; in hists__set_col_len()
38 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__new_col_len() argument
40 if (len > hists__col_len(hists, col)) { in hists__new_col_len()
[all …]
Dsort.h136 struct hists *hists; member
176 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit()
Dsort.c247 if (!hists__has(left->hists, dso) || hists__has(right->hists, dso)) { in sort__sym_cmp()
633 evsel = hists_to_evsel(he->hists); in get_trace_output()
654 evsel = hists_to_evsel(left->hists); in sort__trace_cmp()
671 evsel = hists_to_evsel(he->hists); in hist_entry__trace_snprintf()
1623 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists) in perf_hpp__reset_sort_width() argument
1631 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
1635 struct hists *hists, int line __maybe_unused, in __sort__hpp_header() argument
1644 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header()
1651 struct hists *hists) in __sort__hpp_width() argument
1659 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width()
[all …]
/tools/perf/ui/browsers/
Dhists.h9 struct hists *hists; member
29 struct hist_browser *hist_browser__new(struct hists *hists);
33 struct hists *hists);
Dhists.c44 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()
[all …]
DBuild2 libperf-y += hists.o
/tools/perf/ui/
Dhist.c26 struct hists *hists = he->hists; in __hpp__fmt() local
27 struct perf_evsel *evsel = hists_to_evsel(hists); in __hpp__fmt()
33 u64 total = hists__total_period(hists); in __hpp__fmt()
51 u64 total = hists__total_period(pair->hists); in __hpp__fmt()
56 evsel = hists_to_evsel(pair->hists); in __hpp__fmt()
163 evsel = hists_to_evsel(a->hists); in __hpp__sort()
175 evsel = hists_to_evsel(pair->hists); in __hpp__sort()
180 evsel = hists_to_evsel(pair->hists); in __hpp__sort()
222 struct hists *hists) in hpp__width_fn() argument
225 struct perf_evsel *evsel = hists_to_evsel(hists); in hpp__width_fn()
[all …]
/tools/perf/ui/stdio/
Dhist.c487 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf()
514 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf()
519 struct hists *hists, in hist_entry__hierarchy_fprintf() argument
537 fmt_node = list_first_entry(&hists->hpp_formats, in hist_entry__hierarchy_fprintf()
561 (hists->nr_hpp_node - 2) * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf()
588 u64 total = hists__total_period(hists); in hist_entry__hierarchy_fprintf()
609 struct hists *hists = he->hists; in hist_entry__fprintf() local
610 u64 total_period = hists->stats.total_period; in hist_entry__fprintf()
616 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf()
646 static int hists__fprintf_hierarchy_headers(struct hists *hists, in hists__fprintf_hierarchy_headers() argument
[all …]
/tools/perf/
Dbuiltin-c2c.c40 struct hists hists; member
52 struct c2c_hists *hists; member
71 struct c2c_hists hists; member
145 if (c2c_he->hists) { in c2c_he_free()
146 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free()
147 free(c2c_he->hists); in c2c_he_free()
160 static int c2c_hists__init(struct c2c_hists *hists,
170 struct c2c_hists *hists; in he__get_c2c_hists() local
174 if (c2c_he->hists) in he__get_c2c_hists()
175 return c2c_he->hists; in he__get_c2c_hists()
[all …]
Dbuiltin-diff.c53 struct hists *hists; member
234 u64 total = hists__total_period(he->hists); in period_percent()
274 u64 he_total = he->hists->stats.total_period; in formula_delta()
275 u64 pair_total = pair->hists->stats.total_period; in formula_delta()
278 he_total = he->hists->stats.total_non_filtered_period; in formula_delta()
279 pair_total = pair->hists->stats.total_non_filtered_period; in formula_delta()
333 struct hists *hists = evsel__hists(evsel); in diff__process_sample_event() local
342 if (!hists__add_entry(hists, &al, NULL, NULL, NULL, sample, true)) { in diff__process_sample_event()
353 hists->stats.total_period += sample->period; in diff__process_sample_event()
355 hists->stats.total_non_filtered_period += sample->period; in diff__process_sample_event()
[all …]
Dbuiltin-annotate.c154 struct hists *hists = evsel__hists(evsel); in perf_evsel__add_sample() local
181 he = hists__add_entry(hists, al, NULL, NULL, NULL, sample, true); in perf_evsel__add_sample()
186 hists__inc_nr_samples(hists, true); in perf_evsel__add_sample()
227 static void hists__find_annotations(struct hists *hists, in hists__find_annotations() argument
231 struct rb_node *nd = rb_first(&hists->entries), *next; in hists__find_annotations()
341 struct hists *hists = evsel__hists(pos); in __cmd_annotate() local
342 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate()
346 hists__collapse_resort(hists, NULL); in __cmd_annotate()
355 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
Dbuiltin-top.c216 pthread_mutex_unlock(&he->hists->lock); in perf_top__record_precise_ip()
226 pthread_mutex_lock(&he->hists->lock); in perf_top__record_precise_ip()
272 struct hists *hists = evsel__hists(evsel); in perf_top__print_sym_table() local
283 if (hists->stats.nr_lost_warned != in perf_top__print_sym_table()
284 hists->stats.nr_events[PERF_RECORD_LOST]) { in perf_top__print_sym_table()
285 hists->stats.nr_lost_warned = in perf_top__print_sym_table()
286 hists->stats.nr_events[PERF_RECORD_LOST]; in perf_top__print_sym_table()
289 hists->stats.nr_lost_warned); in perf_top__print_sym_table()
300 hists__delete_entries(hists); in perf_top__print_sym_table()
302 hists__decay_entries(hists, top->hide_user_symbols, in perf_top__print_sym_table()
[all …]
Dbuiltin-report.c360 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events() argument
365 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
366 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events()
367 struct perf_evsel *evsel = hists_to_evsel(hists); in hists__fprintf_nr_sample_events()
370 int socked_id = hists->socket_filter; in hists__fprintf_nr_sample_events()
376 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
377 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
387 const struct hists *pos_hists = evsel__hists(pos); in hists__fprintf_nr_sample_events()
433 struct hists *hists = evsel__hists(pos); in perf_evlist__tty_browse_hists() local
440 hists__fprintf_nr_sample_events(hists, rep, evname, stdout); in perf_evlist__tty_browse_hists()
[all …]
/tools/perf/ui/gtk/
Dhists.c291 static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, in perf_gtk__show_hists() argument
312 hists__for_each_format(hists, fmt) in perf_gtk__show_hists()
323 hists__for_each_format(hists, fmt) { in perf_gtk__show_hists()
324 if (perf_hpp__should_skip(fmt, hists)) in perf_gtk__show_hists()
356 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { in perf_gtk__show_hists()
359 u64 total = hists__total_period(h->hists); in perf_gtk__show_hists()
373 hists__for_each_format(hists, fmt) { in perf_gtk__show_hists()
374 if (perf_hpp__should_skip(fmt, h->hists)) in perf_gtk__show_hists()
385 if (symbol_conf.use_callchain && hists__has(hists, sym)) { in perf_gtk__show_hists()
402 static void perf_gtk__add_hierarchy_entries(struct hists *hists, in perf_gtk__add_hierarchy_entries() argument
[all …]
DBuild4 gtk-y += hists.o