/linux/tools/perf/tests/ |
H A D | hists_filter.c | 71 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 D | hists_cumulate.c | 80 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 *hist argument 266 struct hists *hists = evsel__hists(evsel); test1() local 317 struct hists *hists = evsel__hists(evsel); test2() local 465 struct hists *hists = evsel__hists(evsel); test3() local 522 struct hists *hists = evsel__hists(evsel); test4() local [all...] |
H A D | hists_link.c | 81 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 D | hists_output.c | 50 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 *hist in test1() local 243 struct hists *hists = evsel__hists(evsel); test2() local 299 struct hists *hists = evsel__hists(evsel); test3() local 373 struct hists *hists = evsel__hists(evsel); test4() local 475 struct hists *hists = evsel__hists(evsel); test5() local [all...] |
H A D | hists_common.c | 163 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 D | hists_common.h | 73 void print_hists_in(struct hists *hists); 74 void print_hists_out(struct hists *hists);
|
/linux/tools/perf/ui/ |
H A D | hist.c | 26 static int __hpp__fmt_print(struct perf_hpp *hpp, struct hists *hists, u64 val, in __hpp__fmt_print() argument 32 u64 total = hists__total_period(hists); in __hpp__fmt_print() 50 struct hists *hists; member 60 struct hists *hists = he->hists; in __hpp__fmt() local 61 struct evsel *evsel = hists_to_evsel(hists); in __hpp__fmt() 75 values[0].hists in __hpp__fmt() 298 hpp__width_fn(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp __maybe_unused,struct hists * hists) hpp__width_fn() argument 323 hpp__header_fn(struct perf_hpp_fmt * fmt,struct perf_hpp * hpp,struct hists * hists,int line __maybe_unused,int * span __maybe_unused) hpp__header_fn() argument 763 hists__sort_list_width(struct hists * hists) hists__sort_list_width() argument 788 hists__overhead_width(struct hists * hists) hists__overhead_width() argument 810 perf_hpp__reset_width(struct perf_hpp_fmt * fmt,struct hists * hists) perf_hpp__reset_width() argument 849 hists__reset_column_width(struct hists * hists) hists__reset_column_width() argument 882 add_hierarchy_fmt(struct hists * hists,struct perf_hpp_fmt * fmt) add_hierarchy_fmt() argument 927 struct hists *hists; perf_hpp__setup_hists_formats() local [all...] |
/linux/tools/perf/ui/stdio/ |
H A D | hist.c | 427 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 …]
|
/linux/tools/perf/ |
H A D | builtin-c2c.c | 50 struct hists hists; member 64 struct c2c_hists *hists; member 89 struct c2c_hists hists; member 179 if (c2c_he->hists) { in c2c_he_free() 180 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free() 181 zfree(&c2c_he->hists); in c2c_he_free() 196 static int c2c_hists__init(struct c2c_hists *hists, 206 struct c2c_hists *hists; in he__get_c2c_hists() local 210 if (c2c_he->hists) in he__get_c2c_hists() 211 return c2c_he->hists; in he__get_c2c_hists() [all …]
|
H A D | builtin-top.c | 123 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...] |
/linux/tools/perf/ui/browsers/ |
H A D | hists.c | 59 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter() 65 struct hists *hists = browser->hists; in hist_browser__get_folding() local 68 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding() 83 struct hists *hists = hb->hists; in hist_browser__set_title_space() local 84 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__set_title_space() 98 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries() 107 struct hists *hists = hb->hists; in hist_browser__update_rows() local 108 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__update_rows() 133 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions() 609 nd = rb_first_cached(&browser->hists->entries); in __hist_browser__set_folding() [all …]
|
H A D | hists.h | 11 struct hists *hists; member 32 struct hist_browser *hist_browser__new(struct hists *hists); 37 struct hists *hists);
|
H A D | annotate-data.c | 24 struct type_hist_entry *hists; member 70 update_hist_entry(&entry->hists[k++], &h->addr[offset]); in get_member_overhead() 90 entry->hists = calloc(browser->nr_events, sizeof(*entry->hists)); in add_child_entries() 91 if (entry->hists == NULL) { in add_child_entries() 157 struct evsel *evsel = hists_to_evsel(he->hists); in annotated_data_browser__collect_entries() 175 zfree(&pos->hists); in annotated_data_browser__delete_entries() 394 struct evsel *leader = hists_to_evsel(he->hists); in browser__write() 425 browser__write_overhead(uib, h, &be->hists[idx++], row); in browser__write()
|
H A D | Build | 3 perf-ui-y += hists.o
|
H A D | annotate.c | 712 struct hists *hists = evsel__hists(evsel); in annotate_browser__run() local 722 hists__scnprintf_title(hists, title, sizeof(title)); in annotate_browser__run() 758 hists__scnprintf_title(hists, title, sizeof(title)); in annotate_browser__run() 909 hists__scnprintf_title(hists, title, sizeof(title)); in annotate_browser__run()
|
/linux/tools/perf/ui/gtk/ |
H A D | hists.c | 293 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 …]
|
H A D | Build | 4 gtk-y += hists.o
|
/linux/tools/perf/util/ |
H A D | stream.c | 112 static void init_hot_callchain(struct hists *hists, struct evsel_streams *es) 114 struct rb_node *next = rb_first_cached(&hists->entries); in init_hot_callchain() 124 es->streams_hits = callchain_total_hits(hists); in init_hot_callchain() 137 struct hists *hists = evsel__hists(pos); in evlist__init_callchain_streams() 139 hists__output_resort(hists, NULL); in evlist__init_callchain_streams() 140 init_hot_callchain(hists, &es[i]); in evlist__init_callchain_streams() 113 init_hot_callchain(struct hists * hists,struct evsel_streams * es) init_hot_callchain() argument 138 struct hists *hists = evsel__hists(pos); evlist__init_callchain_streams() local
|
H A D | block-info.c | 160 hists_to_evsel(he->hists)); in block_info__process_sym() 180 struct hists *hists __maybe_unused, in block_column_header() 192 struct hists *hists __maybe_unused) in block_column_width() 438 static int process_block_report(struct hists *hists, in process_block_report() argument 443 struct rb_node *next = rb_first_cached(&hists->entries); in process_block_report() 483 struct hists *hists = evsel__hists(pos); in block_info__create_report() local 485 process_block_report(hists, &block_reports[i], total_cycles, in block_info__create_report()
|
H A D | callchain.h | 16 struct hists; 310 u64 callchain_total_hits(struct hists *hists);
|
H A D | annotate.c | 863 struct hists *hists = evsel__hists(evsel); in calc_percent() local 885 if (hists->stats.nr_non_filtered_samples) in calc_percent() 886 data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; in calc_percent() 891 if (hists->stats.total_period) in calc_percent() 892 data->percent[PERCENT_PERIOD_GLOBAL] = 100.0 * period / hists->stats.total_period; in calc_percent() 1605 struct hists *hists = evsel__hists(evsel); in symbol__tty_annotate2() local 1625 hists__scnprintf_title(hists, buf, sizeof(buf)); in symbol__tty_annotate2() 2658 struct evsel *evsel = hists_to_evsel(he->hists); in hist_entry__get_data_type()
|
H A D | callchain.c | 1772 u64 callchain_total_hits(struct hists *hists) in callchain_total_hits() argument 1774 struct rb_node *next = rb_first_cached(&hists->entries); in callchain_total_hits()
|