/external/linux-tools-perf/src/tools/perf/util/ |
D | hist.c | 10 static bool hists__filter_entry_by_dso(struct hists *hists, 12 static bool hists__filter_entry_by_thread(struct hists *hists, 14 static bool hists__filter_entry_by_symbol(struct hists *hists, 31 u16 hists__col_len(struct hists *hists, enum hist_column col) in hists__col_len() argument 33 return hists->col_len[col]; in hists__col_len() 36 void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__set_col_len() argument 38 hists->col_len[col] = len; in hists__set_col_len() 41 bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) in hists__new_col_len() argument 43 if (len > hists__col_len(hists, col)) { in hists__new_col_len() 44 hists__set_col_len(hists, col, len); in hists__new_col_len() [all …]
|
D | hist.h | 67 struct hists { struct 83 struct hist_entry *__hists__add_entry(struct hists *self, argument 90 struct hists *hists); 93 struct hist_entry *__hists__add_branch_entry(struct hists *self, 100 struct hist_entry *__hists__add_mem_entry(struct hists *self, 107 void hists__output_resort(struct hists *self); 108 void hists__collapse_resort(struct hists *self); 110 void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel); 111 void hists__output_recalc_col_len(struct hists *hists, int max_rows); 113 void hists__inc_nr_entries(struct hists *hists, struct hist_entry *h); [all …]
|
D | evsel.h | 69 struct hists hists; member 95 #define hists_to_evsel(h) container_of(h, struct perf_evsel, hists) 258 void hists__init(struct hists *hists);
|
D | sort.h | 108 struct hists *hists; member
|
D | evsel.c | 117 void hists__init(struct hists *hists) in hists__init() argument 119 memset(hists, 0, sizeof(*hists)); in hists__init() 120 hists->entries_in_array[0] = hists->entries_in_array[1] = RB_ROOT; in hists__init() 121 hists->entries_in = &hists->entries_in_array[0]; in hists__init() 122 hists->entries_collapsed = RB_ROOT; in hists__init() 123 hists->entries = RB_ROOT; in hists__init() 124 pthread_mutex_init(&hists->lock, NULL); in hists__init() 166 hists__init(&evsel->hists); in perf_evsel__init()
|
D | session.c | 991 hists__inc_nr_events(&evsel->hists, event->header.type); in perf_session_deliver_event() 1484 ret += events_stats__fprintf(&pos->hists.stats, fp); in perf_session__fprintf_nr_events()
|
/external/linux-tools-perf/src/tools/perf/tests/ |
D | hists_link.c | 225 he = __hists__add_entry(&evsel->hists, &al, NULL, 1, 1); in add_hist_entries() 247 he = __hists__add_entry(&evsel->hists, &al, NULL, 1, 1); in add_hist_entries() 277 static int __validate_match(struct hists *hists) in __validate_match() argument 287 root = &hists->entries_collapsed; in __validate_match() 289 root = hists->entries_in; in __validate_match() 320 static int validate_match(struct hists *leader, struct hists *other) in validate_match() 325 static int __validate_link(struct hists *hists, int idx) in __validate_link() argument 339 root = &hists->entries_collapsed; in __validate_link() 341 root = hists->entries_in; in __validate_link() 398 static int validate_link(struct hists *leader, struct hists *other) in validate_link() [all …]
|
/external/linux-tools-perf/src/tools/perf/ |
D | builtin-diff.c | 47 struct hists *hists; member 222 u64 total = he->hists->stats.total_period; in period_percent() 264 pair->stat.period, pair->hists->stats.total_period, in formula_delta() 265 he->stat.period, he->hists->stats.total_period); in formula_delta() 305 static int hists__add_entry(struct hists *self, in hists__add_entry() 331 if (hists__add_entry(&evsel->hists, &al, sample->period, sample->weight)) { in diff__process_sample_event() 336 evsel->hists.stats.total_period += sample->period; in diff__process_sample_event() 368 struct hists *hists = &evsel->hists; in perf_evlist__collapse_resort() local 370 hists__collapse_resort(hists); in perf_evlist__collapse_resort() 381 if (pair->hists == d->hists) in get_pair_data() [all …]
|
D | builtin-report.c | 114 he = __hists__add_mem_entry(&evsel->hists, al, parent, mi, cost, cost); in perf_report__add_mem_hist_entry() 153 evsel->hists.stats.total_period += cost; in perf_report__add_mem_hist_entry() 154 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); in perf_report__add_mem_hist_entry() 202 he = __hists__add_branch_entry(&evsel->hists, al, parent, in perf_report__add_branch_hist_entry() 234 evsel->hists.stats.total_period += 1; in perf_report__add_branch_hist_entry() 235 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); in perf_report__add_branch_hist_entry() 261 he = __hists__add_entry(&evsel->hists, al, parent, sample->period, in perf_evsel__add_hist_entry() 290 evsel->hists.stats.total_period += sample->period; in perf_evsel__add_hist_entry() 291 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); in perf_evsel__add_hist_entry() 410 struct hists *self, in hists__fprintf_nr_sample_events() [all …]
|
D | builtin-annotate.c | 66 he = __hists__add_entry(&evsel->hists, al, NULL, 1, 1); in perf_evsel__add_sample() 79 evsel->hists.stats.total_period += sample->period; in perf_evsel__add_sample() 80 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); in perf_evsel__add_sample() 119 static void hists__find_annotations(struct hists *self, in hists__find_annotations() 229 struct hists *hists = &pos->hists; in __cmd_annotate() local 230 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; in __cmd_annotate() 234 hists__collapse_resort(hists); in __cmd_annotate() 235 hists__output_resort(hists); in __cmd_annotate() 241 hists__find_annotations(hists, pos, ann); in __cmd_annotate()
|
D | builtin-top.c | 248 pthread_mutex_lock(&evsel->hists.lock); in perf_evsel__add_hist_entry() 249 he = __hists__add_entry(&evsel->hists, al, NULL, sample->period, in perf_evsel__add_hist_entry() 251 pthread_mutex_unlock(&evsel->hists.lock); in perf_evsel__add_hist_entry() 256 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); in perf_evsel__add_hist_entry() 275 if (top->sym_evsel->hists.stats.nr_lost_warned != in perf_top__print_sym_table() 276 top->sym_evsel->hists.stats.nr_events[PERF_RECORD_LOST]) { in perf_top__print_sym_table() 277 top->sym_evsel->hists.stats.nr_lost_warned = in perf_top__print_sym_table() 278 top->sym_evsel->hists.stats.nr_events[PERF_RECORD_LOST]; in perf_top__print_sym_table() 281 top->sym_evsel->hists.stats.nr_lost_warned); in perf_top__print_sym_table() 290 hists__collapse_resort(&top->sym_evsel->hists); in perf_top__print_sym_table() [all …]
|
D | Makefile | 478 LIB_OBJS += $(OUTPUT)ui/browsers/hists.o 493 LIB_OBJS += $(OUTPUT)ui/gtk/hists.o 626 $(OUTPUT)ui/browsers/hists.o: ui/browsers/hists.c $(OUTPUT)PERF-CFLAGS
|
D | builtin-sched.c | 1427 evsel->hists.stats.total_period += sample->period; in perf_sched__process_tracepoint_sample() 1428 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); in perf_sched__process_tracepoint_sample()
|
D | builtin-script.c | 538 evsel->hists.stats.total_period += sample->period; in process_sample_event()
|
/external/linux-tools-perf/src/tools/perf/ui/browsers/ |
D | hists.c | 23 struct hists *hists; member 34 static int hists__browser_title(struct hists *hists, char *bf, size_t size, 40 browser->b.width = 3 + (hists__sort_list_width(browser->hists) + in hist_browser__refresh_dimensions() 46 browser->b.nr_entries = browser->hists->nr_entries; in hist_browser__reset() 201 browser->hists->nr_entries -= he->nr_rows; in hist_browser__toggle_fold() 207 browser->hists->nr_entries += he->nr_rows; in hist_browser__toggle_fold() 208 browser->b.nr_entries = browser->hists->nr_entries; in hist_browser__toggle_fold() 283 static void hists__set_folding(struct hists *hists, bool unfold) in hists__set_folding() argument 287 hists->nr_entries = 0; in hists__set_folding() 289 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { in hists__set_folding() [all …]
|
/external/linux-tools-perf/src/tools/perf/ui/gtk/ |
D | hists.c | 34 struct hists *hists = he->hists; in __hpp__color_fmt() local 35 struct perf_evsel *evsel = hists_to_evsel(hists); in __hpp__color_fmt() 37 if (hists->stats.total_period) in __hpp__color_fmt() 38 percent = 100.0 * get_field(he) / hists->stats.total_period; in __hpp__color_fmt() 51 u64 total = pair->hists->stats.total_period; in __hpp__color_fmt() 53 evsel = hists_to_evsel(pair->hists); in __hpp__color_fmt() 201 static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, in perf_gtk__show_hists() argument 219 .ptr = hists_to_evsel(hists), in perf_gtk__show_hists() 280 for (nd = rb_first(&hists->entries); nd; nd = rb_next(nd)) { in perf_gtk__show_hists() 284 hists->stats.total_period; in perf_gtk__show_hists() [all …]
|
/external/linux-tools-perf/src/tools/perf/ui/ |
D | hist.c | 19 struct hists *hists = he->hists; in __hpp__fmt() local 20 struct perf_evsel *evsel = hists_to_evsel(hists); in __hpp__fmt() 25 if (hists->stats.total_period) in __hpp__fmt() 27 hists->stats.total_period; in __hpp__fmt() 42 u64 total = pair->hists->stats.total_period; in __hpp__fmt() 47 evsel = hists_to_evsel(pair->hists); in __hpp__fmt() 240 struct hists *hists) in hist_entry__sort_snprintf() argument 252 hists__col_len(hists, se->se_width_idx)); in hist_entry__sort_snprintf() 261 unsigned int hists__sort_list_width(struct hists *hists) in hists__sort_list_width() argument 267 .ptr = hists_to_evsel(hists), in hists__sort_list_width() [all …]
|
/external/linux-tools-perf/src/tools/perf/ui/stdio/ |
D | hist.c | 295 struct hists *hists, in hist_entry__callchain_fprintf() argument 299 u64 total_period = hists->stats.total_period; in hist_entry__callchain_fprintf() 304 left_margin = hists__col_len(hists, se->se_width_idx); in hist_entry__callchain_fprintf() 352 struct hists *hists, in hist_entry__fprintf() argument 365 hist_entry__sort_snprintf(he, bf + ret, size - ret, hists); in hist_entry__fprintf() 370 ret += hist_entry__callchain_fprintf(he, hists, fp); in hist_entry__fprintf() 375 size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, in hists__fprintf() argument 390 .ptr = hists_to_evsel(hists), in hists__fprintf() 423 hists__set_col_len(hists, se->se_width_idx, in hists__fprintf() 430 if (!hists__new_col_len(hists, se->se_width_idx, width)) in hists__fprintf() [all …]
|