hists 221 tools/perf/builtin-annotate.c struct hists *hists = evsel__hists(evsel); hists 252 tools/perf/builtin-annotate.c he = hists__add_entry(hists, al, NULL, NULL, NULL, sample, true); hists 257 tools/perf/builtin-annotate.c hists__inc_nr_samples(hists, true); hists 309 tools/perf/builtin-annotate.c static void hists__find_annotations(struct hists *hists, hists 313 tools/perf/builtin-annotate.c struct rb_node *nd = rb_first_cached(&hists->entries), *next; hists 429 tools/perf/builtin-annotate.c struct hists *hists = evsel__hists(pos); hists 430 tools/perf/builtin-annotate.c u32 nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; hists 434 tools/perf/builtin-annotate.c hists__collapse_resort(hists, NULL); hists 443 tools/perf/builtin-annotate.c hists__find_annotations(hists, pos, ann); hists 47 tools/perf/builtin-c2c.c struct hists hists; hists 59 tools/perf/builtin-c2c.c struct c2c_hists *hists; hists 84 tools/perf/builtin-c2c.c struct c2c_hists hists; hists 163 tools/perf/builtin-c2c.c if (c2c_he->hists) { hists 164 tools/perf/builtin-c2c.c hists__delete_entries(&c2c_he->hists->hists); hists 165 tools/perf/builtin-c2c.c free(c2c_he->hists); hists 180 tools/perf/builtin-c2c.c static int c2c_hists__init(struct c2c_hists *hists, hists 190 tools/perf/builtin-c2c.c struct c2c_hists *hists; hists 194 tools/perf/builtin-c2c.c if (c2c_he->hists) hists 195 tools/perf/builtin-c2c.c return c2c_he->hists; hists 197 tools/perf/builtin-c2c.c hists = c2c_he->hists = zalloc(sizeof(*hists)); hists 198 tools/perf/builtin-c2c.c if (!hists) hists 201 tools/perf/builtin-c2c.c ret = c2c_hists__init(hists, sort, nr_header_lines); hists 203 tools/perf/builtin-c2c.c free(hists); hists 207 tools/perf/builtin-c2c.c return hists; hists 262 tools/perf/builtin-c2c.c struct c2c_hists *c2c_hists = &c2c.hists; hists 294 tools/perf/builtin-c2c.c he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, hists 307 tools/perf/builtin-c2c.c hists__inc_nr_samples(&c2c_hists->hists, he->filtered); hists 328 tools/perf/builtin-c2c.c he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops, hists 344 tools/perf/builtin-c2c.c hists__inc_nr_samples(&c2c_hists->hists, he->filtered); hists 418 tools/perf/builtin-c2c.c static int symbol_width(struct hists *hists, struct sort_entry *se) hists 420 tools/perf/builtin-c2c.c int width = hists__col_len(hists, se->se_width_idx); hists 430 tools/perf/builtin-c2c.c struct hists *hists) hists 439 tools/perf/builtin-c2c.c return symbol_width(hists, dim->se); hists 441 tools/perf/builtin-c2c.c return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : hists 446 tools/perf/builtin-c2c.c struct hists *hists, int line, int *span) hists 448 tools/perf/builtin-c2c.c struct perf_hpp_list *hpp_list = hists->hpp_list; hists 452 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, hists); hists 496 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 510 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 524 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 534 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 562 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 583 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 616 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); \ hists 668 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 718 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 769 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 803 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 818 tools/perf/builtin-c2c.c struct c2c_hists *hists; hists 824 tools/perf/builtin-c2c.c hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); hists 826 tools/perf/builtin-c2c.c total = &hists->stats; hists 860 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 904 tools/perf/builtin-c2c.c struct c2c_hists *hists; hists 906 tools/perf/builtin-c2c.c hists = container_of(he->hists, struct c2c_hists, hists); hists 907 tools/perf/builtin-c2c.c return &hists->stats; hists 920 tools/perf/builtin-c2c.c struct c2c_hists *hists; \ hists 922 tools/perf/builtin-c2c.c hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \ hists 923 tools/perf/builtin-c2c.c return percent(c2c_he->stats.__f, hists->stats.__f); \ hists 935 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 966 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 997 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 1028 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 1062 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 1184 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 1209 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 1223 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 1236 tools/perf/builtin-c2c.c int width = c2c_width(fmt, hpp, he->hists); hists 1721 tools/perf/builtin-c2c.c len = hists__col_len(he->hists, dim->se->se_width_idx); hists 1724 tools/perf/builtin-c2c.c len = symbol_width(he->hists, dim->se); hists 1857 tools/perf/builtin-c2c.c perf_hpp__append_sort_keys(&hists->list); hists 1865 tools/perf/builtin-c2c.c static int c2c_hists__init(struct c2c_hists *hists, hists 1869 tools/perf/builtin-c2c.c __hists__init(&hists->hists, &hists->list); hists 1876 tools/perf/builtin-c2c.c perf_hpp_list__init(&hists->list); hists 1879 tools/perf/builtin-c2c.c hists->list.nr_header_lines = nr_header_lines; hists 1881 tools/perf/builtin-c2c.c return hpp_list__parse(&hists->list, NULL, sort); hists 1947 tools/perf/builtin-c2c.c dim = &c2c.hists == c2c_he->hists ? hists 1978 tools/perf/builtin-c2c.c c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); hists 1979 tools/perf/builtin-c2c.c hists__calc_col_len(&c2c_hists->hists, &c2c_he->he); hists 2007 tools/perf/builtin-c2c.c c2c_hists = c2c_he->hists; hists 2017 tools/perf/builtin-c2c.c hists__collapse_resort(&c2c_hists->hists, NULL); hists 2018 tools/perf/builtin-c2c.c hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb); hists 2104 tools/perf/builtin-c2c.c static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb) hists 2106 tools/perf/builtin-c2c.c struct rb_node *next = rb_first_cached(&hists->entries); hists 2125 tools/perf/builtin-c2c.c struct c2c_stats *stats = &c2c.hists.stats; hists 2200 tools/perf/builtin-c2c.c hists__fprintf_headers(&c2c_hists->hists, out); hists 2211 tools/perf/builtin-c2c.c hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false); hists 2233 tools/perf/builtin-c2c.c nd = rb_first_cached(&c2c.hists.hists.entries); hists 2243 tools/perf/builtin-c2c.c print_cacheline(c2c_he->hists, he, &hpp_list, out); hists 2286 tools/perf/builtin-c2c.c hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); hists 2301 tools/perf/builtin-c2c.c struct rb_node *nd = rb_first_cached(&hb->hists->entries); hists 2339 tools/perf/builtin-c2c.c c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he) hists 2345 tools/perf/builtin-c2c.c hist_browser__init(&browser->hb, hists); hists 2374 tools/perf/builtin-c2c.c c2c_hists = c2c_he->hists; hists 2376 tools/perf/builtin-c2c.c cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he); hists 2426 tools/perf/builtin-c2c.c perf_c2c_browser__new(struct hists *hists) hists 2428 tools/perf/builtin-c2c.c struct hist_browser *browser = hist_browser__new(hists); hists 2438 tools/perf/builtin-c2c.c static int perf_c2c__hists_browse(struct hists *hists) hists 2447 tools/perf/builtin-c2c.c browser = perf_c2c_browser__new(hists); hists 2484 tools/perf/builtin-c2c.c perf_c2c__hists_browse(&c2c.hists.hists); hists 2784 tools/perf/builtin-c2c.c err = c2c_hists__init(&c2c.hists, "dcacheline", 2); hists 2833 tools/perf/builtin-c2c.c c2c_hists__reinit(&c2c.hists, hists 2851 tools/perf/builtin-c2c.c ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); hists 2853 tools/perf/builtin-c2c.c hists__collapse_resort(&c2c.hists.hists, NULL); hists 2854 tools/perf/builtin-c2c.c hists__output_resort_cb(&c2c.hists.hists, &prog, resort_hitm_cb); hists 2855 tools/perf/builtin-c2c.c hists__iterate_cb(&c2c.hists.hists, resort_cl_cb); hists 71 tools/perf/builtin-diff.c struct hists *hists; hists 264 tools/perf/builtin-diff.c u64 total = hists__total_period(he->hists); hists 304 tools/perf/builtin-diff.c u64 he_total = he->hists->stats.total_period; hists 305 tools/perf/builtin-diff.c u64 pair_total = pair->hists->stats.total_period; hists 308 tools/perf/builtin-diff.c he_total = he->hists->stats.total_non_filtered_period; hists 309 tools/perf/builtin-diff.c pair_total = pair->hists->stats.total_non_filtered_period; hists 389 tools/perf/builtin-diff.c struct hists *hists = evsel__hists(evsel); hists 409 tools/perf/builtin-diff.c if (!hists__add_entry(hists, &al, NULL, NULL, NULL, sample, hists 416 tools/perf/builtin-diff.c if (!hists__add_entry_ops(hists, &block_hist_ops, &al, NULL, hists 432 tools/perf/builtin-diff.c hists->stats.total_period += sample->period; hists 434 tools/perf/builtin-diff.c hists->stats.total_non_filtered_period += sample->period; hists 474 tools/perf/builtin-diff.c struct hists *hists = evsel__hists(evsel); hists 476 tools/perf/builtin-diff.c hists__collapse_resort(hists, NULL); hists 496 tools/perf/builtin-diff.c if (pair->hists == d->hists) hists 511 tools/perf/builtin-diff.c static void hists__baseline_only(struct hists *hists) hists 516 tools/perf/builtin-diff.c if (hists__has(hists, need_collapse)) hists 517 tools/perf/builtin-diff.c root = &hists->entries_collapsed; hists 519 tools/perf/builtin-diff.c root = hists->entries_in; hists 672 tools/perf/builtin-diff.c struct hists *hists_pair) hists 703 tools/perf/builtin-diff.c static void block_hists_match(struct hists *hists_base, hists 704 tools/perf/builtin-diff.c struct hists *hists_pair) hists 730 tools/perf/builtin-diff.c static void hists__precompute(struct hists *hists) hists 735 tools/perf/builtin-diff.c if (hists__has(hists, need_collapse)) hists 736 tools/perf/builtin-diff.c root = &hists->entries_collapsed; hists 738 tools/perf/builtin-diff.c root = hists->entries_in; hists 985 tools/perf/builtin-diff.c static void hists__process(struct hists *hists) hists 988 tools/perf/builtin-diff.c hists__baseline_only(hists); hists 990 tools/perf/builtin-diff.c hists__precompute(hists); hists 991 tools/perf/builtin-diff.c hists__output_resort(hists, NULL); hists 996 tools/perf/builtin-diff.c hists__fprintf(hists, !quiet, 0, 0, 0, stdout, hists 1022 tools/perf/builtin-diff.c struct hists *hists_base = evsel__hists(evsel_base); hists 1029 tools/perf/builtin-diff.c struct hists *hists; hists 1035 tools/perf/builtin-diff.c hists = evsel__hists(evsel); hists 1036 tools/perf/builtin-diff.c d->hists = hists; hists 1038 tools/perf/builtin-diff.c hists__match(hists_base, hists); hists 1041 tools/perf/builtin-diff.c hists__link(hists_base, hists); hists 1295 tools/perf/builtin-diff.c u64 total = hists__total_period(he->hists); hists 1577 tools/perf/builtin-diff.c struct hists *hists __maybe_unused, hists 1590 tools/perf/builtin-diff.c struct hists *hists __maybe_unused) hists 416 tools/perf/builtin-report.c static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep, hists 421 tools/perf/builtin-report.c unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; hists 422 tools/perf/builtin-report.c u64 nr_events = hists->stats.total_period; hists 423 tools/perf/builtin-report.c struct evsel *evsel = hists_to_evsel(hists); hists 426 tools/perf/builtin-report.c int socked_id = hists->socket_filter; hists 432 tools/perf/builtin-report.c nr_samples = hists->stats.nr_non_filtered_samples; hists 433 tools/perf/builtin-report.c nr_events = hists->stats.total_non_filtered_period; hists 443 tools/perf/builtin-report.c const struct hists *pos_hists = evsel__hists(pos); hists 494 tools/perf/builtin-report.c struct hists *hists = evsel__hists(pos); hists 501 tools/perf/builtin-report.c hists__fprintf_nr_sample_events(hists, rep, evname, stdout); hists 502 tools/perf/builtin-report.c hists__fprintf(hists, !quiet, 0, 0, rep->min_percent, stdout, hists 615 tools/perf/builtin-report.c struct hists *hists = evsel__hists(pos); hists 618 tools/perf/builtin-report.c hists->symbol_filter_str = rep->symbol_filter_str; hists 620 tools/perf/builtin-report.c hists->socket_filter = rep->socket_filter; hists 622 tools/perf/builtin-report.c ret = hists__collapse_resort(hists, &prog); hists 629 tools/perf/builtin-report.c struct hists *leader_hists = evsel__hists(pos->leader); hists 631 tools/perf/builtin-report.c hists__match(leader_hists, hists); hists 632 tools/perf/builtin-report.c hists__link(leader_hists, hists); hists 646 tools/perf/builtin-report.c struct evsel *evsel = hists_to_evsel(he->hists); hists 118 tools/perf/builtin-top.c evsel = hists_to_evsel(he->hists); hists 219 tools/perf/builtin-top.c pthread_mutex_unlock(&he->hists->lock); hists 229 tools/perf/builtin-top.c pthread_mutex_lock(&he->hists->lock); hists 244 tools/perf/builtin-top.c evsel = hists_to_evsel(he->hists); hists 279 tools/perf/builtin-top.c struct hists *hists = evsel__hists(pos); hists 285 tools/perf/builtin-top.c hists__unlink(hists); hists 289 tools/perf/builtin-top.c hists__delete_entries(hists); hists 291 tools/perf/builtin-top.c hists__decay_entries(hists, t->hide_user_symbols, hists 296 tools/perf/builtin-top.c hists__collapse_resort(hists, NULL); hists 301 tools/perf/builtin-top.c struct hists *leader_hists = evsel__hists(pos->leader); hists 303 tools/perf/builtin-top.c hists__match(leader_hists, hists); hists 304 tools/perf/builtin-top.c hists__link(leader_hists, hists); hists 319 tools/perf/builtin-top.c struct hists *hists = evsel__hists(evsel); hists 329 tools/perf/builtin-top.c (hists->stats.nr_lost_warned != hists 330 tools/perf/builtin-top.c hists->stats.nr_events[PERF_RECORD_LOST])) { hists 331 tools/perf/builtin-top.c hists->stats.nr_lost_warned = hists 332 tools/perf/builtin-top.c hists->stats.nr_events[PERF_RECORD_LOST]; hists 335 tools/perf/builtin-top.c hists->stats.nr_lost_warned); hists 346 tools/perf/builtin-top.c hists__output_recalc_col_len(hists, top->print_entries - printed); hists 348 tools/perf/builtin-top.c hists__fprintf(hists, false, top->print_entries - printed, win_width, hists 391 tools/perf/builtin-top.c struct hists *hists = evsel__hists(top->sym_evsel); hists 409 tools/perf/builtin-top.c next = rb_first_cached(&hists->entries); hists 636 tools/perf/builtin-top.c struct hists *hists = evsel__hists(pos); hists 637 tools/perf/builtin-top.c hists->uid_filter_str = top->record_opts.target.uid_str; hists 815 tools/perf/builtin-top.c struct hists *hists = evsel__hists(evsel); hists 827 tools/perf/builtin-top.c pthread_mutex_lock(&hists->lock); hists 833 tools/perf/builtin-top.c pthread_mutex_unlock(&hists->lock); hists 843 tools/perf/builtin-top.c struct hists *hists = evsel__hists(evsel); hists 847 tools/perf/builtin-top.c hists->stats.total_lost += event->lost.lost; hists 855 tools/perf/builtin-top.c struct hists *hists = evsel__hists(evsel); hists 859 tools/perf/builtin-top.c hists->stats.total_lost_samples += event->lost_samples.lost; hists 163 tools/perf/tests/hists_common.c void print_hists_in(struct hists *hists) hists 169 tools/perf/tests/hists_common.c if (hists__has(hists, need_collapse)) hists 170 tools/perf/tests/hists_common.c root = &hists->entries_collapsed; hists 172 tools/perf/tests/hists_common.c root = hists->entries_in; hists 193 tools/perf/tests/hists_common.c void print_hists_out(struct hists *hists) hists 199 tools/perf/tests/hists_common.c root = &hists->entries; hists 73 tools/perf/tests/hists_common.h void print_hists_in(struct hists *hists); hists 74 tools/perf/tests/hists_common.h void print_hists_out(struct hists *hists); hists 80 tools/perf/tests/hists_cumulate.c static int add_hist_entries(struct hists *hists, struct machine *machine) hists 83 tools/perf/tests/hists_cumulate.c struct evsel *evsel = hists_to_evsel(hists); hists 126 tools/perf/tests/hists_cumulate.c static void del_hist_entries(struct hists *hists) hists 133 tools/perf/tests/hists_cumulate.c if (hists__has(hists, need_collapse)) hists 134 tools/perf/tests/hists_cumulate.c root_in = &hists->entries_collapsed; hists 136 tools/perf/tests/hists_cumulate.c root_in = hists->entries_in; hists 138 tools/perf/tests/hists_cumulate.c root_out = &hists->entries; hists 177 tools/perf/tests/hists_cumulate.c static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, hists 192 tools/perf/tests/hists_cumulate.c hists__collapse_resort(hists, NULL); hists 193 tools/perf/tests/hists_cumulate.c perf_evsel__output_resort(hists_to_evsel(hists), NULL); hists 199 tools/perf/tests/hists_cumulate.c print_hists_out(hists); hists 202 tools/perf/tests/hists_cumulate.c root = &hists->entries.rb_root; hists 253 tools/perf/tests/hists_cumulate.c struct hists *hists = evsel__hists(evsel); hists 288 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); hists 292 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); hists 295 tools/perf/tests/hists_cumulate.c del_hist_entries(hists); hists 304 tools/perf/tests/hists_cumulate.c struct hists *hists = evsel__hists(evsel); hists 435 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); hists 439 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), hists 443 tools/perf/tests/hists_cumulate.c del_hist_entries(hists); hists 452 tools/perf/tests/hists_cumulate.c struct hists *hists = evsel__hists(evsel); hists 493 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); hists 497 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); hists 500 tools/perf/tests/hists_cumulate.c del_hist_entries(hists); hists 509 tools/perf/tests/hists_cumulate.c struct hists *hists = evsel__hists(evsel); hists 679 tools/perf/tests/hists_cumulate.c err = add_hist_entries(hists, machine); hists 683 tools/perf/tests/hists_cumulate.c err = do_test(hists, expected, ARRAY_SIZE(expected), hists 687 tools/perf/tests/hists_cumulate.c del_hist_entries(hists); hists 69 tools/perf/tests/hists_filter.c struct hists *hists = evsel__hists(evsel); hists 72 tools/perf/tests/hists_filter.c hists->thread_filter = NULL; hists 73 tools/perf/tests/hists_filter.c hists->dso_filter = NULL; hists 74 tools/perf/tests/hists_filter.c hists->symbol_filter_str = NULL; hists 142 tools/perf/tests/hists_filter.c struct hists *hists = evsel__hists(evsel); hists 144 tools/perf/tests/hists_filter.c hists__collapse_resort(hists, NULL); hists 149 tools/perf/tests/hists_filter.c print_hists_out(hists); hists 153 tools/perf/tests/hists_filter.c hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); hists 155 tools/perf/tests/hists_filter.c hists->nr_entries == 9); hists 157 tools/perf/tests/hists_filter.c hists->stats.total_period == 1000); hists 159 tools/perf/tests/hists_filter.c hists->stats.nr_events[PERF_RECORD_SAMPLE] == hists 160 tools/perf/tests/hists_filter.c hists->stats.nr_non_filtered_samples); hists 162 tools/perf/tests/hists_filter.c hists->nr_entries == hists->nr_non_filtered_entries); hists 164 tools/perf/tests/hists_filter.c hists->stats.total_period == hists 165 tools/perf/tests/hists_filter.c hists->stats.total_non_filtered_period); hists 168 tools/perf/tests/hists_filter.c hists->thread_filter = fake_samples[9].thread; hists 169 tools/perf/tests/hists_filter.c hists__filter_by_thread(hists); hists 173 tools/perf/tests/hists_filter.c print_hists_out(hists); hists 178 tools/perf/tests/hists_filter.c hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); hists 180 tools/perf/tests/hists_filter.c hists->nr_entries == 9); hists 182 tools/perf/tests/hists_filter.c hists->stats.total_period == 1000); hists 186 tools/perf/tests/hists_filter.c hists->stats.nr_non_filtered_samples == 4); hists 188 tools/perf/tests/hists_filter.c hists->nr_non_filtered_entries == 4); hists 190 tools/perf/tests/hists_filter.c hists->stats.total_non_filtered_period == 400); hists 193 tools/perf/tests/hists_filter.c hists->thread_filter = NULL; hists 194 tools/perf/tests/hists_filter.c hists__filter_by_thread(hists); hists 197 tools/perf/tests/hists_filter.c hists->dso_filter = fake_samples[0].map->dso; hists 198 tools/perf/tests/hists_filter.c hists__filter_by_dso(hists); hists 202 tools/perf/tests/hists_filter.c print_hists_out(hists); hists 207 tools/perf/tests/hists_filter.c hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); hists 209 tools/perf/tests/hists_filter.c hists->nr_entries == 9); hists 211 tools/perf/tests/hists_filter.c hists->stats.total_period == 1000); hists 215 tools/perf/tests/hists_filter.c hists->stats.nr_non_filtered_samples == 3); hists 217 tools/perf/tests/hists_filter.c hists->nr_non_filtered_entries == 3); hists 219 tools/perf/tests/hists_filter.c hists->stats.total_non_filtered_period == 300); hists 222 tools/perf/tests/hists_filter.c hists->dso_filter = NULL; hists 223 tools/perf/tests/hists_filter.c hists__filter_by_dso(hists); hists 232 tools/perf/tests/hists_filter.c hists->symbol_filter_str = "main"; hists 233 tools/perf/tests/hists_filter.c hists__filter_by_symbol(hists); hists 237 tools/perf/tests/hists_filter.c print_hists_out(hists); hists 242 tools/perf/tests/hists_filter.c hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); hists 244 tools/perf/tests/hists_filter.c hists->nr_entries == 9); hists 246 tools/perf/tests/hists_filter.c hists->stats.total_period == 1000); hists 250 tools/perf/tests/hists_filter.c hists->stats.nr_non_filtered_samples == 3); hists 252 tools/perf/tests/hists_filter.c hists->nr_non_filtered_entries == 2); hists 254 tools/perf/tests/hists_filter.c hists->stats.total_non_filtered_period == 300); hists 257 tools/perf/tests/hists_filter.c hists->symbol_filter_str = NULL; hists 258 tools/perf/tests/hists_filter.c hists__filter_by_symbol(hists); hists 261 tools/perf/tests/hists_filter.c hists->socket_filter = 2; hists 262 tools/perf/tests/hists_filter.c hists__filter_by_socket(hists); hists 266 tools/perf/tests/hists_filter.c print_hists_out(hists); hists 271 tools/perf/tests/hists_filter.c hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); hists 273 tools/perf/tests/hists_filter.c hists->nr_entries == 9); hists 275 tools/perf/tests/hists_filter.c hists->stats.total_period == 1000); hists 279 tools/perf/tests/hists_filter.c hists->stats.nr_non_filtered_samples == 2); hists 281 tools/perf/tests/hists_filter.c hists->nr_non_filtered_entries == 2); hists 283 tools/perf/tests/hists_filter.c hists->stats.total_non_filtered_period == 200); hists 286 tools/perf/tests/hists_filter.c hists->socket_filter = -1; hists 287 tools/perf/tests/hists_filter.c hists__filter_by_socket(hists); hists 290 tools/perf/tests/hists_filter.c hists->thread_filter = fake_samples[1].thread; hists 291 tools/perf/tests/hists_filter.c hists->dso_filter = fake_samples[1].map->dso; hists 292 tools/perf/tests/hists_filter.c hists__filter_by_thread(hists); hists 293 tools/perf/tests/hists_filter.c hists__filter_by_dso(hists); hists 297 tools/perf/tests/hists_filter.c print_hists_out(hists); hists 302 tools/perf/tests/hists_filter.c hists->stats.nr_events[PERF_RECORD_SAMPLE] == 10); hists 304 tools/perf/tests/hists_filter.c hists->nr_entries == 9); hists 306 tools/perf/tests/hists_filter.c hists->stats.total_period == 1000); hists 310 tools/perf/tests/hists_filter.c hists->stats.nr_non_filtered_samples == 2); hists 312 tools/perf/tests/hists_filter.c hists->nr_non_filtered_entries == 1); hists 314 tools/perf/tests/hists_filter.c hists->stats.total_non_filtered_period == 200); hists 78 tools/perf/tests/hists_link.c struct hists *hists = evsel__hists(evsel); hists 89 tools/perf/tests/hists_link.c he = hists__add_entry(hists, &al, NULL, hists 108 tools/perf/tests/hists_link.c he = hists__add_entry(hists, &al, NULL, hists 141 tools/perf/tests/hists_link.c static int __validate_match(struct hists *hists) hists 150 tools/perf/tests/hists_link.c if (hists__has(hists, need_collapse)) hists 151 tools/perf/tests/hists_link.c root = &hists->entries_collapsed; hists 153 tools/perf/tests/hists_link.c root = hists->entries_in; hists 184 tools/perf/tests/hists_link.c static int validate_match(struct hists *leader, struct hists *other) hists 189 tools/perf/tests/hists_link.c static int __validate_link(struct hists *hists, int idx) hists 202 tools/perf/tests/hists_link.c if (hists__has(hists, need_collapse)) hists 203 tools/perf/tests/hists_link.c root = &hists->entries_collapsed; hists 205 tools/perf/tests/hists_link.c root = hists->entries_in; hists 262 tools/perf/tests/hists_link.c static int validate_link(struct hists *leader, struct hists *other) hists 270 tools/perf/tests/hists_link.c struct hists *hists, *first_hists; hists 307 tools/perf/tests/hists_link.c hists = evsel__hists(evsel); hists 308 tools/perf/tests/hists_link.c hists__collapse_resort(hists, NULL); hists 311 tools/perf/tests/hists_link.c print_hists_in(hists); hists 318 tools/perf/tests/hists_link.c hists = evsel__hists(evsel); hists 321 tools/perf/tests/hists_link.c hists__match(first_hists, hists); hists 322 tools/perf/tests/hists_link.c err = validate_match(first_hists, hists); hists 327 tools/perf/tests/hists_link.c hists__link(first_hists, hists); hists 328 tools/perf/tests/hists_link.c err = validate_link(first_hists, hists); hists 50 tools/perf/tests/hists_output.c static int add_hist_entries(struct hists *hists, struct machine *machine) hists 53 tools/perf/tests/hists_output.c struct evsel *evsel = hists_to_evsel(hists); hists 92 tools/perf/tests/hists_output.c static void del_hist_entries(struct hists *hists) hists 99 tools/perf/tests/hists_output.c if (hists__has(hists, need_collapse)) hists 100 tools/perf/tests/hists_output.c root_in = &hists->entries_collapsed; hists 102 tools/perf/tests/hists_output.c root_in = hists->entries_in; hists 104 tools/perf/tests/hists_output.c root_out = &hists->entries; hists 128 tools/perf/tests/hists_output.c struct hists *hists = evsel__hists(evsel); hists 153 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); hists 157 tools/perf/tests/hists_output.c hists__collapse_resort(hists, NULL); hists 162 tools/perf/tests/hists_output.c print_hists_out(hists); hists 165 tools/perf/tests/hists_output.c root = &hists->entries; hists 221 tools/perf/tests/hists_output.c del_hist_entries(hists); hists 230 tools/perf/tests/hists_output.c struct hists *hists = evsel__hists(evsel); hists 253 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); hists 257 tools/perf/tests/hists_output.c hists__collapse_resort(hists, NULL); hists 262 tools/perf/tests/hists_output.c print_hists_out(hists); hists 265 tools/perf/tests/hists_output.c root = &hists->entries; hists 277 tools/perf/tests/hists_output.c del_hist_entries(hists); hists 286 tools/perf/tests/hists_output.c struct hists *hists = evsel__hists(evsel); hists 307 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); hists 311 tools/perf/tests/hists_output.c hists__collapse_resort(hists, NULL); hists 316 tools/perf/tests/hists_output.c print_hists_out(hists); hists 319 tools/perf/tests/hists_output.c root = &hists->entries; hists 351 tools/perf/tests/hists_output.c del_hist_entries(hists); hists 360 tools/perf/tests/hists_output.c struct hists *hists = evsel__hists(evsel); hists 385 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); hists 389 tools/perf/tests/hists_output.c hists__collapse_resort(hists, NULL); hists 394 tools/perf/tests/hists_output.c print_hists_out(hists); hists 397 tools/perf/tests/hists_output.c root = &hists->entries; hists 453 tools/perf/tests/hists_output.c del_hist_entries(hists); hists 462 tools/perf/tests/hists_output.c struct hists *hists = evsel__hists(evsel); hists 488 tools/perf/tests/hists_output.c err = add_hist_entries(hists, machine); hists 492 tools/perf/tests/hists_output.c hists__collapse_resort(hists, NULL); hists 497 tools/perf/tests/hists_output.c print_hists_out(hists); hists 500 tools/perf/tests/hists_output.c root = &hists->entries; hists 573 tools/perf/tests/hists_output.c del_hist_entries(hists); hists 664 tools/perf/ui/browsers/annotate.c struct hists *hists = evsel__hists(evsel); hists 673 tools/perf/ui/browsers/annotate.c hists__scnprintf_title(hists, title, sizeof(title)); hists 707 tools/perf/ui/browsers/annotate.c hists__scnprintf_title(hists, title, sizeof(title)); hists 853 tools/perf/ui/browsers/annotate.c hists__scnprintf_title(hists, title, sizeof(title)); hists 55 tools/perf/ui/browsers/hists.c return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; hists 61 tools/perf/ui/browsers/hists.c struct hists *hists = browser->hists; hists 64 tools/perf/ui/browsers/hists.c for (nd = rb_first_cached(&hists->entries); hists 79 tools/perf/ui/browsers/hists.c struct hists *hists = hb->hists; hists 80 tools/perf/ui/browsers/hists.c struct perf_hpp_list *hpp_list = hists->hpp_list; hists 94 tools/perf/ui/browsers/hists.c nr_entries = hb->hists->nr_entries; hists 103 tools/perf/ui/browsers/hists.c struct hists *hists = hb->hists; hists 104 tools/perf/ui/browsers/hists.c struct perf_hpp_list *hpp_list = hists->hpp_list; hists 129 tools/perf/ui/browsers/hists.c browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]")); hists 581 tools/perf/ui/browsers/hists.c nd = rb_first_cached(&browser->hists->entries); hists 634 tools/perf/ui/browsers/hists.c browser->b.entries = &browser->hists->entries; hists 662 tools/perf/ui/browsers/hists.c (browser->hists->stats.nr_lost_warned != hists 663 tools/perf/ui/browsers/hists.c browser->hists->stats.nr_events[PERF_RECORD_LOST])) { hists 664 tools/perf/ui/browsers/hists.c browser->hists->stats.nr_lost_warned = hists 665 tools/perf/ui/browsers/hists.c browser->hists->stats.nr_events[PERF_RECORD_LOST]; hists 680 tools/perf/ui/browsers/hists.c browser->hists->nr_entries, hists 1119 tools/perf/ui/browsers/hists.c u64 total = hists__total_period(entry->hists); hists 1277 tools/perf/ui/browsers/hists.c hists__for_each_format(browser->hists, fmt) { hists 1285 tools/perf/ui/browsers/hists.c if (perf_hpp__should_skip(fmt, entry->hists) || hists 1368 tools/perf/ui/browsers/hists.c int hierarchy_indent = (entry->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; hists 1395 tools/perf/ui/browsers/hists.c fmt_node = list_first_entry(&entry->hists->hpp_formats, hists 1405 tools/perf/ui/browsers/hists.c if (perf_hpp__should_skip(fmt, entry->hists) || hists 1526 tools/perf/ui/browsers/hists.c int indent = browser->hists->nr_hpp_node - 2; hists 1544 tools/perf/ui/browsers/hists.c fmt_node = list_first_entry(&browser->hists->hpp_formats, hists 1547 tools/perf/ui/browsers/hists.c if (perf_hpp__should_skip(fmt, browser->hists) || hists 1551 tools/perf/ui/browsers/hists.c ret = fmt->width(fmt, NULL, browser->hists); hists 1595 tools/perf/ui/browsers/hists.c struct hists *hists = browser->hists; hists 1605 tools/perf/ui/browsers/hists.c if (hists__has_callchains(hists) && symbol_conf.use_callchain) { hists 1611 tools/perf/ui/browsers/hists.c hists__for_each_format(browser->hists, fmt) { hists 1612 tools/perf/ui/browsers/hists.c if (perf_hpp__should_skip(fmt, hists) || column++ < browser->b.horiz_scroll) hists 1615 tools/perf/ui/browsers/hists.c ret = fmt->header(fmt, &dummy_hpp, hists, line, &span); hists 1632 tools/perf/ui/browsers/hists.c struct hists *hists = browser->hists; hists 1641 tools/perf/ui/browsers/hists.c int indent = hists->nr_hpp_node - 2; hists 1650 tools/perf/ui/browsers/hists.c fmt_node = list_first_entry(&hists->hpp_formats, hists 1656 tools/perf/ui/browsers/hists.c ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); hists 1675 tools/perf/ui/browsers/hists.c list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) { hists 1687 tools/perf/ui/browsers/hists.c if (perf_hpp__should_skip(fmt, hists)) hists 1697 tools/perf/ui/browsers/hists.c ret = fmt->header(fmt, &dummy_hpp, hists, 0, NULL); hists 1728 tools/perf/ui/browsers/hists.c struct hists *hists = browser->hists; hists 1729 tools/perf/ui/browsers/hists.c struct perf_hpp_list *hpp_list = hists->hpp_list; hists 1759 tools/perf/ui/browsers/hists.c browser->top = rb_first_cached(&hb->hists->entries); hists 2014 tools/perf/ui/browsers/hists.c hists__for_each_format(browser->hists, fmt) { hists 2015 tools/perf/ui/browsers/hists.c if (perf_hpp__should_skip(fmt, he->hists)) hists 2052 tools/perf/ui/browsers/hists.c int hierarchy_indent = (he->hists->nr_hpp_node - 2) * HIERARCHY_INDENT; hists 2060 tools/perf/ui/browsers/hists.c fmt_node = list_first_entry(&he->hists->hpp_formats, hists 2154 tools/perf/ui/browsers/hists.c struct hists *hists) hists 2158 tools/perf/ui/browsers/hists.c browser->hists = hists; hists 2170 tools/perf/ui/browsers/hists.c fmt_node = list_first_entry(&hists->hpp_formats, hists 2178 tools/perf/ui/browsers/hists.c hists__for_each_format(hists, fmt) hists 2182 tools/perf/ui/browsers/hists.c hists__reset_column_width(hists); hists 2185 tools/perf/ui/browsers/hists.c struct hist_browser *hist_browser__new(struct hists *hists) hists 2190 tools/perf/ui/browsers/hists.c hist_browser__init(browser, hists); hists 2236 tools/perf/ui/browsers/hists.c int printed = __hists__scnprintf_title(browser->hists, bf, size, !is_report_browser(hbt)); hists 2383 tools/perf/ui/browsers/hists.c evsel = hists_to_evsel(browser->hists); hists 2394 tools/perf/ui/browsers/hists.c ui_browser__update_nr_entries(&browser->b, browser->hists->nr_entries); hists 2422 tools/perf/ui/browsers/hists.c if ((!hists__has(browser->hists, thread) && hists 2423 tools/perf/ui/browsers/hists.c !hists__has(browser->hists, comm)) || thread == NULL) hists 2426 tools/perf/ui/browsers/hists.c if (browser->hists->thread_filter) { hists 2427 tools/perf/ui/browsers/hists.c pstack__remove(browser->pstack, &browser->hists->thread_filter); hists 2429 tools/perf/ui/browsers/hists.c thread__zput(browser->hists->thread_filter); hists 2432 tools/perf/ui/browsers/hists.c if (hists__has(browser->hists, thread)) { hists 2441 tools/perf/ui/browsers/hists.c browser->hists->thread_filter = thread__get(thread); hists 2443 tools/perf/ui/browsers/hists.c pstack__push(browser->pstack, &browser->hists->thread_filter); hists 2446 tools/perf/ui/browsers/hists.c hists__filter_by_thread(browser->hists); hists 2457 tools/perf/ui/browsers/hists.c if ((!hists__has(browser->hists, thread) && hists 2458 tools/perf/ui/browsers/hists.c !hists__has(browser->hists, comm)) || thread == NULL) hists 2461 tools/perf/ui/browsers/hists.c if (hists__has(browser->hists, thread)) { hists 2463 tools/perf/ui/browsers/hists.c browser->hists->thread_filter ? "out of" : "into", hists 2468 tools/perf/ui/browsers/hists.c browser->hists->thread_filter ? "out of" : "into", hists 2484 tools/perf/ui/browsers/hists.c if (!hists__has(browser->hists, dso) || map == NULL) hists 2487 tools/perf/ui/browsers/hists.c if (browser->hists->dso_filter) { hists 2488 tools/perf/ui/browsers/hists.c pstack__remove(browser->pstack, &browser->hists->dso_filter); hists 2490 tools/perf/ui/browsers/hists.c browser->hists->dso_filter = NULL; hists 2495 tools/perf/ui/browsers/hists.c browser->hists->dso_filter = map->dso; hists 2497 tools/perf/ui/browsers/hists.c pstack__push(browser->pstack, &browser->hists->dso_filter); hists 2500 tools/perf/ui/browsers/hists.c hists__filter_by_dso(browser->hists); hists 2509 tools/perf/ui/browsers/hists.c if (!hists__has(browser->hists, dso) || map == NULL) hists 2513 tools/perf/ui/browsers/hists.c browser->hists->dso_filter ? "out of" : "into", hists 2534 tools/perf/ui/browsers/hists.c if (!hists__has(browser->hists, dso) || map == NULL) hists 2727 tools/perf/ui/browsers/hists.c if (!hists__has(browser->hists, socket) || act->socket < 0) hists 2730 tools/perf/ui/browsers/hists.c if (browser->hists->socket_filter > -1) { hists 2731 tools/perf/ui/browsers/hists.c pstack__remove(browser->pstack, &browser->hists->socket_filter); hists 2732 tools/perf/ui/browsers/hists.c browser->hists->socket_filter = -1; hists 2735 tools/perf/ui/browsers/hists.c browser->hists->socket_filter = act->socket; hists 2737 tools/perf/ui/browsers/hists.c pstack__push(browser->pstack, &browser->hists->socket_filter); hists 2740 tools/perf/ui/browsers/hists.c hists__filter_by_socket(browser->hists); hists 2749 tools/perf/ui/browsers/hists.c if (!hists__has(browser->hists, socket) || socket_id < 0) hists 2753 tools/perf/ui/browsers/hists.c (browser->hists->socket_filter > -1) ? "out of" : "into", hists 2765 tools/perf/ui/browsers/hists.c struct rb_node *nd = rb_first_cached(&hb->hists->entries); hists 2768 tools/perf/ui/browsers/hists.c hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries; hists 2785 tools/perf/ui/browsers/hists.c struct rb_node *nd = rb_first_cached(&hb->hists->entries); hists 2786 tools/perf/ui/browsers/hists.c u64 total = hists__total_period(hb->hists); hists 2832 tools/perf/ui/browsers/hists.c struct hists *hists = evsel__hists(evsel); hists 2933 tools/perf/ui/browsers/hists.c if (!hists__has(hists, sym)) { hists 2976 tools/perf/ui/browsers/hists.c hists->symbol_filter_str = *buf ? buf : NULL; hists 2977 tools/perf/ui/browsers/hists.c hists__filter_by_symbol(hists); hists 3059 tools/perf/ui/browsers/hists.c if (top == &browser->hists->dso_filter) { hists 3066 tools/perf/ui/browsers/hists.c } else if (top == &browser->hists->thread_filter) { hists 3068 tools/perf/ui/browsers/hists.c } else if (top == &browser->hists->socket_filter) { hists 3100 tools/perf/ui/browsers/hists.c if (!hists__has(hists, sym) || browser->selection == NULL) hists 3146 tools/perf/ui/browsers/hists.c if (hists__has(hists, thread) && thread) { hists 3161 tools/perf/ui/browsers/hists.c if (hists__has(hists, sym) && browser->selection->sym) { hists 3226 tools/perf/ui/browsers/hists.c struct hists *hists = evsel__hists(evsel); hists 3228 tools/perf/ui/browsers/hists.c unsigned long nr_events = hists->stats.nr_events[PERF_RECORD_SAMPLE]; hists 3243 tools/perf/ui/browsers/hists.c struct hists *pos_hists = evsel__hists(pos); hists 3253 tools/perf/ui/browsers/hists.c nr_events = hists->stats.nr_events[PERF_RECORD_LOST]; hists 11 tools/perf/ui/browsers/hists.h struct hists *hists; hists 32 tools/perf/ui/browsers/hists.h struct hist_browser *hist_browser__new(struct hists *hists); hists 37 tools/perf/ui/browsers/hists.h struct hists *hists); hists 293 tools/perf/ui/gtk/hists.c static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, hists 314 tools/perf/ui/gtk/hists.c hists__for_each_format(hists, fmt) hists 325 tools/perf/ui/gtk/hists.c hists__for_each_format(hists, fmt) { hists 326 tools/perf/ui/gtk/hists.c if (perf_hpp__should_skip(fmt, hists)) hists 358 tools/perf/ui/gtk/hists.c for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) { hists 361 tools/perf/ui/gtk/hists.c u64 total = hists__total_period(h->hists); hists 375 tools/perf/ui/gtk/hists.c hists__for_each_format(hists, fmt) { hists 376 tools/perf/ui/gtk/hists.c if (perf_hpp__should_skip(fmt, h->hists)) hists 388 tools/perf/ui/gtk/hists.c symbol_conf.use_callchain && hists__has(hists, sym)) { hists 405 tools/perf/ui/gtk/hists.c static void perf_gtk__add_hierarchy_entries(struct hists *hists, hists 417 tools/perf/ui/gtk/hists.c u64 total = hists__total_period(hists); hists 438 tools/perf/ui/gtk/hists.c fmt_node = list_first_entry(&hists->hpp_formats, hists 469 tools/perf/ui/gtk/hists.c perf_gtk__add_hierarchy_entries(hists, &he->hroot_out, hists 497 tools/perf/ui/gtk/hists.c static void perf_gtk__show_hierarchy(GtkWidget *window, struct hists *hists, hists 516 tools/perf/ui/gtk/hists.c hists__for_each_format(hists, fmt) { hists 532 tools/perf/ui/gtk/hists.c fmt_node = list_first_entry(&hists->hpp_formats, hists 544 tools/perf/ui/gtk/hists.c list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) { hists 551 tools/perf/ui/gtk/hists.c if (perf_hpp__should_skip(fmt, hists)) hists 558 tools/perf/ui/gtk/hists.c fmt->header(fmt, &hpp, hists, 0, NULL); hists 583 tools/perf/ui/gtk/hists.c perf_gtk__add_hierarchy_entries(hists, &hists->entries, store, hists 637 tools/perf/ui/gtk/hists.c struct hists *hists = evsel__hists(pos); hists 661 tools/perf/ui/gtk/hists.c perf_gtk__show_hierarchy(scrolled_window, hists, min_pcnt); hists 663 tools/perf/ui/gtk/hists.c perf_gtk__show_hists(scrolled_window, hists, min_pcnt); hists 30 tools/perf/ui/hist.c struct hists *hists = he->hists; hists 31 tools/perf/ui/hist.c struct evsel *evsel = hists_to_evsel(hists); hists 37 tools/perf/ui/hist.c u64 total = hists__total_period(hists); hists 55 tools/perf/ui/hist.c u64 total = hists__total_period(pair->hists); hists 60 tools/perf/ui/hist.c evsel = hists_to_evsel(pair->hists); hists 167 tools/perf/ui/hist.c evsel = hists_to_evsel(a->hists); hists 179 tools/perf/ui/hist.c evsel = hists_to_evsel(pair->hists); hists 184 tools/perf/ui/hist.c evsel = hists_to_evsel(pair->hists); hists 226 tools/perf/ui/hist.c struct hists *hists) hists 229 tools/perf/ui/hist.c struct evsel *evsel = hists_to_evsel(hists); hists 241 tools/perf/ui/hist.c struct hists *hists, int line __maybe_unused, hists 244 tools/perf/ui/hist.c int len = hpp__width_fn(fmt, hpp, hists); hists 647 tools/perf/ui/hist.c unsigned int hists__sort_list_width(struct hists *hists) hists 654 tools/perf/ui/hist.c hists__for_each_format(hists, fmt) { hists 655 tools/perf/ui/hist.c if (perf_hpp__should_skip(fmt, hists)) hists 663 tools/perf/ui/hist.c ret += fmt->width(fmt, &dummy_hpp, hists); hists 666 tools/perf/ui/hist.c if (verbose > 0 && hists__has(hists, sym)) /* Addr + origin */ hists 672 tools/perf/ui/hist.c unsigned int hists__overhead_width(struct hists *hists) hists 679 tools/perf/ui/hist.c hists__for_each_format(hists, fmt) { hists 688 tools/perf/ui/hist.c ret += fmt->width(fmt, &dummy_hpp, hists); hists 694 tools/perf/ui/hist.c void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists) hists 697 tools/perf/ui/hist.c return perf_hpp__reset_sort_width(fmt, hists); hists 727 tools/perf/ui/hist.c void hists__reset_column_width(struct hists *hists) hists 732 tools/perf/ui/hist.c hists__for_each_format(hists, fmt) hists 733 tools/perf/ui/hist.c perf_hpp__reset_width(fmt, hists); hists 736 tools/perf/ui/hist.c list_for_each_entry(node, &hists->hpp_formats, list) { hists 738 tools/perf/ui/hist.c perf_hpp__reset_width(fmt, hists); hists 760 tools/perf/ui/hist.c static int add_hierarchy_fmt(struct hists *hists, struct perf_hpp_fmt *fmt) hists 765 tools/perf/ui/hist.c bool skip = perf_hpp__should_skip(fmt, hists); hists 767 tools/perf/ui/hist.c list_for_each_entry(node, &hists->hpp_formats, list) { hists 783 tools/perf/ui/hist.c hists->nr_hpp_node++; hists 784 tools/perf/ui/hist.c list_add_tail(&node->list, &hists->hpp_formats); hists 805 tools/perf/ui/hist.c struct hists *hists; hists 812 tools/perf/ui/hist.c hists = evsel__hists(evsel); hists 816 tools/perf/ui/hist.c !perf_hpp__defined_dynamic_entry(fmt, hists)) hists 819 tools/perf/ui/hist.c ret = add_hierarchy_fmt(hists, fmt); hists 426 tools/perf/ui/stdio/hist.c if (perf_hpp__should_skip(fmt, he->hists)) hists 453 tools/perf/ui/stdio/hist.c return __hist_entry__snprintf(he, hpp, he->hists->hpp_list); hists 458 tools/perf/ui/stdio/hist.c struct hists *hists, hists 476 tools/perf/ui/stdio/hist.c fmt_node = list_first_entry(&hists->hpp_formats, hists 500 tools/perf/ui/stdio/hist.c (hists->nr_hpp_node - 2) * HIERARCHY_INDENT, ""); hists 527 tools/perf/ui/stdio/hist.c u64 total = hists__total_period(hists); hists 571 tools/perf/ui/stdio/hist.c struct hists *hists = he->hists; hists 572 tools/perf/ui/stdio/hist.c u64 total_period = hists->stats.total_period; hists 578 tools/perf/ui/stdio/hist.c return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp); hists 609 tools/perf/ui/stdio/hist.c static int hists__fprintf_hierarchy_headers(struct hists *hists, hists 621 tools/perf/ui/stdio/hist.c indent = hists->nr_hpp_node; hists 627 tools/perf/ui/stdio/hist.c fmt_node = list_first_entry(&hists->hpp_formats, hists 631 tools/perf/ui/stdio/hist.c fmt->header(fmt, hpp, hists, 0, NULL); hists 637 tools/perf/ui/stdio/hist.c list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) { hists 644 tools/perf/ui/stdio/hist.c if (perf_hpp__should_skip(fmt, hists)) hists 651 tools/perf/ui/stdio/hist.c fmt->header(fmt, hpp, hists, 0, NULL); hists 663 tools/perf/ui/stdio/hist.c fmt_node = list_first_entry(&hists->hpp_formats, hists 672 tools/perf/ui/stdio/hist.c width = fmt->width(fmt, hpp, hists); hists 677 tools/perf/ui/stdio/hist.c list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) { hists 682 tools/perf/ui/stdio/hist.c if (perf_hpp__should_skip(fmt, hists)) hists 689 tools/perf/ui/stdio/hist.c width += fmt->width(fmt, hpp, hists); hists 705 tools/perf/ui/stdio/hist.c static void fprintf_line(struct hists *hists, struct perf_hpp *hpp, hists 713 tools/perf/ui/stdio/hist.c hists__for_each_format(hists, fmt) { hists 714 tools/perf/ui/stdio/hist.c if (perf_hpp__should_skip(fmt, hists)) hists 722 tools/perf/ui/stdio/hist.c fmt->header(fmt, hpp, hists, line, &span); hists 730 tools/perf/ui/stdio/hist.c hists__fprintf_standard_headers(struct hists *hists, hists 734 tools/perf/ui/stdio/hist.c struct perf_hpp_list *hpp_list = hists->hpp_list; hists 745 tools/perf/ui/stdio/hist.c fprintf_line(hists, hpp, line, fp); hists 756 tools/perf/ui/stdio/hist.c hists__for_each_format(hists, fmt) { hists 759 tools/perf/ui/stdio/hist.c if (perf_hpp__should_skip(fmt, hists)) hists 767 tools/perf/ui/stdio/hist.c width = fmt->width(fmt, hpp, hists); hists 777 tools/perf/ui/stdio/hist.c int hists__fprintf_headers(struct hists *hists, FILE *fp) hists 788 tools/perf/ui/stdio/hist.c return hists__fprintf_hierarchy_headers(hists, &dummy_hpp, fp); hists 790 tools/perf/ui/stdio/hist.c return hists__fprintf_standard_headers(hists, &dummy_hpp, fp); hists 794 tools/perf/ui/stdio/hist.c size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, hists 808 tools/perf/ui/stdio/hist.c hists__reset_column_width(hists); hists 814 tools/perf/ui/stdio/hist.c nr_rows += hists__fprintf_headers(hists, fp); hists 819 tools/perf/ui/stdio/hist.c linesz = hists__sort_list_width(hists) + 3 + 1; hists 827 tools/perf/ui/stdio/hist.c indent = hists__overhead_width(hists) + 4; hists 829 tools/perf/ui/stdio/hist.c for (nd = rb_first_cached(&hists->entries); nd; hists 851 tools/perf/ui/stdio/hist.c int depth = hists->nr_hpp_node + h->depth + 1; hists 2007 tools/perf/util/annotate.c struct hists *hists, hists 2026 tools/perf/util/annotate.c if (hists->stats.nr_non_filtered_samples) hists 2027 tools/perf/util/annotate.c data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples; hists 2032 tools/perf/util/annotate.c if (hists->stats.total_period) hists 2033 tools/perf/util/annotate.c data->percent[PERCENT_PERIOD_GLOBAL] = 100.0 * period / hists->stats.total_period; hists 2053 tools/perf/util/annotate.c struct hists *hists = evsel__hists(evsel); hists 2062 tools/perf/util/annotate.c calc_percent(sym_hist, hists, data, al->offset, end); hists 2688 tools/perf/util/annotate.c struct hists *hists = evsel__hists(evsel); hists 2700 tools/perf/util/annotate.c hists__scnprintf_title(hists, buf, sizeof(buf)); hists 31 tools/perf/util/hist.c static bool hists__filter_entry_by_dso(struct hists *hists, hists 33 tools/perf/util/hist.c static bool hists__filter_entry_by_thread(struct hists *hists, hists 35 tools/perf/util/hist.c static bool hists__filter_entry_by_symbol(struct hists *hists, hists 37 tools/perf/util/hist.c static bool hists__filter_entry_by_socket(struct hists *hists, hists 40 tools/perf/util/hist.c u16 hists__col_len(struct hists *hists, enum hist_column col) hists 42 tools/perf/util/hist.c return hists->col_len[col]; hists 45 tools/perf/util/hist.c void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len) hists 47 tools/perf/util/hist.c hists->col_len[col] = len; hists 50 tools/perf/util/hist.c bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len) hists 52 tools/perf/util/hist.c if (len > hists__col_len(hists, col)) { hists 53 tools/perf/util/hist.c hists__set_col_len(hists, col, len); hists 59 tools/perf/util/hist.c void hists__reset_col_len(struct hists *hists) hists 64 tools/perf/util/hist.c hists__set_col_len(hists, col, 0); hists 67 tools/perf/util/hist.c static void hists__set_unres_dso_col_len(struct hists *hists, int dso) hists 71 tools/perf/util/hist.c if (hists__col_len(hists, dso) < unresolved_col_width && hists 74 tools/perf/util/hist.c hists__set_col_len(hists, dso, unresolved_col_width); hists 77 tools/perf/util/hist.c void hists__calc_col_len(struct hists *hists, struct hist_entry *h) hists 92 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SYMBOL, symlen); hists 95 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SYMBOL, symlen); hists 96 tools/perf/util/hist.c hists__set_unres_dso_col_len(hists, HISTC_DSO); hists 100 tools/perf/util/hist.c if (hists__new_col_len(hists, HISTC_COMM, len)) hists 101 tools/perf/util/hist.c hists__set_col_len(hists, HISTC_THREAD, len + 8); hists 105 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_DSO, len); hists 109 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_PARENT, h->parent->namelen); hists 116 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SYMBOL_FROM, symlen); hists 119 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_DSO_FROM, symlen); hists 122 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SYMBOL_FROM, symlen); hists 123 tools/perf/util/hist.c hists__set_unres_dso_col_len(hists, HISTC_DSO_FROM); hists 130 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SYMBOL_TO, symlen); hists 133 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_DSO_TO, symlen); hists 136 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SYMBOL_TO, symlen); hists 137 tools/perf/util/hist.c hists__set_unres_dso_col_len(hists, HISTC_DSO_TO); hists 141 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SRCLINE_FROM, hists 144 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SRCLINE_TO, hists 152 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, hists 154 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_DCACHELINE, hists 158 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, hists 160 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_DCACHELINE, hists 167 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL, hists 171 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL, hists 177 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_DADDR_DSO, hists 181 tools/perf/util/hist.c hists__set_unres_dso_col_len(hists, HISTC_MEM_DADDR_DSO); hists 184 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_PHYS_DADDR, hists 189 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, symlen); hists 190 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL, symlen); hists 191 tools/perf/util/hist.c hists__set_unres_dso_col_len(hists, HISTC_MEM_DADDR_DSO); hists 194 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_CGROUP_ID, 20); hists 195 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_CPU, 3); hists 196 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SOCKET, 6); hists 197 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_LOCKED, 6); hists 198 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_TLB, 22); hists 199 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_SNOOP, 12); hists 200 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_MEM_LVL, 21 + 3); hists 201 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_LOCAL_WEIGHT, 12); hists 202 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_GLOBAL_WEIGHT, 12); hists 204 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_TIME, 16); hists 206 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_TIME, 12); hists 210 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SRCLINE, len); hists 214 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_SRCFILE, strlen(h->srcfile)); hists 217 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_TRANSACTION, hists 221 tools/perf/util/hist.c hists__new_col_len(hists, HISTC_TRACE, strlen(h->trace_output)); hists 224 tools/perf/util/hist.c void hists__output_recalc_col_len(struct hists *hists, int max_rows) hists 226 tools/perf/util/hist.c struct rb_node *next = rb_first_cached(&hists->entries); hists 230 tools/perf/util/hist.c hists__reset_col_len(hists); hists 235 tools/perf/util/hist.c hists__calc_col_len(hists, n); hists 296 tools/perf/util/hist.c static void hists__delete_entry(struct hists *hists, struct hist_entry *he); hists 298 tools/perf/util/hist.c static bool hists__decay_entry(struct hists *hists, struct hist_entry *he) hists 314 tools/perf/util/hist.c hists->stats.total_period -= diff; hists 316 tools/perf/util/hist.c hists->stats.total_non_filtered_period -= diff; hists 326 tools/perf/util/hist.c if (hists__decay_entry(hists, child)) hists 327 tools/perf/util/hist.c hists__delete_entry(hists, child); hists 334 tools/perf/util/hist.c static void hists__delete_entry(struct hists *hists, struct hist_entry *he) hists 343 tools/perf/util/hist.c if (hists__has(hists, need_collapse)) hists 344 tools/perf/util/hist.c root_in = &hists->entries_collapsed; hists 346 tools/perf/util/hist.c root_in = hists->entries_in; hists 347 tools/perf/util/hist.c root_out = &hists->entries; hists 353 tools/perf/util/hist.c --hists->nr_entries; hists 355 tools/perf/util/hist.c --hists->nr_non_filtered_entries; hists 360 tools/perf/util/hist.c void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel) hists 362 tools/perf/util/hist.c struct rb_node *next = rb_first_cached(&hists->entries); hists 370 tools/perf/util/hist.c hists__decay_entry(hists, n))) { hists 371 tools/perf/util/hist.c hists__delete_entry(hists, n); hists 376 tools/perf/util/hist.c void hists__delete_entries(struct hists *hists) hists 378 tools/perf/util/hist.c struct rb_node *next = rb_first_cached(&hists->entries); hists 385 tools/perf/util/hist.c hists__delete_entry(hists, n); hists 389 tools/perf/util/hist.c struct hist_entry *hists__get_entry(struct hists *hists, int idx) hists 391 tools/perf/util/hist.c struct rb_node *next = rb_first_cached(&hists->entries); hists 559 tools/perf/util/hist.c he->hists->callchain_period += period; hists 561 tools/perf/util/hist.c he->hists->callchain_non_filtered_period += period; hists 564 tools/perf/util/hist.c static struct hist_entry *hists__findnew_entry(struct hists *hists, hists 577 tools/perf/util/hist.c p = &hists->entries_in->rb_root.rb_node; hists 634 tools/perf/util/hist.c hists->nr_entries++; hists 637 tools/perf/util/hist.c rb_insert_color_cached(&he->rb_node_in, hists->entries_in, leftmost); hists 673 tools/perf/util/hist.c __hists__add_entry(struct hists *hists, hists 708 tools/perf/util/hist.c .hists = hists, hists 717 tools/perf/util/hist.c }, *he = hists__findnew_entry(hists, &entry, al, sample_self); hists 719 tools/perf/util/hist.c if (!hists->has_callchains && he && he->callchain_size != 0) hists 720 tools/perf/util/hist.c hists->has_callchains = true; hists 726 tools/perf/util/hist.c struct hist_entry *hists__add_entry(struct hists *hists, hists 734 tools/perf/util/hist.c return __hists__add_entry(hists, al, sym_parent, bi, mi, NULL, hists 738 tools/perf/util/hist.c struct hist_entry *hists__add_entry_ops(struct hists *hists, hists 747 tools/perf/util/hist.c return __hists__add_entry(hists, al, sym_parent, bi, mi, NULL, hists 751 tools/perf/util/hist.c struct hist_entry *hists__add_entry_block(struct hists *hists, hists 757 tools/perf/util/hist.c .hists = hists, hists 758 tools/perf/util/hist.c }, *he = hists__findnew_entry(hists, &entry, al, false); hists 796 tools/perf/util/hist.c struct hists *hists = evsel__hists(iter->evsel); hists 816 tools/perf/util/hist.c he = hists__add_entry(hists, al, iter->parent, NULL, mi, hists 830 tools/perf/util/hist.c struct hists *hists = evsel__hists(evsel); hists 837 tools/perf/util/hist.c hists__inc_nr_samples(hists, he->filtered); hists 900 tools/perf/util/hist.c struct hists *hists = evsel__hists(evsel); hists 918 tools/perf/util/hist.c he = hists__add_entry(hists, al, iter->parent, &bi[i], NULL, hists 923 tools/perf/util/hist.c hists__inc_nr_samples(hists, he->filtered); hists 1010 tools/perf/util/hist.c struct hists *hists = evsel__hists(evsel); hists 1016 tools/perf/util/hist.c he = hists__add_entry(hists, al, iter->parent, NULL, NULL, hists 1032 tools/perf/util/hist.c hists__inc_nr_samples(hists, he->filtered); hists 1059 tools/perf/util/hist.c .hists = evsel__hists(evsel), hists 1202 tools/perf/util/hist.c struct hists *hists = left->hists; hists 1206 tools/perf/util/hist.c hists__for_each_sort_list(hists, fmt) { hists 1208 tools/perf/util/hist.c !perf_hpp__defined_dynamic_entry(fmt, hists)) hists 1222 tools/perf/util/hist.c struct hists *hists = left->hists; hists 1226 tools/perf/util/hist.c hists__for_each_sort_list(hists, fmt) { hists 1228 tools/perf/util/hist.c !perf_hpp__defined_dynamic_entry(fmt, hists)) hists 1284 tools/perf/util/hist.c if (!list_is_last(&fmt->list, &he->hists->hpp_list->fields)) { hists 1285 tools/perf/util/hist.c const int width = fmt->width(fmt, hpp, he->hists); hists 1299 tools/perf/util/hist.c static void hists__apply_filters(struct hists *hists, struct hist_entry *he); hists 1300 tools/perf/util/hist.c static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *he, hists 1391 tools/perf/util/hist.c hists__apply_filters(he->hists, he); hists 1394 tools/perf/util/hist.c static struct hist_entry *hierarchy_insert_entry(struct hists *hists, hists 1435 tools/perf/util/hist.c hists->nr_entries++; hists 1466 tools/perf/util/hist.c static int hists__hierarchy_insert_entry(struct hists *hists, hists 1476 tools/perf/util/hist.c list_for_each_entry(node, &hists->hpp_formats, list) { hists 1482 tools/perf/util/hist.c new_he = hierarchy_insert_entry(hists, root, he, parent, &node->hpp); hists 1513 tools/perf/util/hist.c static int hists__collapse_insert_entry(struct hists *hists, hists 1524 tools/perf/util/hist.c return hists__hierarchy_insert_entry(hists, root, he); hists 1557 tools/perf/util/hist.c hists->nr_entries++; hists 1564 tools/perf/util/hist.c struct rb_root_cached *hists__get_rotate_entries_in(struct hists *hists) hists 1568 tools/perf/util/hist.c pthread_mutex_lock(&hists->lock); hists 1570 tools/perf/util/hist.c root = hists->entries_in; hists 1571 tools/perf/util/hist.c if (++hists->entries_in > &hists->entries_in_array[1]) hists 1572 tools/perf/util/hist.c hists->entries_in = &hists->entries_in_array[0]; hists 1574 tools/perf/util/hist.c pthread_mutex_unlock(&hists->lock); hists 1579 tools/perf/util/hist.c static void hists__apply_filters(struct hists *hists, struct hist_entry *he) hists 1581 tools/perf/util/hist.c hists__filter_entry_by_dso(hists, he); hists 1582 tools/perf/util/hist.c hists__filter_entry_by_thread(hists, he); hists 1583 tools/perf/util/hist.c hists__filter_entry_by_symbol(hists, he); hists 1584 tools/perf/util/hist.c hists__filter_entry_by_socket(hists, he); hists 1587 tools/perf/util/hist.c int hists__collapse_resort(struct hists *hists, struct ui_progress *prog) hists 1594 tools/perf/util/hist.c if (!hists__has(hists, need_collapse)) hists 1597 tools/perf/util/hist.c hists->nr_entries = 0; hists 1599 tools/perf/util/hist.c root = hists__get_rotate_entries_in(hists); hists 1610 tools/perf/util/hist.c ret = hists__collapse_insert_entry(hists, &hists->entries_collapsed, n); hists 1620 tools/perf/util/hist.c hists__apply_filters(hists, n); hists 1630 tools/perf/util/hist.c struct hists *hists = a->hists; hists 1634 tools/perf/util/hist.c hists__for_each_sort_list(hists, fmt) { hists 1635 tools/perf/util/hist.c if (perf_hpp__should_skip(fmt, a->hists)) hists 1646 tools/perf/util/hist.c static void hists__reset_filter_stats(struct hists *hists) hists 1648 tools/perf/util/hist.c hists->nr_non_filtered_entries = 0; hists 1649 tools/perf/util/hist.c hists->stats.total_non_filtered_period = 0; hists 1652 tools/perf/util/hist.c void hists__reset_stats(struct hists *hists) hists 1654 tools/perf/util/hist.c hists->nr_entries = 0; hists 1655 tools/perf/util/hist.c hists->stats.total_period = 0; hists 1657 tools/perf/util/hist.c hists__reset_filter_stats(hists); hists 1660 tools/perf/util/hist.c static void hists__inc_filter_stats(struct hists *hists, struct hist_entry *h) hists 1662 tools/perf/util/hist.c hists->nr_non_filtered_entries++; hists 1663 tools/perf/util/hist.c hists->stats.total_non_filtered_period += h->stat.period; hists 1666 tools/perf/util/hist.c void hists__inc_stats(struct hists *hists, struct hist_entry *h) hists 1669 tools/perf/util/hist.c hists__inc_filter_stats(hists, h); hists 1671 tools/perf/util/hist.c hists->nr_entries++; hists 1672 tools/perf/util/hist.c hists->stats.total_period += h->stat.period; hists 1675 tools/perf/util/hist.c static void hierarchy_recalc_total_periods(struct hists *hists) hists 1680 tools/perf/util/hist.c node = rb_first_cached(&hists->entries); hists 1682 tools/perf/util/hist.c hists->stats.total_period = 0; hists 1683 tools/perf/util/hist.c hists->stats.total_non_filtered_period = 0; hists 1694 tools/perf/util/hist.c hists->stats.total_period += he->stat.period; hists 1696 tools/perf/util/hist.c hists->stats.total_non_filtered_period += he->stat.period; hists 1731 tools/perf/util/hist.c static void hists__hierarchy_output_resort(struct hists *hists, hists 1753 tools/perf/util/hist.c hists->nr_entries++; hists 1755 tools/perf/util/hist.c hists->nr_non_filtered_entries++; hists 1756 tools/perf/util/hist.c hists__calc_col_len(hists, he); hists 1760 tools/perf/util/hist.c hists__hierarchy_output_resort(hists, prog, hists 1826 tools/perf/util/hist.c perf_hpp__defined_dynamic_entry(fmt, he->hists)) hists 1831 tools/perf/util/hist.c static void output_resort(struct hists *hists, struct ui_progress *prog, hists 1841 tools/perf/util/hist.c callchain_total = hists->callchain_period; hists 1843 tools/perf/util/hist.c callchain_total = hists->callchain_non_filtered_period; hists 1847 tools/perf/util/hist.c hists__reset_stats(hists); hists 1848 tools/perf/util/hist.c hists__reset_col_len(hists); hists 1851 tools/perf/util/hist.c hists__hierarchy_output_resort(hists, prog, hists 1852 tools/perf/util/hist.c &hists->entries_collapsed, hists 1853 tools/perf/util/hist.c &hists->entries, hists 1856 tools/perf/util/hist.c hierarchy_recalc_total_periods(hists); hists 1860 tools/perf/util/hist.c if (hists__has(hists, need_collapse)) hists 1861 tools/perf/util/hist.c root = &hists->entries_collapsed; hists 1863 tools/perf/util/hist.c root = hists->entries_in; hists 1866 tools/perf/util/hist.c hists->entries = RB_ROOT_CACHED; hists 1875 tools/perf/util/hist.c __hists__insert_output_entry(&hists->entries, n, min_callchain_hits, use_callchain); hists 1876 tools/perf/util/hist.c hists__inc_stats(hists, n); hists 1879 tools/perf/util/hist.c hists__calc_col_len(hists, n); hists 1906 tools/perf/util/hist.c void hists__output_resort(struct hists *hists, struct ui_progress *prog) hists 1908 tools/perf/util/hist.c output_resort(hists, prog, symbol_conf.use_callchain, NULL, NULL); hists 1911 tools/perf/util/hist.c void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog, hists 1914 tools/perf/util/hist.c output_resort(hists, prog, symbol_conf.use_callchain, cb, NULL); hists 1998 tools/perf/util/hist.c static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h, hists 2033 tools/perf/util/hist.c hists->stats.nr_non_filtered_samples += h->stat.nr_events; hists 2035 tools/perf/util/hist.c hists__inc_filter_stats(hists, h); hists 2036 tools/perf/util/hist.c hists__calc_col_len(hists, h); hists 2040 tools/perf/util/hist.c static bool hists__filter_entry_by_dso(struct hists *hists, hists 2043 tools/perf/util/hist.c if (hists->dso_filter != NULL && hists 2044 tools/perf/util/hist.c (he->ms.map == NULL || he->ms.map->dso != hists->dso_filter)) { hists 2052 tools/perf/util/hist.c static bool hists__filter_entry_by_thread(struct hists *hists, hists 2055 tools/perf/util/hist.c if (hists->thread_filter != NULL && hists 2056 tools/perf/util/hist.c he->thread != hists->thread_filter) { hists 2064 tools/perf/util/hist.c static bool hists__filter_entry_by_symbol(struct hists *hists, hists 2067 tools/perf/util/hist.c if (hists->symbol_filter_str != NULL && hists 2069 tools/perf/util/hist.c hists->symbol_filter_str) == NULL)) { hists 2077 tools/perf/util/hist.c static bool hists__filter_entry_by_socket(struct hists *hists, hists 2080 tools/perf/util/hist.c if ((hists->socket_filter > -1) && hists 2081 tools/perf/util/hist.c (he->socket != hists->socket_filter)) { hists 2089 tools/perf/util/hist.c typedef bool (*filter_fn_t)(struct hists *hists, struct hist_entry *he); hists 2091 tools/perf/util/hist.c static void hists__filter_by_type(struct hists *hists, int type, filter_fn_t filter) hists 2095 tools/perf/util/hist.c hists->stats.nr_non_filtered_samples = 0; hists 2097 tools/perf/util/hist.c hists__reset_filter_stats(hists); hists 2098 tools/perf/util/hist.c hists__reset_col_len(hists); hists 2100 tools/perf/util/hist.c for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) { hists 2103 tools/perf/util/hist.c if (filter(hists, h)) hists 2106 tools/perf/util/hist.c hists__remove_entry_filter(hists, h, type); hists 2151 tools/perf/util/hist.c static void hists__filter_hierarchy(struct hists *hists, int type, const void *arg) hists 2156 tools/perf/util/hist.c hists->stats.nr_non_filtered_samples = 0; hists 2158 tools/perf/util/hist.c hists__reset_filter_stats(hists); hists 2159 tools/perf/util/hist.c hists__reset_col_len(hists); hists 2161 tools/perf/util/hist.c nd = rb_first_cached(&hists->entries); hists 2193 tools/perf/util/hist.c hists__remove_entry_filter(hists, h, type); hists 2199 tools/perf/util/hist.c hierarchy_recalc_total_periods(hists); hists 2205 tools/perf/util/hist.c nd = rb_first_cached(&hists->entries); hists 2210 tools/perf/util/hist.c rb_erase_cached(&h->rb_node, &hists->entries); hists 2215 tools/perf/util/hist.c hists->entries = new_root; hists 2218 tools/perf/util/hist.c void hists__filter_by_thread(struct hists *hists) hists 2221 tools/perf/util/hist.c hists__filter_hierarchy(hists, HIST_FILTER__THREAD, hists 2222 tools/perf/util/hist.c hists->thread_filter); hists 2224 tools/perf/util/hist.c hists__filter_by_type(hists, HIST_FILTER__THREAD, hists 2228 tools/perf/util/hist.c void hists__filter_by_dso(struct hists *hists) hists 2231 tools/perf/util/hist.c hists__filter_hierarchy(hists, HIST_FILTER__DSO, hists 2232 tools/perf/util/hist.c hists->dso_filter); hists 2234 tools/perf/util/hist.c hists__filter_by_type(hists, HIST_FILTER__DSO, hists 2238 tools/perf/util/hist.c void hists__filter_by_symbol(struct hists *hists) hists 2241 tools/perf/util/hist.c hists__filter_hierarchy(hists, HIST_FILTER__SYMBOL, hists 2242 tools/perf/util/hist.c hists->symbol_filter_str); hists 2244 tools/perf/util/hist.c hists__filter_by_type(hists, HIST_FILTER__SYMBOL, hists 2248 tools/perf/util/hist.c void hists__filter_by_socket(struct hists *hists) hists 2251 tools/perf/util/hist.c hists__filter_hierarchy(hists, HIST_FILTER__SOCKET, hists 2252 tools/perf/util/hist.c &hists->socket_filter); hists 2254 tools/perf/util/hist.c hists__filter_by_type(hists, HIST_FILTER__SOCKET, hists 2264 tools/perf/util/hist.c void hists__inc_nr_events(struct hists *hists, u32 type) hists 2266 tools/perf/util/hist.c events_stats__inc(&hists->stats, type); hists 2269 tools/perf/util/hist.c void hists__inc_nr_samples(struct hists *hists, bool filtered) hists 2271 tools/perf/util/hist.c events_stats__inc(&hists->stats, PERF_RECORD_SAMPLE); hists 2273 tools/perf/util/hist.c hists->stats.nr_non_filtered_samples++; hists 2276 tools/perf/util/hist.c static struct hist_entry *hists__add_dummy_entry(struct hists *hists, hists 2286 tools/perf/util/hist.c if (hists__has(hists, need_collapse)) hists 2287 tools/perf/util/hist.c root = &hists->entries_collapsed; hists 2289 tools/perf/util/hist.c root = hists->entries_in; hists 2313 tools/perf/util/hist.c he->hists = hists; hists 2318 tools/perf/util/hist.c hists__inc_stats(hists, he); hists 2325 tools/perf/util/hist.c static struct hist_entry *add_dummy_hierarchy_entry(struct hists *hists, hists 2364 tools/perf/util/hist.c he->hists = hists; hists 2366 tools/perf/util/hist.c hists__inc_stats(hists, he); hists 2372 tools/perf/util/hist.c static struct hist_entry *hists__find_entry(struct hists *hists, hists 2377 tools/perf/util/hist.c if (hists__has(hists, need_collapse)) hists 2378 tools/perf/util/hist.c n = hists->entries_collapsed.rb_root.rb_node; hists 2380 tools/perf/util/hist.c n = hists->entries_in->rb_root.rb_node; hists 2445 tools/perf/util/hist.c void hists__match(struct hists *leader, struct hists *other) hists 2471 tools/perf/util/hist.c static int hists__link_hierarchy(struct hists *leader_hists, hists 2486 tools/perf/util/hist.c if (leader->hists == leader_hists) { hists 2520 tools/perf/util/hist.c int hists__link(struct hists *leader, struct hists *other) hists 2552 tools/perf/util/hist.c int hists__unlink(struct hists *hists) hists 2558 tools/perf/util/hist.c if (hists__has(hists, need_collapse)) hists 2559 tools/perf/util/hist.c root = &hists->entries_collapsed; hists 2561 tools/perf/util/hist.c root = hists->entries_in; hists 2619 tools/perf/util/hist.c u64 hists__total_period(struct hists *hists) hists 2621 tools/perf/util/hist.c return symbol_conf.filter_relative ? hists->stats.total_non_filtered_period : hists 2622 tools/perf/util/hist.c hists->stats.total_period; hists 2625 tools/perf/util/hist.c int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq) hists 2629 tools/perf/util/hist.c const struct dso *dso = hists->dso_filter; hists 2630 tools/perf/util/hist.c struct thread *thread = hists->thread_filter; hists 2631 tools/perf/util/hist.c int socket_id = hists->socket_filter; hists 2632 tools/perf/util/hist.c unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; hists 2633 tools/perf/util/hist.c u64 nr_events = hists->stats.total_period; hists 2634 tools/perf/util/hist.c struct evsel *evsel = hists_to_evsel(hists); hists 2642 tools/perf/util/hist.c nr_samples = hists->stats.nr_non_filtered_samples; hists 2643 tools/perf/util/hist.c nr_events = hists->stats.total_non_filtered_period; hists 2653 tools/perf/util/hist.c struct hists *pos_hists = evsel__hists(pos); hists 2679 tools/perf/util/hist.c if (hists->uid_filter_str) hists 2681 tools/perf/util/hist.c ", UID: %s", hists->uid_filter_str); hists 2683 tools/perf/util/hist.c if (hists__has(hists, thread)) { hists 2727 tools/perf/util/hist.c int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list) hists 2729 tools/perf/util/hist.c memset(hists, 0, sizeof(*hists)); hists 2730 tools/perf/util/hist.c hists->entries_in_array[0] = hists->entries_in_array[1] = RB_ROOT_CACHED; hists 2731 tools/perf/util/hist.c hists->entries_in = &hists->entries_in_array[0]; hists 2732 tools/perf/util/hist.c hists->entries_collapsed = RB_ROOT_CACHED; hists 2733 tools/perf/util/hist.c hists->entries = RB_ROOT_CACHED; hists 2734 tools/perf/util/hist.c pthread_mutex_init(&hists->lock, NULL); hists 2735 tools/perf/util/hist.c hists->socket_filter = -1; hists 2736 tools/perf/util/hist.c hists->hpp_list = hpp_list; hists 2737 tools/perf/util/hist.c INIT_LIST_HEAD(&hists->hpp_formats); hists 2755 tools/perf/util/hist.c static void hists__delete_all_entries(struct hists *hists) hists 2757 tools/perf/util/hist.c hists__delete_entries(hists); hists 2758 tools/perf/util/hist.c hists__delete_remaining_entries(&hists->entries_in_array[0]); hists 2759 tools/perf/util/hist.c hists__delete_remaining_entries(&hists->entries_in_array[1]); hists 2760 tools/perf/util/hist.c hists__delete_remaining_entries(&hists->entries_collapsed); hists 2765 tools/perf/util/hist.c struct hists *hists = evsel__hists(evsel); hists 2769 tools/perf/util/hist.c hists__delete_all_entries(hists); hists 2771 tools/perf/util/hist.c list_for_each_entry_safe(node, tmp, &hists->hpp_formats, list) { hists 2783 tools/perf/util/hist.c struct hists *hists = evsel__hists(evsel); hists 2785 tools/perf/util/hist.c __hists__init(hists, &perf_hpp_list); hists 137 tools/perf/util/hist.h struct hist_entry *hists__add_entry(struct hists *hists, hists 145 tools/perf/util/hist.h struct hist_entry *hists__add_entry_ops(struct hists *hists, hists 154 tools/perf/util/hist.h struct hist_entry *hists__add_entry_block(struct hists *hists, hists 168 tools/perf/util/hist.h struct hists *hists); hists 178 tools/perf/util/hist.h void hists__output_resort(struct hists *hists, struct ui_progress *prog); hists 179 tools/perf/util/hist.h void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog, hists 181 tools/perf/util/hist.h int hists__collapse_resort(struct hists *hists, struct ui_progress *prog); hists 183 tools/perf/util/hist.h void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel); hists 184 tools/perf/util/hist.h void hists__delete_entries(struct hists *hists); hists 185 tools/perf/util/hist.h void hists__output_recalc_col_len(struct hists *hists, int max_rows); hists 187 tools/perf/util/hist.h struct hist_entry *hists__get_entry(struct hists *hists, int idx); hists 189 tools/perf/util/hist.h u64 hists__total_period(struct hists *hists); hists 190 tools/perf/util/hist.h void hists__reset_stats(struct hists *hists); hists 191 tools/perf/util/hist.h void hists__inc_stats(struct hists *hists, struct hist_entry *h); hists 192 tools/perf/util/hist.h void hists__inc_nr_events(struct hists *hists, u32 type); hists 193 tools/perf/util/hist.h void hists__inc_nr_samples(struct hists *hists, bool filtered); hists 195 tools/perf/util/hist.h size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows, hists 200 tools/perf/util/hist.h void hists__filter_by_dso(struct hists *hists); hists 201 tools/perf/util/hist.h void hists__filter_by_thread(struct hists *hists); hists 202 tools/perf/util/hist.h void hists__filter_by_symbol(struct hists *hists); hists 203 tools/perf/util/hist.h void hists__filter_by_socket(struct hists *hists); hists 205 tools/perf/util/hist.h static inline bool hists__has_filter(struct hists *hists) hists 207 tools/perf/util/hist.h return hists->thread_filter || hists->dso_filter || hists 208 tools/perf/util/hist.h hists->symbol_filter_str || (hists->socket_filter > -1); hists 211 tools/perf/util/hist.h u16 hists__col_len(struct hists *hists, enum hist_column col); hists 212 tools/perf/util/hist.h void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len); hists 213 tools/perf/util/hist.h bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len); hists 214 tools/perf/util/hist.h void hists__reset_col_len(struct hists *hists); hists 215 tools/perf/util/hist.h void hists__calc_col_len(struct hists *hists, struct hist_entry *he); hists 217 tools/perf/util/hist.h void hists__match(struct hists *leader, struct hists *other); hists 218 tools/perf/util/hist.h int hists__link(struct hists *leader, struct hists *other); hists 219 tools/perf/util/hist.h int hists__unlink(struct hists *hists); hists 223 tools/perf/util/hist.h struct hists hists; hists 226 tools/perf/util/hist.h static inline struct evsel *hists_to_evsel(struct hists *hists) hists 228 tools/perf/util/hist.h struct hists_evsel *hevsel = container_of(hists, struct hists_evsel, hists); hists 232 tools/perf/util/hist.h static inline struct hists *evsel__hists(struct evsel *evsel) hists 235 tools/perf/util/hist.h return &hevsel->hists; hists 238 tools/perf/util/hist.h static __pure inline bool hists__has_callchains(struct hists *hists) hists 240 tools/perf/util/hist.h return hists->has_callchains; hists 244 tools/perf/util/hist.h int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list); hists 246 tools/perf/util/hist.h struct rb_root_cached *hists__get_rotate_entries_in(struct hists *hists); hists 259 tools/perf/util/hist.h struct hists *hists, int line, int *span); hists 261 tools/perf/util/hist.h struct hists *hists); hists 341 tools/perf/util/hist.h #define hists__for_each_format(hists, format) \ hists 342 tools/perf/util/hist.h perf_hpp_list__for_each_format((hists)->hpp_list, format) hists 344 tools/perf/util/hist.h #define hists__for_each_sort_list(hists, format) \ hists 345 tools/perf/util/hist.h perf_hpp_list__for_each_sort_list((hists)->hpp_list, format) hists 375 tools/perf/util/hist.h bool perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists); hists 389 tools/perf/util/hist.h struct hists *hists) hists 395 tools/perf/util/hist.h !perf_hpp__defined_dynamic_entry(format, hists)) hists 401 tools/perf/util/hist.h void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists); hists 402 tools/perf/util/hist.h void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists); hists 404 tools/perf/util/hist.h void hists__reset_column_width(struct hists *hists); hists 526 tools/perf/util/hist.h unsigned int hists__sort_list_width(struct hists *hists); hists 527 tools/perf/util/hist.h unsigned int hists__overhead_width(struct hists *hists); hists 561 tools/perf/util/hist.h int hists__fprintf_headers(struct hists *hists, FILE *fp); hists 562 tools/perf/util/hist.h int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq); hists 564 tools/perf/util/hist.h static inline int hists__scnprintf_title(struct hists *hists, char *bf, size_t size) hists 566 tools/perf/util/hist.h return __hists__scnprintf_title(hists, bf, size, true); hists 272 tools/perf/util/sort.c if (!hists__has(left->hists, dso) || hists__has(right->hists, dso)) { hists 709 tools/perf/util/sort.c evsel = hists_to_evsel(he->hists); hists 731 tools/perf/util/sort.c evsel = hists_to_evsel(left->hists); hists 748 tools/perf/util/sort.c evsel = hists_to_evsel(he->hists); hists 1744 tools/perf/util/sort.c void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists) hists 1752 tools/perf/util/sort.c hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name)); hists 1756 tools/perf/util/sort.c struct hists *hists, int line __maybe_unused, hists 1765 tools/perf/util/sort.c len = hists__col_len(hists, hse->se->se_width_idx); hists 1772 tools/perf/util/sort.c struct hists *hists) hists 1780 tools/perf/util/sort.c len = hists__col_len(hists, hse->se->se_width_idx); hists 1794 tools/perf/util/sort.c len = hists__col_len(he->hists, hse->se->se_width_idx); hists 2062 tools/perf/util/sort.c struct hists *hists __maybe_unused, hists 2079 tools/perf/util/sort.c struct hists *hists __maybe_unused) hists 2092 tools/perf/util/sort.c bool perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists) hists 2098 tools/perf/util/sort.c return hists_to_evsel(hists) == hde->evsel; hists 136 tools/perf/util/sort.h struct hists *hists; hists 184 tools/perf/util/sort.h u64 total_period = hists__total_period(he->hists); hists 269 tools/perf/util/sort.h struct hists block_hists;