/linux-4.1.27/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() 138 struct hists *hists = evsel__hists(evsel); in test__hists_filter() local 140 hists__collapse_resort(hists, NULL); in test__hists_filter() 141 hists__output_resort(hists, NULL); in test__hists_filter() 145 print_hists_out(hists); in test__hists_filter() 149 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter() 151 hists->nr_entries == 9); in test__hists_filter() [all …]
|
D | hists_cumulate.c | 76 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument 79 struct perf_evsel *evsel = hists_to_evsel(hists); in add_hist_entries() 123 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument 131 root_in = &hists->entries_collapsed; in del_hist_entries() 133 root_in = hists->entries_in; in del_hist_entries() 135 root_out = &hists->entries; in del_hist_entries() 174 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument 189 hists__collapse_resort(hists, NULL); in do_test() 190 hists__output_resort(hists, NULL); in do_test() 196 print_hists_out(hists); in do_test() [all …]
|
D | hists_link.c | 76 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local 92 he = __hists__add_entry(hists, &al, NULL, in add_hist_entries() 116 he = __hists__add_entry(hists, &al, NULL, in add_hist_entries() 147 static int __validate_match(struct hists *hists) in __validate_match() argument 157 root = &hists->entries_collapsed; in __validate_match() 159 root = hists->entries_in; in __validate_match() 190 static int validate_match(struct hists *leader, struct hists *other) in validate_match() 195 static int __validate_link(struct hists *hists, int idx) in __validate_link() argument 209 root = &hists->entries_collapsed; in __validate_link() 211 root = hists->entries_in; in __validate_link() [all …]
|
D | hists_output.c | 46 static int add_hist_entries(struct hists *hists, struct machine *machine) in add_hist_entries() argument 49 struct perf_evsel *evsel = hists_to_evsel(hists); in add_hist_entries() 89 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument 97 root_in = &hists->entries_collapsed; in del_hist_entries() 99 root_in = hists->entries_in; in del_hist_entries() 101 root_out = &hists->entries; in del_hist_entries() 125 struct hists *hists = evsel__hists(evsel); in test1() local 150 err = add_hist_entries(hists, machine); in test1() 154 hists__collapse_resort(hists, NULL); in test1() 155 hists__output_resort(hists, NULL); in test1() [all …]
|
D | hists_common.h | 72 void print_hists_in(struct hists *hists); 73 void print_hists_out(struct hists *hists);
|
D | hists_common.c | 153 void print_hists_in(struct hists *hists) in print_hists_in() argument 160 root = &hists->entries_collapsed; in print_hists_in() 162 root = hists->entries_in; in print_hists_in() 183 void print_hists_out(struct hists *hists) in print_hists_out() argument 189 root = &hists->entries; in print_hists_out()
|
/linux-4.1.27/tools/perf/util/ |
D | hist.c | 12 static bool hists__filter_entry_by_dso(struct hists *hists, 14 static bool hists__filter_entry_by_thread(struct hists *hists, 16 static bool hists__filter_entry_by_symbol(struct hists *hists, 19 u16 hists__col_len(struct hists *hists, enum hist_column col) in hists__col_len() argument 21 return hists->col_len[col]; in hists__col_len() 24 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__set_col_len() argument 26 hists->col_len[col] = len; in hists__set_col_len() 29 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__new_col_len() argument 31 if (len > hists__col_len(hists, col)) { in hists__new_col_len() 32 hists__set_col_len(hists, col, len); in hists__new_col_len() [all …]
|
D | hist.h | 56 struct hists { struct 106 struct hist_entry *__hists__add_entry(struct hists *hists, 121 struct hists *hists); 124 void hists__output_resort(struct hists *hists, struct ui_progress *prog); 125 void hists__collapse_resort(struct hists *hists, struct ui_progress *prog); 127 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel); 128 void hists__delete_entries(struct hists *hists); 129 void hists__output_recalc_col_len(struct hists *hists, int max_rows); 131 u64 hists__total_period(struct hists *hists); 132 void hists__reset_stats(struct hists *hists); [all …]
|
D | sort.h | 112 struct hists *hists; member 138 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit()
|
D | sort.c | 1253 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists) in perf_hpp__reset_sort_width() argument 1261 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width() 1302 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
|
/linux-4.1.27/tools/perf/ui/browsers/ |
D | hists.c | 25 struct hists *hists; member 38 static int hists__browser_title(struct hists *hists, 48 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter; in hist_browser__has_filter() 54 struct hists *hists = browser->hists; in hist_browser__get_folding() local 57 for (nd = rb_first(&hists->entries); in hist_browser__get_folding() 76 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries() 102 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions() 379 struct hists *hists = browser->hists; in __hist_browser__set_folding() local 381 for (nd = rb_first(&hists->entries); in __hist_browser__set_folding() 416 browser->b.entries = &browser->hists->entries; in hist_browser__run() [all …]
|
D | Build | 2 libperf-y += hists.o
|
/linux-4.1.27/tools/perf/ |
D | builtin-diff.c | 48 struct hists *hists; member 222 u64 total = hists__total_period(he->hists); in period_percent() 262 u64 he_total = he->hists->stats.total_period; in formula_delta() 263 u64 pair_total = pair->hists->stats.total_period; in formula_delta() 266 he_total = he->hists->stats.total_non_filtered_period; in formula_delta() 267 pair_total = pair->hists->stats.total_non_filtered_period; in formula_delta() 313 static int hists__add_entry(struct hists *hists, in hists__add_entry() argument 317 if (__hists__add_entry(hists, al, NULL, NULL, NULL, period, weight, in hists__add_entry() 330 struct hists *hists = evsel__hists(evsel); in diff__process_sample_event() local 338 if (hists__add_entry(hists, &al, sample->period, in diff__process_sample_event() [all …]
|
D | builtin-annotate.c | 54 struct hists *hists = evsel__hists(evsel); in perf_evsel__add_sample() local 70 he = __hists__add_entry(hists, al, NULL, NULL, NULL, 1, 1, 0, true); in perf_evsel__add_sample() 75 hists__inc_nr_samples(hists, true); in perf_evsel__add_sample() 114 static void hists__find_annotations(struct hists *hists, in hists__find_annotations() argument 118 struct rb_node *nd = rb_first(&hists->entries), *next; in hists__find_annotations() 229 struct hists *hists = evsel__hists(pos); in __cmd_annotate() local 230 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate() 234 hists__collapse_resort(hists, NULL); in __cmd_annotate() 235 hists__output_resort(hists, NULL); in __cmd_annotate() 241 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
|
D | builtin-top.c | 202 pthread_mutex_unlock(&he->hists->lock); in perf_top__record_precise_ip() 212 pthread_mutex_lock(&he->hists->lock); in perf_top__record_precise_ip() 253 struct hists *hists = evsel__hists(top->sym_evsel); in perf_top__print_sym_table() local 264 if (hists->stats.nr_lost_warned != in perf_top__print_sym_table() 265 hists->stats.nr_events[PERF_RECORD_LOST]) { in perf_top__print_sym_table() 266 hists->stats.nr_lost_warned = in perf_top__print_sym_table() 267 hists->stats.nr_events[PERF_RECORD_LOST]; in perf_top__print_sym_table() 270 hists->stats.nr_lost_warned); in perf_top__print_sym_table() 280 hists__delete_entries(hists); in perf_top__print_sym_table() 282 hists__decay_entries(hists, top->hide_user_symbols, in perf_top__print_sym_table() [all …]
|
D | builtin-report.c | 265 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events() argument 270 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events() 271 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events() 272 struct perf_evsel *evsel = hists_to_evsel(hists); in hists__fprintf_nr_sample_events() 277 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events() 278 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events() 288 const struct hists *pos_hists = evsel__hists(pos); in hists__fprintf_nr_sample_events() 320 struct hists *hists = evsel__hists(pos); in perf_evlist__tty_browse_hists() local 327 hists__fprintf_nr_sample_events(hists, rep, evname, stdout); in perf_evlist__tty_browse_hists() 328 hists__fprintf(hists, true, 0, 0, rep->min_percent, stdout); in perf_evlist__tty_browse_hists() [all …]
|
/linux-4.1.27/tools/perf/ui/stdio/ |
D | hist.c | 291 struct hists *hists, in hist_entry__callchain_fprintf() argument 295 u64 total_period = hists->stats.total_period; in hist_entry__callchain_fprintf() 306 left_margin = fmt->width(fmt, NULL, hists_to_evsel(hists)); in hist_entry__callchain_fprintf() 351 struct hists *hists, in hist_entry__fprintf() argument 368 ret += hist_entry__callchain_fprintf(he, hists, fp); in hist_entry__fprintf() 373 size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, in hists__fprintf() argument 394 perf_hpp__reset_width(fmt, hists); in hists__fprintf() 413 fmt->header(fmt, &dummy_hpp, hists_to_evsel(hists)); in hists__fprintf() 439 width = fmt->width(fmt, &dummy_hpp, hists_to_evsel(hists)); in hists__fprintf() 453 linesz = hists__sort_list_width(hists) + 3 + 1; in hists__fprintf() [all …]
|
/linux-4.1.27/tools/perf/ui/ |
D | hist.c | 23 struct hists *hists = he->hists; in __hpp__fmt() local 24 struct perf_evsel *evsel = hists_to_evsel(hists); in __hpp__fmt() 30 u64 total = hists__total_period(hists); in __hpp__fmt() 48 u64 total = hists__total_period(pair->hists); in __hpp__fmt() 53 evsel = hists_to_evsel(pair->hists); in __hpp__fmt() 160 evsel = hists_to_evsel(a->hists); in __hpp__sort() 172 evsel = hists_to_evsel(pair->hists); in __hpp__sort() 177 evsel = hists_to_evsel(pair->hists); in __hpp__sort() 614 unsigned int hists__sort_list_width(struct hists *hists) in hists__sort_list_width() argument 630 ret += fmt->width(fmt, &dummy_hpp, hists_to_evsel(hists)); in hists__sort_list_width() [all …]
|
/linux-4.1.27/tools/perf/ui/gtk/ |
D | hists.c | 158 static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, in perf_gtk__show_hists() argument 223 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { in perf_gtk__show_hists() 226 u64 total = hists__total_period(h->hists); in perf_gtk__show_hists() 313 struct hists *hists = evsel__hists(pos); in perf_evlist__gtk_browse_hists() local 336 perf_gtk__show_hists(scrolled_window, hists, min_pcnt); in perf_evlist__gtk_browse_hists()
|
D | Build | 4 gtk-y += hists.o
|