/external/linux-tools-perf/perf-3.12.0/tools/perf/ |
H A D | builtin-annotate.c | 66 he = __hists__add_entry(&evsel->hists, al, NULL, 1, 1); 79 evsel->hists.stats.total_period += sample->period; 80 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); 119 static void hists__find_annotations(struct hists *self, 229 struct hists *hists = &pos->hists; local 230 u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; 234 hists__collapse_resort(hists); 235 hists__output_resort(hists); [all...] |
H A D | builtin-report.c | 114 he = __hists__add_mem_entry(&evsel->hists, al, parent, mi, cost, cost); 153 evsel->hists.stats.total_period += cost; 154 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); 202 he = __hists__add_branch_entry(&evsel->hists, al, parent, 234 evsel->hists.stats.total_period += 1; 235 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); 261 he = __hists__add_entry(&evsel->hists, al, parent, sample->period, 290 evsel->hists.stats.total_period += sample->period; 291 hists__inc_nr_events(&evsel->hists, PERF_RECORD_SAMPLE); 410 struct hists *sel 453 struct hists *hists = &pos->hists; local 551 struct hists *hists = &pos->hists; local [all...] |
H A D | builtin-diff.c | 47 struct hists *hists; member in struct:data__file 222 u64 total = he->hists->stats.total_period; 264 pair->stat.period, pair->hists->stats.total_period, 265 he->stat.period, he->hists->stats.total_period); 305 static int hists__add_entry(struct hists *self, 331 if (hists__add_entry(&evsel->hists, &al, sample->period, sample->weight)) { 336 evsel->hists.stats.total_period += sample->period; 368 struct hists *hists local 397 hists__baseline_only(struct hists *hists) argument 419 hists__precompute(struct hists *hists) argument 550 hists__compute_resort(struct hists *hists) argument 578 hists__process(struct hists *hists) argument 737 struct hists *hists = he->hists; local [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/ |
H A D | hists_link.c | 225 he = __hists__add_entry(&evsel->hists, &al, NULL, 1, 1); 247 he = __hists__add_entry(&evsel->hists, &al, NULL, 1, 1); 277 static int __validate_match(struct hists *hists) argument 287 root = &hists->entries_collapsed; 289 root = hists->entries_in; 320 static int validate_match(struct hists *leader, struct hists *other) 325 static int __validate_link(struct hists *hists, in argument 403 print_hists(struct hists *hists) argument [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/ |
H A D | hist.c | 19 struct hists *hists = he->hists; local 20 struct perf_evsel *evsel = hists_to_evsel(hists); 25 if (hists->stats.total_period) 27 hists->stats.total_period; 42 u64 total = pair->hists->stats.total_period; 47 evsel = hists_to_evsel(pair->hists); 240 struct hists *hists) 239 hist_entry__sort_snprintf(struct hist_entry *he, char *s, size_t size, struct hists *hists) argument 261 hists__sort_list_width(struct hists *hists) argument [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/gtk/ |
H A D | hists.c | 34 struct hists *hists = he->hists; local 35 struct perf_evsel *evsel = hists_to_evsel(hists); 37 if (hists->stats.total_period) 38 percent = 100.0 * get_field(he) / hists->stats.total_period; 51 u64 total = pair->hists->stats.total_period; 53 evsel = hists_to_evsel(pair->hists); 201 static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, argument 379 struct hists *hists = &pos->hists; local [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/stdio/ |
H A D | hist.c | 295 struct hists *hists, 299 u64 total_period = hists->stats.total_period; 304 left_margin = hists__col_len(hists, se->se_width_idx); 352 struct hists *hists, 365 hist_entry__sort_snprintf(he, bf + ret, size - ret, hists); 370 ret += hist_entry__callchain_fprintf(he, hists, fp); 375 size_t hists__fprintf(struct hists *hists, boo argument 294 hist_entry__callchain_fprintf(struct hist_entry *he, struct hists *hists, FILE *fp) argument 351 hist_entry__fprintf(struct hist_entry *he, size_t size, struct hists *hists, char *bf, size_t bfsz, FILE *fp) argument [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | evsel.h | 69 struct hists hists; member in struct:perf_evsel 95 #define hists_to_evsel(h) container_of(h, struct perf_evsel, hists) 258 void hists__init(struct hists *hists);
|
H A D | hist.h | 67 struct hists { struct 83 struct hist_entry *__hists__add_entry(struct hists *self, 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, boo [all...] |
H A D | sort.h | 108 struct hists *hists; member in struct:hist_entry
|
H A 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) argument 33 return hists->col_len[col]; 36 void hists__set_col_len(struct hists *hist argument 41 hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) argument 50 hists__reset_col_len(struct hists *hists) argument 58 hists__set_unres_dso_col_len(struct hists *hists, int dso) argument 68 hists__calc_col_len(struct hists *hists, struct hist_entry *h) argument 165 hists__output_recalc_col_len(struct hists *hists, int max_rows) argument 229 hists__decay_entry(struct hists *hists, struct hist_entry *he) argument 244 hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel) argument 324 hists__inc_nr_entries(struct hists *hists, struct hist_entry *h) argument 340 add_hist_entry(struct hists *hists, struct hist_entry *entry, struct addr_location *al, u64 period, u64 weight) argument 579 hists__get_rotate_entries_in(struct hists *hists) argument 594 hists__apply_filters(struct hists *hists, struct hist_entry *he) argument 601 hists__collapse_resort(struct hists *hists) argument 717 hists__output_resort(struct hists *hists) argument 747 hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, enum hist_filter filter) argument 765 hists__filter_entry_by_dso(struct hists *hists, struct hist_entry *he) argument 777 hists__filter_by_dso(struct hists *hists) argument 798 hists__filter_entry_by_thread(struct hists *hists, struct hist_entry *he) argument 810 hists__filter_by_thread(struct hists *hists) argument 828 hists__filter_entry_by_symbol(struct hists *hists, struct hist_entry *he) argument 841 hists__filter_by_symbol(struct hists *hists) argument 875 hists__inc_nr_events(struct hists *hists, u32 type) argument 880 hists__add_dummy_entry(struct hists *hists, struct hist_entry *pair) argument 924 hists__find_entry(struct hists *hists, struct hist_entry *he) argument [all...] |
H A D | evsel.c | 117 void hists__init(struct hists *hists) argument 119 memset(hists, 0, sizeof(*hists)); 120 hists->entries_in_array[0] = hists->entries_in_array[1] = RB_ROOT; 121 hists->entries_in = &hists->entries_in_array[0]; 122 hists->entries_collapsed = RB_ROOT; 123 hists [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/browsers/ |
H A D | hists.c | 23 struct hists *hists; member in struct:hist_browser 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) + 46 browser->b.nr_entries = browser->hists->nr_entries; 201 browser->hists->nr_entries -= he->nr_rows; 207 browser->hists->nr_entries += he->nr_rows; 208 browser->b.nr_entries = browser->hists->nr_entries; 283 static void hists__set_folding(struct hists *hist argument 605 struct hists *hists = he->hists; local 831 hists__filter_entries(struct rb_node *nd, struct hists *hists, float min_pcnt) argument 852 hists__filter_prev_entries(struct rb_node *nd, struct hists *hists, float min_pcnt) argument 1192 hist_browser__new(struct hists *hists) argument 1221 hists__browser_title(struct hists *hists, char *bf, size_t size, const char *ev_name) argument 1392 struct hists *hists = &evsel->hists; local [all...] |