/tools/perf/tests/ |
D | hists_filter.c | 69 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local 72 hists->thread_filter = NULL; in add_hist_entries() 73 hists->dso_filter = NULL; in add_hist_entries() 74 hists->symbol_filter_str = NULL; in add_hist_entries() 142 struct hists *hists = evsel__hists(evsel); in test__hists_filter() local 144 hists__collapse_resort(hists, NULL); in test__hists_filter() 149 print_hists_out(hists); in test__hists_filter() 153 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 155 hists->nr_entries == 9); in test__hists_filter() 157 hists->stats.total_period == 1000); in test__hists_filter() [all …]
|
D | hists_link.c | 78 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local 89 he = hists__add_entry(hists, &al, NULL, in add_hist_entries() 108 he = hists__add_entry(hists, &al, NULL, in add_hist_entries() 141 static int __validate_match(struct hists *hists) in __validate_match() argument 150 if (hists__has(hists, need_collapse)) in __validate_match() 151 root = &hists->entries_collapsed; in __validate_match() 153 root = hists->entries_in; in __validate_match() 184 static int validate_match(struct hists *leader, struct hists *other) in validate_match() 189 static int __validate_link(struct hists *hists, int idx) in __validate_link() argument 202 if (hists__has(hists, need_collapse)) in __validate_link() [all …]
|
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() 126 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument 133 if (hists__has(hists, need_collapse)) in del_hist_entries() 134 root_in = &hists->entries_collapsed; in del_hist_entries() 136 root_in = hists->entries_in; in del_hist_entries() 138 root_out = &hists->entries; in del_hist_entries() 177 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument 192 hists__collapse_resort(hists, NULL); in do_test() 193 perf_evsel__output_resort(hists_to_evsel(hists), NULL); in do_test() [all …]
|
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() 92 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument 99 if (hists__has(hists, need_collapse)) in del_hist_entries() 100 root_in = &hists->entries_collapsed; in del_hist_entries() 102 root_in = hists->entries_in; in del_hist_entries() 104 root_out = &hists->entries; in del_hist_entries() 128 struct hists *hists = evsel__hists(evsel); in test1() local 153 err = add_hist_entries(hists, machine); in test1() 157 hists__collapse_resort(hists, NULL); in test1() [all …]
|
D | hists_common.h | 73 void print_hists_in(struct hists *hists); 74 void print_hists_out(struct hists *hists);
|
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() 193 void print_hists_out(struct hists *hists) in print_hists_out() argument 199 root = &hists->entries; in print_hists_out()
|
/tools/perf/util/ |
D | hist.h | 78 struct hists { struct 137 struct hist_entry *hists__add_entry(struct hists *hists, 145 struct hist_entry *hists__add_entry_ops(struct hists *hists, 154 struct hist_entry *hists__add_entry_block(struct hists *hists, 168 struct hists *hists); 178 void hists__output_resort(struct hists *hists, struct ui_progress *prog); 179 void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog, 181 int hists__collapse_resort(struct hists *hists, struct ui_progress *prog); 183 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel); 184 void hists__delete_entries(struct hists *hists); [all …]
|
D | hist.c | 31 static bool hists__filter_entry_by_dso(struct hists *hists, 33 static bool hists__filter_entry_by_thread(struct hists *hists, 35 static bool hists__filter_entry_by_symbol(struct hists *hists, 37 static bool hists__filter_entry_by_socket(struct hists *hists, 40 u16 hists__col_len(struct hists *hists, enum hist_column col) in hists__col_len() argument 42 return hists->col_len[col]; in hists__col_len() 45 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__set_col_len() argument 47 hists->col_len[col] = len; in hists__set_col_len() 50 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__new_col_len() argument 52 if (len > hists__col_len(hists, col)) { in hists__new_col_len() [all …]
|
D | sort.h | 136 struct hists *hists; member 184 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit() 269 struct hists block_hists;
|
D | sort.c | 272 if (!hists__has(left->hists, dso) || hists__has(right->hists, dso)) { in sort__sym_cmp() 709 evsel = hists_to_evsel(he->hists); in get_trace_output() 731 evsel = hists_to_evsel(left->hists); in sort__trace_cmp() 748 evsel = hists_to_evsel(he->hists); in hist_entry__trace_snprintf() 1743 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists) in perf_hpp__reset_sort_width() argument 1751 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width() 1755 struct hists *hists, int line __maybe_unused, in __sort__hpp_header() argument 1764 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_header() 1771 struct hists *hists) in __sort__hpp_width() argument 1779 len = hists__col_len(hists, hse->se->se_width_idx); in __sort__hpp_width() [all …]
|
D | annotate.c | 2011 struct hists *hists, in calc_percent() argument 2030 if (hists->stats.nr_non_filtered_samples) in calc_percent() 2031 data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; in calc_percent() 2036 if (hists->stats.total_period) in calc_percent() 2037 data->percent[PERCENT_PERIOD_GLOBAL] = 100.0 * period / hists->stats.total_period; in calc_percent() 2057 struct hists *hists = evsel__hists(evsel); in annotation__calc_percent() local 2066 calc_percent(sym_hist, hists, data, al->offset, end); in annotation__calc_percent() 2692 struct hists *hists = evsel__hists(evsel); in symbol__tty_annotate2() local 2704 hists__scnprintf_title(hists, buf, sizeof(buf)); in symbol__tty_annotate2()
|
/tools/perf/ui/browsers/ |
D | hists.h | 11 struct hists *hists; member 32 struct hist_browser *hist_browser__new(struct hists *hists); 37 struct hists *hists);
|
D | hists.c | 55 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter() 61 struct hists *hists = browser->hists; in hist_browser__get_folding() local 64 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding() 79 struct hists *hists = hb->hists; in hist_browser__set_title_space() local 80 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__set_title_space() 94 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries() 103 struct hists *hists = hb->hists; in hist_browser__update_rows() local 104 struct perf_hpp_list *hpp_list = hists->hpp_list; in hist_browser__update_rows() 129 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions() 581 nd = rb_first_cached(&browser->hists->entries); in __hist_browser__set_folding() [all …]
|
D | Build | 2 perf-y += hists.o
|
D | annotate.c | 664 struct hists *hists = evsel__hists(evsel); in annotate_browser__run() local 673 hists__scnprintf_title(hists, title, sizeof(title)); in annotate_browser__run() 707 hists__scnprintf_title(hists, title, sizeof(title)); in annotate_browser__run() 853 hists__scnprintf_title(hists, title, sizeof(title)); in annotate_browser__run()
|
/tools/perf/ui/ |
D | hist.c | 30 struct hists *hists = he->hists; in __hpp__fmt() local 31 struct evsel *evsel = hists_to_evsel(hists); in __hpp__fmt() 37 u64 total = hists__total_period(hists); in __hpp__fmt() 55 u64 total = hists__total_period(pair->hists); in __hpp__fmt() 60 evsel = hists_to_evsel(pair->hists); in __hpp__fmt() 167 evsel = hists_to_evsel(a->hists); in __hpp__sort() 179 evsel = hists_to_evsel(pair->hists); in __hpp__sort() 184 evsel = hists_to_evsel(pair->hists); in __hpp__sort() 226 struct hists *hists) in hpp__width_fn() argument 229 struct evsel *evsel = hists_to_evsel(hists); in hpp__width_fn() [all …]
|
/tools/perf/ui/stdio/ |
D | hist.c | 426 if (perf_hpp__should_skip(fmt, he->hists)) in __hist_entry__snprintf() 453 return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); in hist_entry__snprintf() 458 struct hists *hists, in hist_entry__hierarchy_fprintf() argument 476 fmt_node = list_first_entry(&hists->hpp_formats, in hist_entry__hierarchy_fprintf() 500 (hists->nr_hpp_node - 2) * HIERARCHY_INDENT, ""); in hist_entry__hierarchy_fprintf() 527 u64 total = hists__total_period(hists); in hist_entry__hierarchy_fprintf() 571 struct hists *hists = he->hists; in hist_entry__fprintf() local 572 u64 total_period = hists->stats.total_period; in hist_entry__fprintf() 578 return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); in hist_entry__fprintf() 609 static int hists__fprintf_hierarchy_headers(struct hists *hists, in hists__fprintf_hierarchy_headers() argument [all …]
|
/tools/perf/ |
D | builtin-c2c.c | 47 struct hists hists; member 59 struct c2c_hists *hists; member 84 struct c2c_hists hists; member 163 if (c2c_he->hists) { in c2c_he_free() 164 hists__delete_entries(&c2c_he->hists->hists); in c2c_he_free() 165 free(c2c_he->hists); in c2c_he_free() 180 static int c2c_hists__init(struct c2c_hists *hists, 190 struct c2c_hists *hists; in he__get_c2c_hists() local 194 if (c2c_he->hists) in he__get_c2c_hists() 195 return c2c_he->hists; in he__get_c2c_hists() [all …]
|
D | builtin-diff.c | 71 struct hists *hists; member 264 u64 total = hists__total_period(he->hists); in period_percent() 304 u64 he_total = he->hists->stats.total_period; in formula_delta() 305 u64 pair_total = pair->hists->stats.total_period; in formula_delta() 308 he_total = he->hists->stats.total_non_filtered_period; in formula_delta() 309 pair_total = pair->hists->stats.total_non_filtered_period; in formula_delta() 389 struct hists *hists = evsel__hists(evsel); in diff__process_sample_event() local 409 if (!hists__add_entry(hists, &al, NULL, NULL, NULL, sample, in diff__process_sample_event() 416 if (!hists__add_entry_ops(hists, &block_hist_ops, &al, NULL, in diff__process_sample_event() 432 hists->stats.total_period += sample->period; in diff__process_sample_event() [all …]
|
D | builtin-top.c | 118 evsel = hists_to_evsel(he->hists); in perf_top__parse_source() 219 pthread_mutex_unlock(&he->hists->lock); in perf_top__record_precise_ip() 229 pthread_mutex_lock(&he->hists->lock); in perf_top__record_precise_ip() 244 evsel = hists_to_evsel(he->hists); in perf_top__show_details() 279 struct hists *hists = evsel__hists(pos); in perf_top__resort_hists() local 285 hists__unlink(hists); in perf_top__resort_hists() 289 hists__delete_entries(hists); in perf_top__resort_hists() 291 hists__decay_entries(hists, t->hide_user_symbols, in perf_top__resort_hists() 296 hists__collapse_resort(hists, NULL); in perf_top__resort_hists() 301 struct hists *leader_hists = evsel__hists(pos->leader); in perf_top__resort_hists() [all …]
|
D | builtin-annotate.c | 221 struct hists *hists = evsel__hists(evsel); in perf_evsel__add_sample() local 252 he = hists__add_entry(hists, al, NULL, NULL, NULL, sample, true); in perf_evsel__add_sample() 257 hists__inc_nr_samples(hists, true); in perf_evsel__add_sample() 309 static void hists__find_annotations(struct hists *hists, in hists__find_annotations() argument 313 struct rb_node *nd = rb_first_cached(&hists->entries), *next; in hists__find_annotations() 429 struct hists *hists = evsel__hists(pos); in __cmd_annotate() local 430 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate() 434 hists__collapse_resort(hists, NULL); in __cmd_annotate() 443 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
|
D | builtin-report.c | 416 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events() argument 421 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 422 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events() 423 struct evsel *evsel = hists_to_evsel(hists); in hists__fprintf_nr_sample_events() 426 int socked_id = hists->socket_filter; in hists__fprintf_nr_sample_events() 432 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events() 433 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 443 const struct hists *pos_hists = evsel__hists(pos); in hists__fprintf_nr_sample_events() 493 struct hists *hists = evsel__hists(pos); in perf_evlist__tty_browse_hists() local 500 hists__fprintf_nr_sample_events(hists, rep, evname, stdout); in perf_evlist__tty_browse_hists() [all …]
|
/tools/perf/ui/gtk/ |
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 …]
|
D | Build | 4 gtk-y += hists.o
|