Home
last modified time | relevance | path

Searched refs:hists (Results 1 – 20 of 20) sorted by relevance

/linux-4.4.14/tools/perf/tests/
Dhists_filter.c72 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local
75 hists->thread_filter = NULL; in add_hist_entries()
76 hists->dso_filter = NULL; in add_hist_entries()
77 hists->symbol_filter_str = NULL; in add_hist_entries()
144 struct hists *hists = evsel__hists(evsel); in test__hists_filter() local
146 hists__collapse_resort(hists, NULL); in test__hists_filter()
147 hists__output_resort(hists, NULL); in test__hists_filter()
151 print_hists_out(hists); in test__hists_filter()
155 hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); in test__hists_filter()
157 hists->nr_entries == 9); in test__hists_filter()
[all …]
Dhists_cumulate.c76 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()
127 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
135 root_in = &hists->entries_collapsed; in del_hist_entries()
137 root_in = hists->entries_in; in del_hist_entries()
139 root_out = &hists->entries; in del_hist_entries()
178 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
193 hists__collapse_resort(hists, NULL); in do_test()
194 hists__output_resort(hists, NULL); in do_test()
200 print_hists_out(hists); in do_test()
[all …]
Dhists_link.c76 struct hists *hists = evsel__hists(evsel); in add_hist_entries() local
92 he = __hists__add_entry(hists, &al, NULL, in add_hist_entries()
118 he = __hists__add_entry(hists, &al, NULL, in add_hist_entries()
151 static int __validate_match(struct hists *hists) in __validate_match() argument
161 root = &hists->entries_collapsed; in __validate_match()
163 root = hists->entries_in; in __validate_match()
194 static int validate_match(struct hists *leader, struct hists *other) in validate_match()
199 static int __validate_link(struct hists *hists, int idx) in __validate_link() argument
213 root = &hists->entries_collapsed; in __validate_link()
215 root = hists->entries_in; in __validate_link()
[all …]
Dhists_output.c46 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()
93 static void del_hist_entries(struct hists *hists) in del_hist_entries() argument
101 root_in = &hists->entries_collapsed; in del_hist_entries()
103 root_in = hists->entries_in; in del_hist_entries()
105 root_out = &hists->entries; in del_hist_entries()
129 struct hists *hists = evsel__hists(evsel); in test1() local
154 err = add_hist_entries(hists, machine); in test1()
158 hists__collapse_resort(hists, NULL); in test1()
159 hists__output_resort(hists, NULL); in test1()
[all …]
Dhists_common.h72 void print_hists_in(struct hists *hists);
73 void print_hists_out(struct hists *hists);
Dhists_common.c157 void print_hists_in(struct hists *hists) in print_hists_in() argument
164 root = &hists->entries_collapsed; in print_hists_in()
166 root = hists->entries_in; in print_hists_in()
187 void print_hists_out(struct hists *hists) in print_hists_out() argument
193 root = &hists->entries; in print_hists_out()
/linux-4.4.14/tools/perf/util/
Dhist.c12 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,
18 static bool hists__filter_entry_by_socket(struct hists *hists,
21 u16 hists__col_len(struct hists *hists, enum hist_column col) in hists__col_len() argument
23 return hists->col_len[col]; in hists__col_len()
26 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__set_col_len() argument
28 hists->col_len[col] = len; in hists__set_col_len()
31 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__new_col_len() argument
33 if (len > hists__col_len(hists, col)) { in hists__new_col_len()
[all …]
Dhist.h61 struct hists { struct
113 struct hist_entry *__hists__add_entry(struct hists *hists,
127 struct hists *hists);
130 void hists__output_resort(struct hists *hists, struct ui_progress *prog);
131 void hists__collapse_resort(struct hists *hists, struct ui_progress *prog);
133 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel);
134 void hists__delete_entries(struct hists *hists);
135 void hists__output_recalc_col_len(struct hists *hists, int max_rows);
137 u64 hists__total_period(struct hists *hists);
138 void hists__reset_stats(struct hists *hists);
[all …]
Dsort.h123 struct hists *hists; member
149 u64 total_period = hists__total_period(he->hists); in hist_entry__get_percent_limit()
Dsort.c1389 void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists) in perf_hpp__reset_sort_width() argument
1397 hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); in perf_hpp__reset_sort_width()
1438 len = hists__col_len(he->hists, hse->se->se_width_idx); in __sort__hpp_entry()
/linux-4.4.14/tools/perf/ui/browsers/
Dhists.c24 struct hists *hists; member
40 static int hists__browser_title(struct hists *hists,
50 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter; in hist_browser__has_filter()
56 struct hists *hists = browser->hists; in hist_browser__get_folding() local
59 for (nd = rb_first(&hists->entries); in hist_browser__get_folding()
78 nr_entries = hb->hists->nr_entries; in hist_browser__nr_entries()
104 browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); in hist_browser__refresh_dimensions()
399 struct hists *hists = browser->hists; in __hist_browser__set_folding() local
401 for (nd = rb_first(&hists->entries); in __hist_browser__set_folding()
436 browser->b.entries = &browser->hists->entries; in hist_browser__run()
[all …]
DBuild2 libperf-y += hists.o
/linux-4.4.14/tools/perf/
Dbuiltin-diff.c48 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
339 if (hists__add_entry(hists, &al, sample->period, in diff__process_sample_event()
[all …]
Dbuiltin-annotate.c54 struct hists *hists = evsel__hists(evsel); in perf_evsel__add_sample() local
75 he = __hists__add_entry(hists, al, NULL, NULL, NULL, 1, 1, 0, true); in perf_evsel__add_sample()
80 hists__inc_nr_samples(hists, true); in perf_evsel__add_sample()
121 static void hists__find_annotations(struct hists *hists, in hists__find_annotations() argument
125 struct rb_node *nd = rb_first(&hists->entries), *next; in hists__find_annotations()
237 struct hists *hists = evsel__hists(pos); in __cmd_annotate() local
238 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate()
242 hists__collapse_resort(hists, NULL); in __cmd_annotate()
245 hists__output_resort(hists, NULL); in __cmd_annotate()
251 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
Dbuiltin-top.c203 pthread_mutex_unlock(&he->hists->lock); in perf_top__record_precise_ip()
213 pthread_mutex_lock(&he->hists->lock); in perf_top__record_precise_ip()
257 struct hists *hists = evsel__hists(top->sym_evsel); in perf_top__print_sym_table() local
268 if (hists->stats.nr_lost_warned != in perf_top__print_sym_table()
269 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()
271 hists->stats.nr_events[PERF_RECORD_LOST]; in perf_top__print_sym_table()
274 hists->stats.nr_lost_warned); in perf_top__print_sym_table()
285 hists__delete_entries(hists); in perf_top__print_sym_table()
287 hists__decay_entries(hists, top->hide_user_symbols, in perf_top__print_sym_table()
[all …]
Dbuiltin-report.c296 static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, in hists__fprintf_nr_sample_events() argument
301 unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in hists__fprintf_nr_sample_events()
302 u64 nr_events = hists->stats.total_period; in hists__fprintf_nr_sample_events()
303 struct perf_evsel *evsel = hists_to_evsel(hists); in hists__fprintf_nr_sample_events()
306 int socked_id = hists->socket_filter; in hists__fprintf_nr_sample_events()
309 nr_samples = hists->stats.nr_non_filtered_samples; in hists__fprintf_nr_sample_events()
310 nr_events = hists->stats.total_non_filtered_period; in hists__fprintf_nr_sample_events()
320 const struct hists *pos_hists = evsel__hists(pos); in hists__fprintf_nr_sample_events()
362 struct hists *hists = evsel__hists(pos); in perf_evlist__tty_browse_hists() local
369 hists__fprintf_nr_sample_events(hists, rep, evname, stdout); in perf_evlist__tty_browse_hists()
[all …]
/linux-4.4.14/tools/perf/ui/stdio/
Dhist.c291 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.4.14/tools/perf/ui/
Dhist.c23 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.4.14/tools/perf/ui/gtk/
Dhists.c158 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()
DBuild4 gtk-y += hists.o