Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/perf/tests/
H A Dhists_filter.c71 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local
74 hists->thread_filter = NULL; in add_hist_entries()
75 hists->dso_filter = NULL; in add_hist_entries()
76 hists->symbol_filter_str = NULL; in add_hist_entries()
154 struct hists *hists = evsel__hists(evsel); in test__hists_filter() local
156 hists__collapse_resort(hists, NULL); in test__hists_filter()
161 print_hists_out(hists); in test__hists_filter()
165 hists->stats.nr_samples == 10); in test__hists_filter()
167 hists->nr_entries == 9); in test__hists_filter()
169 hists->stats.total_period == 1000); in test__hists_filter()
[all …]
H A Dhists_cumulate.c80 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument
83 struct evsel *evsel = hists_to_evsel(hists); in add_hist_entries()
130 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
137 if (hists__has(hists, need_collapse)) in del_hist_entries()
138 root_in = &hists->entries_collapsed; in del_hist_entries()
140 root_in = hists->entries_in; in del_hist_entries()
142 root_out = &hists->entries; in del_hist_entries()
190 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
205 hists__collapse_resort(hists, NULL); in do_test()
206 evsel__output_resort(hists_to_evsel(hists), NULL); in do_test()
[all …]
H A Dhists_link.c81 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local
92 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
112 he = hists__add_entry(hists, &al, NULL, in add_hist_entries()
160 static int __validate_match(struct hists *hists) in __validate_match() argument
169 if (hists__has(hists, need_collapse)) in __validate_match()
170 root = &hists->entries_collapsed; in __validate_match()
172 root = hists->entries_in; in __validate_match()
203 static int validate_match(struct hists *leader, struct hists *other) in validate_match()
208 static int __validate_link(struct hists *hists, int idx) in __validate_link() argument
221 if (hists__has(hists, need_collapse)) in __validate_link()
[all …]
H A Dhists_output.c50 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument
53 struct evsel *evsel = hists_to_evsel(hists); in add_hist_entries()
95 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
102 if (hists__has(hists, need_collapse)) in del_hist_entries()
103 root_in = &hists->entries_collapsed; in del_hist_entries()
105 root_in = hists->entries_in; in del_hist_entries()
107 root_out = &hists->entries; in del_hist_entries()
141 struct hists *hists = evsel__hists(evsel); in test1() local
166 err = add_hist_entries(hists, machine); in test1()
170 hists__collapse_resort(hists, NULL); in test1()
[all …]
H A Dhists_common.c163 void print_hists_in(struct hists *hists) in print_hists_in() argument
169 if (hists__has(hists, need_collapse)) in print_hists_in()
170 root = &hists->entries_collapsed; in print_hists_in()
172 root = hists->entries_in; in print_hists_in()
195 void print_hists_out(struct hists *hists) in print_hists_out() argument
201 root = &hists->entries; in print_hists_out()
H A Dhists_common.h73 void print_hists_in(struct hists *hists);
74 void print_hists_out(struct hists *hists);
/openbmc/linux/tools/perf/util/
H A Dhist.h91 struct hists { struct
150 struct hist_entry *hists__add_entry(struct hists *hists,
159 struct hist_entry *hists__add_entry_ops(struct hists *hists,
169 struct hist_entry *hists__add_entry_block(struct hists *hists,
183 struct hists *hists);
193 void hists__output_resort(struct hists *hists, struct ui_progress *prog);
194 void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
196 int hists__collapse_resort(struct hists *hists, struct ui_progress *prog);
198 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel);
199 void hists__delete_entries(struct hists *hists);
[all …]
H A Dhist.c34 static bool hists__filter_entry_by_dso(struct hists *hists,
36 static bool hists__filter_entry_by_thread(struct hists *hists,
38 static bool hists__filter_entry_by_symbol(struct hists *hists,
40 static bool hists__filter_entry_by_socket(struct hists *hists,
43 u16 hists__col_len(struct hists *hists, enum hist_column col) in hists__col_len() argument
45 return hists->col_len[col]; in hists__col_len()
48 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__set_col_len() argument
50 hists->col_len[col] = len; in hists__set_col_len()
53 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__new_col_len() argument
55 if (len > hists__col_len(hists, col)) { in hists__new_col_len()
[all …]
H A Dstream.c113 static void init_hot_callchain(struct hists *hists, struct evsel_streams *es) in init_hot_callchain() argument
115 struct rb_node *next = rb_first_cached(&hists->entries); in init_hot_callchain()
125 es->streams_hits = callchain_total_hits(hists); in init_hot_callchain()
138 struct hists *hists = evsel__hists(pos); in evlist__init_callchain_streams() local
140 hists__output_resort(hists, NULL); in evlist__init_callchain_streams()
141 init_hot_callchain(hists, &es[i]); in evlist__init_callchain_streams()
H A Dblock-info.c165 struct hists *hists __maybe_unused, in block_column_header()
177 struct hists *hists __maybe_unused) in block_column_width()
402 static int process_block_report(struct hists *hists, in process_block_report() argument
407 struct rb_node *next = rb_first_cached(&hists->entries); in process_block_report()
447 struct hists *hists = evsel__hists(pos); in block_info__create_report() local
449 process_block_report(hists, &block_reports[i], total_cycles, in block_info__create_report()
H A Dsort.h145 struct hists *hists; member
196 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit()
296 struct hists block_hists;
H A Dcallchain.h16 struct hists;
310 u64 callchain_total_hits(struct hists *hists);
H A Dsort.c335 if (!hists__has(left->hists, dso)) { in sort__sym_cmp()
898 evsel = hists_to_evsel(he->hists); in get_trace_output()
920 evsel = hists_to_evsel(left->hists); in sort__trace_cmp()
937 evsel = hists_to_evsel(he->hists); in hist_entry__trace_snprintf()
2257 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists) in perf_hpp__reset_sort_width() argument
2265 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
2269 struct hists *hists, int line __maybe_unused, in __sort__hpp_header() argument
2278 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header()
2285 struct hists *hists) in __sort__hpp_width() argument
2293 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width()
[all …]
/openbmc/linux/tools/perf/ui/stdio/
H A Dhist.c427 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf()
454 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf()
459 struct hists *hists, in hist_entry__hierarchy_fprintf() argument
477 fmt_node = list_first_entry(&hists->hpp_formats, in hist_entry__hierarchy_fprintf()
501 (hists->nr_hpp_node - 2) * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf()
528 u64 total = hists__total_period(hists); in hist_entry__hierarchy_fprintf()
591 struct hists *hists = he->hists; in hist_entry__fprintf() local
592 u64 total_period = hists->stats.total_period; in hist_entry__fprintf()
598 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf()
632 static int hists__fprintf_hierarchy_headers(struct hists *hists, in hists__fprintf_hierarchy_headers() argument
[all …]
/openbmc/linux/tools/perf/ui/
H A Dhist.c31 struct hists *hists = he->hists; in __hpp__fmt() local
32 struct evsel *evsel = hists_to_evsel(hists); in __hpp__fmt()
38 u64 total = hists__total_period(hists); in __hpp__fmt()
56 u64 total = hists__total_period(pair->hists); in __hpp__fmt()
61 evsel = hists_to_evsel(pair->hists); in __hpp__fmt()
167 struct evsel *evsel = hists_to_evsel(pair->hists); in hist_entry__new_pair()
172 struct evsel *evsel = hists_to_evsel(pair->hists); in hist_entry__new_pair()
189 struct evsel *evsel = hists_to_evsel(a->hists); in __hpp__group_sort_idx()
243 evsel = hists_to_evsel(a->hists); in __hpp__sort()
292 struct hists *hists) in hpp__width_fn() argument
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-c2c.c49 struct hists hists; member
63 struct c2c_hists *hists; member
88 struct c2c_hists hists; member
178 if (c2c_he->hists) { in c2c_he_free()
179 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free()
180 zfree(&c2c_he->hists); in c2c_he_free()
195 static int c2c_hists__init(struct c2c_hists *hists,
205 struct c2c_hists *hists; in he__get_c2c_hists() local
209 if (c2c_he->hists) in he__get_c2c_hists()
210 return c2c_he->hists; in he__get_c2c_hists()
[all …]
H A Dbuiltin-diff.c76 struct hists *hists; member
274 u64 total = hists__total_period(he->hists); in period_percent()
314 u64 he_total = he->hists->stats.total_period; in formula_delta()
315 u64 pair_total = pair->hists->stats.total_period; in formula_delta()
318 he_total = he->hists->stats.total_non_filtered_period; in formula_delta()
319 pair_total = pair->hists->stats.total_non_filtered_period; in formula_delta()
399 struct hists *hists = evsel__hists(evsel); in diff__process_sample_event() local
427 if (!hists__add_entry_ops(hists, &block_hist_ops, &al, NULL, in diff__process_sample_event()
447 if (!hists__add_entry(hists, &al, NULL, NULL, NULL, NULL, sample, in diff__process_sample_event()
461 hists->stats.total_period += sample->period; in diff__process_sample_event()
[all …]
H A Dbuiltin-annotate.c231 struct hists *hists = evsel__hists(evsel); in evsel__add_sample() local
263 he = hists__add_entry(hists, al, NULL, NULL, NULL, NULL, sample, true); in evsel__add_sample()
268 hists__inc_nr_samples(hists, true); in evsel__add_sample()
322 static void hists__find_annotations(struct hists *hists, in hists__find_annotations() argument
326 struct rb_node *nd = rb_first_cached(&hists->entries), *next; in hists__find_annotations()
342 u64 total = hists__total_period(hists); in hists__find_annotations()
448 struct hists *hists = evsel__hists(pos); in __cmd_annotate() local
449 u32 nr_samples = hists->stats.nr_samples; in __cmd_annotate()
453 hists__collapse_resort(hists, NULL); in __cmd_annotate()
461 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
H A Dbuiltin-top.c123 evsel = hists_to_evsel(he->hists); in perf_top__parse_source()
201 EXCLUSIVE_LOCKS_REQUIRED(he->hists->lock) in perf_top__record_precise_ip()
223 * This function is now called with he->hists->lock held. in perf_top__record_precise_ip()
226 mutex_unlock(&he->hists->lock); in perf_top__record_precise_ip()
236 mutex_lock(&he->hists->lock); in perf_top__record_precise_ip()
251 evsel = hists_to_evsel(he->hists); in perf_top__show_details()
286 struct hists *hists = evsel__hists(pos); in perf_top__resort_hists() local
292 hists__unlink(hists); in perf_top__resort_hists()
296 hists__delete_entries(hists); in perf_top__resort_hists()
325 struct hists *hists = evsel__hists(evsel); perf_top__print_sym_table() local
397 struct hists *hists = evsel__hists(top->sym_evsel); perf_top__prompt_symbol() local
644 struct hists *hists = evsel__hists(pos); display_thread_tui() local
831 struct hists *hists = evsel__hists(evsel); perf_event__process_sample() local
[all...]
H A Dbuiltin-kvm.c84 struct hists hists; member
115 struct hists *hists __maybe_unused);
120 int width = fmt_width(fmt, hpp, he->hists); in ev_name_entry()
162 int width = fmt_width(fmt, hpp, he->hists); \
212 int width = fmt_width(fmt, hpp, he->hists); in ev_entry_mean()
260 int width = fmt_width(fmt, hpp, he->hists); in EV_METRIC_PERCENT()
293 int width = fmt_width(fmt, hpp, he->hists); in ev_entry_count_precent()
336 struct hists *hists __maybe_unused) in fmt_width()
345 struct hists *hists, int line __maybe_unused, in fmt_header() argument
350 int width = fmt_width(fmt, hpp, hists); in fmt_header()
[all …]
H A Dbuiltin-report.c470 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events() argument
475 unsigned long nr_samples = hists->stats.nr_samples; in hists__fprintf_nr_sample_events()
476 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events()
477 struct evsel *evsel = hists_to_evsel(hists); in hists__fprintf_nr_sample_events()
480 int socked_id = hists->socket_filter; in hists__fprintf_nr_sample_events()
486 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
487 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
497 const struct hists *pos_hists = evsel__hists(pos); in hists__fprintf_nr_sample_events()
562 struct hists *hist in evlist__tty_browse_hists() local
699 struct hists *hists = evsel__hists(pos); report__collapse_hists() local
757 struct hists *hists = evsel__hists(evsel); count_sample_event() local
[all...]
/openbmc/linux/tools/perf/ui/browsers/
H A Dhists.c58 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter()
64 struct hists *hists = browser->hists; in hist_browser__get_folding() local
67 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding()
82 struct hists *hists = hb->hists; in hist_browser__set_title_space() local
83 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__set_title_space()
97 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
106 struct hists *hists = hb->hists; in hist_browser__update_rows() local
107 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__update_rows()
132 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
608 nd = rb_first_cached(&browser->hists->entries); in __hist_browser__set_folding()
[all …]
H A Dhists.h11 struct hists *hists; member
32 struct hist_browser *hist_browser__new(struct hists *hists);
37 struct hists *hists);
H A DBuild2 perf-y += hists.o
/openbmc/linux/tools/perf/ui/gtk/
H A Dhists.c293 static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, in perf_gtk__show_hists() argument
314 hists__for_each_format(hists, fmt) in perf_gtk__show_hists()
325 hists__for_each_format(hists, fmt) { in perf_gtk__show_hists()
326 if (perf_hpp__should_skip(fmt, hists)) in perf_gtk__show_hists()
358 for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) { in perf_gtk__show_hists()
361 u64 total = hists__total_period(h->hists); in perf_gtk__show_hists()
375 hists__for_each_format(hists, fmt) { in perf_gtk__show_hists()
376 if (perf_hpp__should_skip(fmt, h->hists)) in perf_gtk__show_hists()
388 symbol_conf.use_callchain && hists__has(hists, sym)) { in perf_gtk__show_hists()
405 static void perf_gtk__add_hierarchy_entries(struct hists *hists, in perf_gtk__add_hierarchy_entries() argument
[all …]

12