/linux-master/tools/perf/tests/ |
H A D | hists_filter.c | 71 struct hists *hists = evsel__hists(evsel); local 74 hists->thread_filter = NULL; 75 hists->dso_filter = NULL; 76 hists->symbol_filter_str = NULL; 154 struct hists *hists = evsel__hists(evsel); local 156 hists__collapse_resort(hists, NULL); 161 print_hists_out(hists); 165 hists [all...] |
H A D | hists_common.h | 73 void print_hists_in(struct hists *hists); 74 void print_hists_out(struct hists *hists);
|
H A D | hists_link.c | 81 struct hists *hists = evsel__hists(evsel); local 92 he = hists__add_entry(hists, &al, NULL, 112 he = hists__add_entry(hists, &al, NULL, 160 static int __validate_match(struct hists *hists) argument 169 if (hists__has(hists, need_collapse)) 170 root = &hists->entries_collapsed; 172 root = hists->entries_in; 203 static int validate_match(struct hists *leade 208 __validate_link(struct hists *hists, int idx) argument 289 struct hists *hists, *first_hists; local [all...] |
H A D | hists_cumulate.c | 80 static int add_hist_entries(struct hists *hists, struct machine *machine) argument 83 struct evsel *evsel = hists_to_evsel(hists); 130 static void del_hist_entries(struct hists *hists) argument 137 if (hists__has(hists, need_collapse)) 138 root_in = &hists->entries_collapsed; 140 root_in = hists->entries_in; 142 root_out = &hists->entries; 190 static int do_test(struct hists *hist argument 266 struct hists *hists = evsel__hists(evsel); local 317 struct hists *hists = evsel__hists(evsel); local 465 struct hists *hists = evsel__hists(evsel); local 522 struct hists *hists = evsel__hists(evsel); local [all...] |
H A D | hists_output.c | 50 static int add_hist_entries(struct hists *hists, struct machine *machine) argument 53 struct evsel *evsel = hists_to_evsel(hists); 95 static void del_hist_entries(struct hists *hists) argument 102 if (hists__has(hists, need_collapse)) 103 root_in = &hists->entries_collapsed; 105 root_in = hists->entries_in; 107 root_out = &hists->entries; 141 struct hists *hist local 243 struct hists *hists = evsel__hists(evsel); local 299 struct hists *hists = evsel__hists(evsel); local 373 struct hists *hists = evsel__hists(evsel); local 475 struct hists *hists = evsel__hists(evsel); local [all...] |
H A D | hists_common.c | 163 void print_hists_in(struct hists *hists) argument 169 if (hists__has(hists, need_collapse)) 170 root = &hists->entries_collapsed; 172 root = hists->entries_in; 195 void print_hists_out(struct hists *hists) argument 201 root = &hists->entries;
|
/linux-master/tools/perf/ui/browsers/ |
H A D | hists.h | 11 struct hists *hists; member in struct:hist_browser 32 struct hist_browser *hist_browser__new(struct hists *hists); 37 struct hists *hists);
|
H A D | hists.c | 35 #include "../browsers/hists.h" 58 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; 64 struct hists *hists = browser->hists; local 67 for (nd = rb_first_cached(&hists->entries); 82 struct hists *hists = hb->hists; local 83 struct perf_hpp_list *hpp_list = hists 106 struct hists *hists = hb->hists; local 1646 struct hists *hists = browser->hists; local 1683 struct hists *hists = browser->hists; local 1779 struct hists *hists = browser->hists; local 2208 hist_browser__init(struct hist_browser *browser, struct hists *hists) argument 2240 hist_browser__new(struct hists *hists) argument 2945 struct hists *hists = evsel__hists(evsel); local 3409 struct hists *hists = evsel__hists(evsel); local 3637 struct hists *hists = evsel__hists(browser->block_evsel); local 3652 struct hists *hists = &bh->block_hists; local [all...] |
H A D | annotate.c | 711 struct hists *hists = evsel__hists(evsel); local 720 hists__scnprintf_title(hists, title, sizeof(title)); 754 hists__scnprintf_title(hists, title, sizeof(title)); 904 hists__scnprintf_title(hists, title, sizeof(title));
|
/linux-master/tools/perf/util/ |
H A D | hist.h | 94 struct hists { struct 153 struct hist_entry *hists__add_entry(struct hists *hists, 162 struct hist_entry *hists__add_entry_ops(struct hists *hists, 172 struct hist_entry *hists__add_entry_block(struct hists *hists, 186 struct hists *hists); 196 void hists__output_resort(struct hists *hist 225 hists__has_filter(struct hists *hists) argument 243 struct hists hists; member in struct:hists_evsel 246 hists_to_evsel(struct hists *hists) argument 258 hists__has_callchains(struct hists *hists) argument 408 perf_hpp__should_skip(struct perf_hpp_fmt *format, struct hists *hists) argument 589 hists__scnprintf_title(struct hists *hists, char *bf, size_t size) argument [all...] |
H A D | hist.c | 34 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, enu argument 48 hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) argument 53 hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) argument 62 hists__reset_col_len(struct hists *hists) argument 70 hists__set_unres_dso_col_len(struct hists *hists, int dso) argument 80 hists__calc_col_len(struct hists *hists, struct hist_entry *h) argument 253 hists__output_recalc_col_len(struct hists *hists, int max_rows) argument 323 hists__decay_entry(struct hists *hists, struct hist_entry *he) argument 359 hists__delete_entry(struct hists *hists, struct hist_entry *he) argument 385 hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel) argument 401 hists__delete_entries(struct hists *hists) argument 414 hists__get_entry(struct hists *hists, int idx) argument 590 hists__findnew_entry(struct hists *hists, struct hist_entry *entry, const struct addr_location *al, bool sample_self) argument 699 __hists__add_entry(struct hists *hists, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, struct kvm_info *ki, struct block_info *block_info, struct perf_sample *sample, bool sample_self, struct hist_entry_ops *ops) argument 760 hists__add_entry(struct hists *hists, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, struct kvm_info *ki, struct perf_sample *sample, bool sample_self) argument 773 hists__add_entry_ops(struct hists *hists, struct hist_entry_ops *ops, struct addr_location *al, struct symbol *sym_parent, struct branch_info *bi, struct mem_info *mi, struct kvm_info *ki, struct perf_sample *sample, bool sample_self) argument 787 hists__add_entry_block(struct hists *hists, struct addr_location *al, struct block_info *block_info) argument 837 struct hists *hists = evsel__hists(iter->evsel); local 871 struct hists *hists = evsel__hists(evsel); local 944 struct hists *hists = evsel__hists(evsel); local 1058 struct hists *hists = evsel__hists(evsel); local 1277 struct hists *hists = left->hists; local 1297 struct hists *hists = left->hists; local 1472 hierarchy_insert_entry(struct hists *hists, struct rb_root_cached *root, struct hist_entry *he, struct hist_entry *parent_he, struct perf_hpp_list *hpp_list) argument 1544 hists__hierarchy_insert_entry(struct hists *hists, struct rb_root_cached *root, struct hist_entry *he) argument 1596 hists__collapse_insert_entry(struct hists *hists, struct rb_root_cached *root, struct hist_entry *he) argument 1651 hists__get_rotate_entries_in(struct hists *hists) argument 1666 hists__apply_filters(struct hists *hists, struct hist_entry *he) argument 1674 hists__collapse_resort(struct hists *hists, struct ui_progress *prog) argument 1717 struct hists *hists = a->hists; local 1733 hists__reset_filter_stats(struct hists *hists) argument 1739 hists__reset_stats(struct hists *hists) argument 1747 hists__inc_filter_stats(struct hists *hists, struct hist_entry *h) argument 1753 hists__inc_stats(struct hists *hists, struct hist_entry *h) argument 1762 hierarchy_recalc_total_periods(struct hists *hists) argument 1818 hists__hierarchy_output_resort(struct hists *hists, struct ui_progress *prog, struct rb_root_cached *root_in, struct rb_root_cached *root_out, u64 min_callchain_hits, bool use_callchain) argument 1918 output_resort(struct hists *hists, struct ui_progress *prog, bool use_callchain, hists__resort_cb_t cb, void *cb_arg) argument 1993 hists__output_resort(struct hists *hists, struct ui_progress *prog) argument 1998 hists__output_resort_cb(struct hists *hists, struct ui_progress *prog, hists__resort_cb_t cb) argument 2085 hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, enum hist_filter filter) argument 2127 hists__filter_entry_by_dso(struct hists *hists, struct hist_entry *he) argument 2139 hists__filter_entry_by_thread(struct hists *hists, struct hist_entry *he) argument 2151 hists__filter_entry_by_symbol(struct hists *hists, struct hist_entry *he) argument 2164 hists__filter_entry_by_socket(struct hists *hists, struct hist_entry *he) argument 2178 hists__filter_by_type(struct hists *hists, int type, filter_fn_t filter) argument 2238 hists__filter_hierarchy(struct hists *hists, int type, const void *arg) argument 2305 hists__filter_by_thread(struct hists *hists) argument 2315 hists__filter_by_dso(struct hists *hists) argument 2325 hists__filter_by_symbol(struct hists *hists) argument 2335 hists__filter_by_socket(struct hists *hists) argument 2356 hists__inc_nr_events(struct hists *hists) argument 2361 hists__inc_nr_samples(struct hists *hists, bool filtered) argument 2368 hists__inc_nr_lost_samples(struct hists *hists, u32 lost) argument 2373 hists__add_dummy_entry(struct hists *hists, struct hist_entry *pair) argument 2422 add_dummy_hierarchy_entry(struct hists *hists, struct rb_root_cached *root, struct hist_entry *pair) argument 2469 hists__find_entry(struct hists *hists, struct hist_entry *he) argument 2649 hists__unlink(struct hists *hists) argument 2716 struct hists *hists = evsel__hists(pos); local 2734 hists__total_period(struct hists *hists) argument 2740 __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq) argument 2842 __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list) argument 2870 hists__delete_all_entries(struct hists *hists) argument 2880 struct hists *hists = evsel__hists(evsel); local 2898 struct hists *hists = evsel__hists(evsel); local [all...] |
H A D | stream.c | 113 static void init_hot_callchain(struct hists *hists, struct evsel_streams *es) argument 115 struct rb_node *next = rb_first_cached(&hists->entries); 125 es->streams_hits = callchain_total_hits(hists); 138 struct hists *hists = evsel__hists(pos); local 140 hists__output_resort(hists, NULL); 141 init_hot_callchain(hists, &es[i]);
|
H A D | sort.h | 148 struct hists *hists; member in struct:hist_entry 200 u64 total_period = hists__total_period(he->hists); 303 struct hists block_hists;
|
H A D | block-info.c | 14 #include "ui/browsers/hists.h" 165 struct hists *hists __maybe_unused, 177 struct hists *hists __maybe_unused) 402 static int process_block_report(struct hists *hists, argument 407 struct rb_node *next = rb_first_cached(&hists->entries); 447 struct hists *hists local [all...] |
H A D | callchain.h | 16 struct hists; 310 u64 callchain_total_hits(struct hists *hists);
|
H A D | sort.c | 336 if (!hists__has(left->hists, dso) || hists__has(right->hists, dso)) { 945 evsel = hists_to_evsel(he->hists); 967 evsel = hists_to_evsel(left->hists); 984 evsel = hists_to_evsel(he->hists); 2453 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists) argument 2461 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); 2465 struct hists *hists, in 2464 __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hists *hists, int line __maybe_unused, int *span __maybe_unused) argument 2479 __sort__hpp_width(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp __maybe_unused, struct hists *hists) argument 2833 perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists) argument [all...] |
/linux-master/tools/perf/ui/stdio/ |
H A D | hist.c | 427 if (perf_hpp__should_skip(fmt, he->hists)) 454 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); 459 struct hists *hists, 477 fmt_node = list_first_entry(&hists->hpp_formats, 501 (hists->nr_hpp_node - 2) * HIERARCHY_INDENT, ""); 528 u64 total = hists__total_period(hists); 591 struct hists *hists = he->hists; local 457 hist_entry__hierarchy_fprintf(struct hist_entry *he, struct perf_hpp *hpp, struct hists *hists, FILE *fp) argument 632 hists__fprintf_hierarchy_headers(struct hists *hists, struct perf_hpp *hpp, FILE *fp) argument 728 fprintf_line(struct hists *hists, struct perf_hpp *hpp, int line, FILE *fp) argument 753 hists__fprintf_standard_headers(struct hists *hists, struct perf_hpp *hpp, FILE *fp) argument 800 hists__fprintf_headers(struct hists *hists, FILE *fp) argument 817 hists__fprintf(struct hists *hists, bool show_header, int max_rows, int max_cols, float min_pcnt, FILE *fp, bool ignore_callchains) argument [all...] |
/linux-master/tools/perf/ui/ |
H A D | hist.c | 31 struct hists *hists = he->hists; local 32 struct evsel *evsel = hists_to_evsel(hists); 38 u64 total = hists__total_period(hists); 56 u64 total = hists__total_period(pair->hists); 61 evsel = hists_to_evsel(pair->hists); 167 struct evsel *evsel = hists_to_evsel(pair->hists); 172 struct evsel *evsel = hists_to_evsel(pair->hists); 189 struct evsel *evsel = hists_to_evsel(a->hists); 290 hpp__width_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp __maybe_unused, struct hists *hists) argument 306 hpp__header_fn(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hists *hists, int line __maybe_unused, int *span __maybe_unused) argument 713 hists__sort_list_width(struct hists *hists) argument 738 hists__overhead_width(struct hists *hists) argument 760 perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists) argument 793 hists__reset_column_width(struct hists *hists) argument 826 add_hierarchy_fmt(struct hists *hists, struct perf_hpp_fmt *fmt) argument 871 struct hists *hists; local [all...] |
/linux-master/tools/perf/ui/gtk/ |
H A D | hists.c | 293 static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, argument 314 hists__for_each_format(hists, fmt) 325 hists__for_each_format(hists, fmt) { 326 if (perf_hpp__should_skip(fmt, hists)) 358 for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) { 361 u64 total = hists__total_period(h->hists); 375 hists__for_each_format(hists, fmt) { 376 if (perf_hpp__should_skip(fmt, h->hists)) 388 symbol_conf.use_callchain && hists__has(hists, sy 405 perf_gtk__add_hierarchy_entries(struct hists *hists, struct rb_root_cached *root, GtkTreeStore *store, GtkTreeIter *parent, struct perf_hpp *hpp, float min_pcnt) argument 497 perf_gtk__show_hierarchy(GtkWidget *window, struct hists *hists, float min_pcnt) argument 635 struct hists *hists = evsel__hists(pos); local [all...] |
/linux-master/tools/perf/ |
H A D | builtin-c2c.c | 38 #include "ui/browsers/hists.h" 49 struct hists hists; member in struct:c2c_hists 63 struct c2c_hists *hists; member in struct:c2c_hist_entry 88 struct c2c_hists hists; member in struct:perf_c2c 178 if (c2c_he->hists) { 179 hists__delete_entries(&c2c_he->hists->hists); 180 zfree(&c2c_he->hists); 195 static int c2c_hists__init(struct c2c_hists *hists, 205 struct c2c_hists *hists; local 450 symbol_width(struct hists *hists, struct sort_entry *se) argument 460 c2c_width(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp __maybe_unused, struct hists *hists) argument 477 c2c_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hists *hists, int line, int *span) argument 811 struct c2c_hists *hists; local 902 struct c2c_hists *hists; local 2069 c2c_hists__init(struct c2c_hists *hists, const char *sort, int nr_header_lines) argument 2356 hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb) argument 2606 c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) argument 2693 perf_c2c_browser__new(struct hists *hists) argument 2705 perf_c2c__hists_browse(struct hists *hists) argument [all...] |
H A D | builtin-diff.c | 76 struct hists *hists; member in struct:data__file 274 u64 total = hists__total_period(he->hists); 314 u64 he_total = he->hists->stats.total_period; 315 u64 pair_total = pair->hists->stats.total_period; 318 he_total = he->hists->stats.total_non_filtered_period; 319 pair_total = pair->hists->stats.total_non_filtered_period; 399 struct hists *hists = evsel__hists(evsel); local 427 if (!hists__add_entry_ops(hists, 504 struct hists *hists = evsel__hists(evsel); local 541 hists__baseline_only(struct hists *hists) argument 685 hists__precompute(struct hists *hists) argument 945 hists__process(struct hists *hists) argument 989 struct hists *hists; local [all...] |
H A D | builtin-annotate.c | 239 struct hists *hists = evsel__hists(evsel); local 271 he = hists__add_entry(hists, al, NULL, NULL, NULL, NULL, sample, true); 276 hists__inc_nr_samples(hists, true); 474 static void hists__find_annotations(struct hists *hists, argument 478 struct rb_node *nd = rb_first_cached(&hists->entries), *next; 499 u64 total = hists__total_period(hists); 633 struct hists *hists local 669 struct hists *hists = evsel__hists(pos); local [all...] |
H A D | builtin-kvm.c | 27 #include "ui/browsers/hists.h" 84 struct hists hists; member in struct:kvm_hists 115 struct hists *hists __maybe_unused); 120 int width = fmt_width(fmt, hpp, he->hists); 162 int width = fmt_width(fmt, hpp, he->hists); \ 212 int width = fmt_width(fmt, hpp, he->hists); 260 int width = fmt_width(fmt, hpp, he->hists); 293 int width = fmt_width(fmt, hpp, he->hists); 344 fmt_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, struct hists *hists, int line __maybe_unused, int *span __maybe_unused) argument 541 perf_kvm_browser__new(struct hists *hists) argument 551 kvm__hists_browse(struct hists *hists) argument [all...] |
H A D | builtin-top.c | 123 evsel = hists_to_evsel(he->hists); 201 EXCLUSIVE_LOCKS_REQUIRED(he->hists->lock) 223 * This function is now called with he->hists->lock held. 226 mutex_unlock(&he->hists->lock); 236 mutex_lock(&he->hists->lock); 251 evsel = hists_to_evsel(he->hists); 286 struct hists *hists = evsel__hists(pos); local 292 hists__unlink(hists); 296 hists__delete_entries(hists); 325 struct hists *hists = evsel__hists(evsel); local 397 struct hists *hists = evsel__hists(top->sym_evsel); local 644 struct hists *hists = evsel__hists(pos); local 831 struct hists *hists = evsel__hists(evsel); local [all...] |
H A D | builtin-report.c | 472 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, argument 477 unsigned long nr_samples = hists->stats.nr_samples; 478 u64 nr_events = hists->stats.total_period; 479 struct evsel *evsel = hists_to_evsel(hists); 482 int socked_id = hists->socket_filter; 488 nr_samples = hists->stats.nr_non_filtered_samples; 489 nr_events = hists->stats.total_non_filtered_period; 499 const struct hists *pos_hists = evsel__hists(pos); 564 struct hists *hist local 715 struct hists *hists = evsel__hists(pos); local 773 struct hists *hists = evsel__hists(evsel); local [all...] |