| /tools/perf/tests/ |
| A D | hists_filter.c | 71 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local 75 hists->dso_filter = NULL; in add_hist_entries() 154 struct hists *hists = evsel__hists(evsel); in test__hists_filter() local 161 print_hists_out(hists); in test__hists_filter() 174 hists->nr_entries == hists->nr_non_filtered_entries); in test__hists_filter() 185 print_hists_out(hists); in test__hists_filter() 214 print_hists_out(hists); in test__hists_filter() 234 hists->dso_filter = NULL; in test__hists_filter() 249 print_hists_out(hists); in test__hists_filter() 278 print_hists_out(hists); in test__hists_filter() [all …]
|
| A D | hists_cumulate.c | 80 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument 130 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument 190 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument 212 print_hists_out(hists); in do_test() 266 struct hists *hists = evsel__hists(evsel); in test1() local 308 del_hist_entries(hists); in test1() 317 struct hists *hists = evsel__hists(evsel); in test2() local 456 del_hist_entries(hists); in test2() 465 struct hists *hists = evsel__hists(evsel); in test3() local 513 del_hist_entries(hists); in test3() [all …]
|
| A D | hists_link.c | 81 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local 160 static int __validate_match(struct hists *hists) in __validate_match() argument 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 224 root = hists->entries_in; in __validate_link() 281 static int validate_link(struct hists *leader, struct hists *other) in validate_link() 289 struct hists *hists, *first_hists; in test__hists_link() local 326 hists = evsel__hists(evsel); in test__hists_link() 330 print_hists_in(hists); in test__hists_link() [all …]
|
| A D | hists_output.c | 50 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument 95 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument 141 struct hists *hists = evsel__hists(evsel); in test1() local 175 print_hists_out(hists); in test1() 178 root = &hists->entries; in test1() 243 struct hists *hists = evsel__hists(evsel); in test2() local 278 root = &hists->entries; in test2() 299 struct hists *hists = evsel__hists(evsel); in test3() local 332 root = &hists->entries; in test3() 373 struct hists *hists = evsel__hists(evsel); in test4() local [all …]
|
| A D | hists_common.h | 73 void print_hists_in(struct hists *hists); 74 void print_hists_out(struct hists *hists);
|
| 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()
|
| /tools/perf/util/ |
| A D | hist.c | 68 void hists__reset_col_len(struct hists *hists) in hists__reset_col_len() argument 794 __hists__add_entry(struct hists *hists, in __hists__add_entry() argument 837 .hists = hists, in __hists__add_entry() 893 .hists = hists, in hists__add_entry_block() 971 struct hists *hists = evsel__hists(evsel); in iter_finish_mem_entry() local 1039 struct hists *hists = evsel__hists(evsel); in iter_add_next_branch_entry() local 1391 struct hists *hists = left->hists; in hist_entry__cmp_impl() local 2580 he->hists = hists; in hists__add_dummy_entry() 2625 he->hists = hists; in add_dummy_hierarchy_entry() 2807 int hists__unlink(struct hists *hists) in hists__unlink() argument [all …]
|
| A D | hist.h | 297 struct hists *hists; member 375 struct hists *hists); 398 u64 hists__total_period(struct hists *hists); 399 u64 hists__total_latency(struct hists *hists); 400 void hists__reset_stats(struct hists *hists); 402 void hists__inc_nr_events(struct hists *hists); 412 void hists__filter_by_dso(struct hists *hists); 433 int hists__unlink(struct hists *hists); 451 struct hists hists; member 492 struct hists *hists); [all …]
|
| A D | stream.c | 112 static void init_hot_callchain(struct hists *hists, struct evsel_streams *es) in init_hot_callchain() argument 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() local 139 hists__output_resort(hists, NULL); in evlist__init_callchain_streams() 140 init_hot_callchain(hists, &es[i]); in evlist__init_callchain_streams()
|
| 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()
|
| A D | callchain.h | 16 struct hists; 310 u64 callchain_total_hits(struct hists *hists);
|
| /tools/perf/ui/ |
| A D | hist.c | 53 struct hists *hists; member 63 struct hists *hists = he->hists; in __hpp__fmt() local 90 if (values[i].hists != pair->hists) in __hpp__fmt() 159 struct hists *hists = he->hists; in hpp__fmt_mem_stat() local 374 struct hists *hists) in hpp__width_fn() argument 399 struct hists *hists, int line, in hpp__header_fn() argument 412 struct hists *hists, int line, in hpp__header_mem_stat_fn() argument 932 struct hists *hists = evsel__hists(evsel); in perf_hpp__cancel_cumulate() local 968 struct hists *hists = evsel__hists(evsel); in perf_hpp__cancel_latency() local 1212 struct hists *hists; in perf_hpp__setup_hists_formats() local [all …]
|
| /tools/perf/ui/browsers/ |
| A D | hists.h | 11 struct hists *hists; member 32 struct hist_browser *hist_browser__new(struct hists *hists); 37 struct hists *hists);
|
| A D | hists.c | 65 struct hists *hists = browser->hists; in hist_browser__get_folding() local 83 struct hists *hists = hb->hists; in hist_browser__set_title_space() local 107 struct hists *hists = hb->hists; in hist_browser__update_rows() local 1680 struct hists *hists = browser->hists; in hists_browser__scnprintf_headers() local 1718 struct hists *hists = browser->hists; in hists_browser__scnprintf_hierarchy_headers() local 1821 struct hists *hists = browser->hists; in hists_browser__headers() local 2251 struct hists *hists) in hist_browser__init() argument 2255 browser->hists = hists; in hist_browser__init() 3003 struct hists *hists = evsel__hists(evsel); in evsel__hists_browse() local 3468 struct hists *hists = evsel__hists(evsel); in perf_evsel_menu__write() local [all …]
|
| 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()
|
| A D | Build | 3 perf-ui-y += hists.o
|
| /tools/perf/ui/stdio/ |
| A D | hist.c | 463 struct hists *hists, in hist_entry__hierarchy_fprintf() argument 595 struct hists *hists = he->hists; in hist_entry__fprintf() local 636 static int hists__fprintf_hierarchy_headers(struct hists *hists, in hists__fprintf_hierarchy_headers() argument 649 indent = hists->nr_hpp_node; in hists__fprintf_hierarchy_headers() 745 static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, in fprintf_line() argument 753 hists__for_each_format(hists, fmt) { in fprintf_line() 770 hists__fprintf_standard_headers(struct hists *hists, in hists__fprintf_standard_headers() argument 785 fprintf_line(hists, hpp, line, fp); in hists__fprintf_standard_headers() 817 int hists__fprintf_headers(struct hists *hists, FILE *fp) in hists__fprintf_headers() argument 834 size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, in hists__fprintf() argument [all …]
|
| /tools/perf/ |
| A D | builtin-c2c.c | 50 struct hists hists; member 180 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free() 215 hists = c2c_he->hists = zalloc(sizeof(*hists)); in he__get_c2c_hists() 447 struct hists *hists) in c2c_width() argument 802 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); in percent_costly_snoop() 889 hists = container_of(he->hists, struct c2c_hists, hists); in total_stats() 905 hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \ 2062 __hists__init(&hists->hists, &hists->list); in c2c_hists__init() 2163 dim = &c2c.hists == c2c_he->hists ? in set_node_width() 2681 perf_c2c_browser__new(struct hists *hists) in perf_c2c_browser__new() argument [all …]
|
| A D | builtin-diff.c | 77 struct hists *hists; member 400 struct hists *hists = evsel__hists(evsel); in diff__process_sample_event() local 491 struct hists *hists = evsel__hists(evsel); in evlist__collapse_resort() local 513 if (pair->hists == d->hists) in get_pair_data() 528 static void hists__baseline_only(struct hists *hists) in hists__baseline_only() argument 672 static void hists__precompute(struct hists *hists) in hists__precompute() argument 932 static void hists__process(struct hists *hists) in hists__process() argument 976 struct hists *hists; in data_process() local 983 d->hists = hists; in data_process() 1672 struct hists *hists __maybe_unused, in hpp__header() [all …]
|
| A D | builtin-annotate.c | 243 struct hists *hists = evsel__hists(evsel); in evsel__add_sample() local 280 hists__inc_nr_samples(hists, true); in evsel__add_sample() 408 static void hists__find_annotations(struct hists *hists, in hists__find_annotations() argument 433 u64 total = hists__total_period(hists); in hists__find_annotations() 589 struct hists *hists = evsel__hists(pos); in __cmd_annotate() local 590 u32 nr_samples = hists->stats.nr_samples; in __cmd_annotate() 598 hists__collapse_resort(hists, &prog); in __cmd_annotate() 615 struct hists *leader_hists; in __cmd_annotate() 618 hists__match(leader_hists, hists); in __cmd_annotate() 619 hists__link(leader_hists, hists); in __cmd_annotate() [all …]
|
| A D | builtin-report.c | 477 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events() argument 483 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events() 487 int socked_id = hists->socket_filter; in hists__fprintf_nr_sample_events() 572 struct hists *hists = evsel__hists(pos); in evlist__tty_browse_hists() local 731 struct hists *hists = evsel__hists(pos); in report__collapse_hists() local 736 hists->socket_filter = rep->socket_filter; in report__collapse_hists() 746 hists__match(leader_hists, hists); in report__collapse_hists() 747 hists__link(leader_hists, hists); in report__collapse_hists() 789 struct hists *hists = evsel__hists(evsel); in count_sample_event() local 791 hists__inc_nr_events(hists); in count_sample_event() [all …]
|
| A D | builtin-top.c | 227 mutex_unlock(&he->hists->lock); in perf_top__record_precise_ip() 237 mutex_lock(&he->hists->lock); in perf_top__record_precise_ip() 287 struct hists *hists = evsel__hists(pos); in perf_top__resort_hists() local 293 hists__unlink(hists); in perf_top__resort_hists() 297 hists__delete_entries(hists); in perf_top__resort_hists() 326 struct hists *hists = evsel__hists(evsel); in perf_top__print_sym_table() local 398 struct hists *hists = evsel__hists(top->sym_evsel); in perf_top__prompt_symbol() local 645 struct hists *hists = evsel__hists(pos); in display_thread_tui() local 833 struct hists *hists = evsel__hists(evsel); in perf_event__process_sample() local 845 mutex_lock(&hists->lock); in perf_event__process_sample() [all …]
|
| A D | builtin-kvm.c | 84 struct hists hists; member 115 struct hists *hists __maybe_unused); 120 int width = fmt_width(fmt, hpp, he->hists); in ev_name_entry() 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() 541 perf_kvm_browser__new(struct hists *hists) in perf_kvm_browser__new() argument 551 static int kvm__hists_browse(struct hists *hists) in kvm__hists_browse() argument 556 browser = perf_kvm_browser__new(hists); in kvm__hists_browse() 587 kvm__hists_browse(&kvm_hists.hists); in kvm_display() [all …]
|
| /tools/perf/ui/gtk/ |
| 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() 375 hists__for_each_format(hists, fmt) { in perf_gtk__show_hists() 405 static void perf_gtk__add_hierarchy_entries(struct hists *hists, in perf_gtk__add_hierarchy_entries() argument 417 u64 total = hists__total_period(hists); in perf_gtk__add_hierarchy_entries() 497 static void perf_gtk__show_hierarchy(GtkWidget *window, struct hists *hists, in perf_gtk__show_hierarchy() argument 516 hists__for_each_format(hists, fmt) { in perf_gtk__show_hierarchy() 583 perf_gtk__add_hierarchy_entries(hists, &hists->entries, store, in perf_gtk__show_hierarchy() [all …]
|
| A D | Build | 4 gtk-y += hists.o
|