Symbol: hists
tools/perf/builtin-annotate.c
239
struct hists *hists = evsel__hists(sample->evsel);
tools/perf/builtin-annotate.c
271
he = hists__add_entry(hists, al, NULL, NULL, NULL, NULL, sample, true);
tools/perf/builtin-annotate.c
276
hists__inc_nr_samples(hists, true);
tools/perf/builtin-annotate.c
397
static void hists__find_annotations(struct hists *hists,
tools/perf/builtin-annotate.c
401
struct rb_node *nd = rb_first_cached(&hists->entries), *next;
tools/perf/builtin-annotate.c
422
u64 total = hists__total_period(hists);
tools/perf/builtin-annotate.c
582
struct hists *hists = evsel__hists(pos);
tools/perf/builtin-annotate.c
583
u32 nr_samples = hists->stats.nr_samples;
tools/perf/builtin-annotate.c
591
hists__collapse_resort(hists, &prog);
tools/perf/builtin-annotate.c
608
struct hists *leader_hists;
tools/perf/builtin-annotate.c
611
hists__match(leader_hists, hists);
tools/perf/builtin-annotate.c
612
hists__link(leader_hists, hists);
tools/perf/builtin-annotate.c
617
hists__find_annotations(hists, pos, ann);
tools/perf/builtin-annotate.c
628
struct hists *hists = evsel__hists(pos);
tools/perf/builtin-annotate.c
629
u32 nr_samples = hists->stats.nr_samples;
tools/perf/builtin-annotate.c
647
hists__find_annotations(hists, pos, ann);
tools/perf/builtin-c2c.c
1011
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1042
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1073
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1104
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1135
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1166
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1200
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1333
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1360
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1374
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
1387
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
186
if (c2c_he->hists) {
tools/perf/builtin-c2c.c
187
hists__delete_all_entries(&c2c_he->hists->hists);
tools/perf/builtin-c2c.c
188
perf_hpp__reset_output_field(&c2c_he->hists->list);
tools/perf/builtin-c2c.c
189
zfree(&c2c_he->hists);
tools/perf/builtin-c2c.c
1969
len = hists__col_len(he->hists, dim->se->se_width_idx);
tools/perf/builtin-c2c.c
1972
len = symbol_width(he->hists, dim->se);
tools/perf/builtin-c2c.c
204
static int c2c_hists__init(struct c2c_hists *hists,
tools/perf/builtin-c2c.c
2111
perf_hpp__append_sort_keys(&hists->list);
tools/perf/builtin-c2c.c
2119
static int c2c_hists__init(struct c2c_hists *hists,
tools/perf/builtin-c2c.c
2124
__hists__init(&hists->hists, &hists->list);
tools/perf/builtin-c2c.c
2131
perf_hpp_list__init(&hists->list);
tools/perf/builtin-c2c.c
2134
hists->list.nr_header_lines = nr_header_lines;
tools/perf/builtin-c2c.c
2136
return hpp_list__parse(&hists->list, /*output=*/NULL, sort, env);
tools/perf/builtin-c2c.c
216
struct c2c_hists *hists;
tools/perf/builtin-c2c.c
220
if (c2c_he->hists)
tools/perf/builtin-c2c.c
221
return c2c_he->hists;
tools/perf/builtin-c2c.c
2225
dim = &c2c.hists == c2c_he->hists ?
tools/perf/builtin-c2c.c
223
hists = c2c_he->hists = zalloc(sizeof(*hists));
tools/perf/builtin-c2c.c
224
if (!hists)
tools/perf/builtin-c2c.c
2256
c2c_hists = container_of(c2c_he->he.hists, struct c2c_hists, hists);
tools/perf/builtin-c2c.c
2257
hists__calc_col_len(&c2c_hists->hists, &c2c_he->he);
tools/perf/builtin-c2c.c
227
ret = c2c_hists__init(hists, sort, nr_header_lines, env);
tools/perf/builtin-c2c.c
2286
c2c_hists = c2c_he->hists;
tools/perf/builtin-c2c.c
229
perf_hpp__reset_output_field(&hists->list);
tools/perf/builtin-c2c.c
2296
hists__collapse_resort(&c2c_hists->hists, NULL);
tools/perf/builtin-c2c.c
2297
hists__output_resort_cb(&c2c_hists->hists, NULL, filter_cb);
tools/perf/builtin-c2c.c
230
c2c_he->hists = NULL;
tools/perf/builtin-c2c.c
231
free(hists);
tools/perf/builtin-c2c.c
235
return hists;
tools/perf/builtin-c2c.c
2410
static int hists__iterate_cb(struct hists *hists, hists__resort_cb_t cb, void *arg)
tools/perf/builtin-c2c.c
2412
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/builtin-c2c.c
2431
struct c2c_stats *stats = &c2c.hists.stats;
tools/perf/builtin-c2c.c
2511
hists__fprintf_headers(&c2c_hists->hists, out);
tools/perf/builtin-c2c.c
2522
hists__fprintf(&c2c_hists->hists, false, 0, 0, 0, out, false);
tools/perf/builtin-c2c.c
2555
nd = rb_first_cached(&c2c.hists.hists.entries);
tools/perf/builtin-c2c.c
2565
print_cacheline(c2c_he->hists, he, &hpp_list, out);
tools/perf/builtin-c2c.c
2607
hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true);
tools/perf/builtin-c2c.c
2628
if (!perf_c2c__has_annotation(he->hists->hpp_list)) {
tools/perf/builtin-c2c.c
2660
struct rb_node *nd = rb_first_cached(&hb->hists->entries);
tools/perf/builtin-c2c.c
2698
c2c_cacheline_browser__new(struct hists *hists, struct hist_entry *he)
tools/perf/builtin-c2c.c
2704
hist_browser__init(&browser->hb, hists);
tools/perf/builtin-c2c.c
2734
c2c_hists = c2c_he->hists;
tools/perf/builtin-c2c.c
2736
cl_browser = c2c_cacheline_browser__new(&c2c_hists->hists, he);
tools/perf/builtin-c2c.c
2789
perf_c2c_browser__new(struct hists *hists)
tools/perf/builtin-c2c.c
2791
struct hist_browser *browser = hist_browser__new(hists);
tools/perf/builtin-c2c.c
2801
static int perf_c2c__hists_browse(struct hists *hists)
tools/perf/builtin-c2c.c
2810
browser = perf_c2c_browser__new(hists);
tools/perf/builtin-c2c.c
2847
perf_c2c__hists_browse(&c2c.hists.hists);
tools/perf/builtin-c2c.c
321
struct hists *evsel_hists = evsel__hists(evsel);
tools/perf/builtin-c2c.c
3248
err = c2c_hists__init(&c2c.hists, "dcacheline", 2, perf_session__env(session));
tools/perf/builtin-c2c.c
335
struct c2c_hists *c2c_hists = &c2c.hists;
tools/perf/builtin-c2c.c
3359
c2c_hists__reinit(&c2c.hists, output_str, sort_str, perf_session__env(session));
tools/perf/builtin-c2c.c
3361
ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting...");
tools/perf/builtin-c2c.c
3363
hists__collapse_resort(&c2c.hists.hists, NULL);
tools/perf/builtin-c2c.c
3364
hists__output_resort_cb(&c2c.hists.hists, &prog, resort_shared_cl_cb);
tools/perf/builtin-c2c.c
3365
hists__iterate_cb(&c2c.hists.hists, resort_cl_cb, perf_session__env(session));
tools/perf/builtin-c2c.c
370
he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops,
tools/perf/builtin-c2c.c
386
hists__inc_nr_samples(&c2c_hists->hists, he->filtered);
tools/perf/builtin-c2c.c
418
he = hists__add_entry_ops(&c2c_hists->hists, &c2c_entry_ops,
tools/perf/builtin-c2c.c
439
hists__inc_nr_samples(&c2c_hists->hists, he->filtered);
tools/perf/builtin-c2c.c
494
static int symbol_width(struct hists *hists, struct sort_entry *se)
tools/perf/builtin-c2c.c
496
int width = hists__col_len(hists, se->se_width_idx);
tools/perf/builtin-c2c.c
506
struct hists *hists)
tools/perf/builtin-c2c.c
515
return symbol_width(hists, dim->se);
tools/perf/builtin-c2c.c
517
return dim->se ? hists__col_len(hists, dim->se->se_width_idx) :
tools/perf/builtin-c2c.c
522
struct hists *hists, int line, int *span)
tools/perf/builtin-c2c.c
524
struct perf_hpp_list *hpp_list = hists->hpp_list;
tools/perf/builtin-c2c.c
528
int width = c2c_width(fmt, hpp, hists);
tools/perf/builtin-c2c.c
56
struct hists hists;
tools/perf/builtin-c2c.c
572
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
586
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
600
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
610
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
639
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
660
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
693
int width = c2c_width(fmt, hpp, he->hists); \
tools/perf/builtin-c2c.c
70
struct c2c_hists *hists;
tools/perf/builtin-c2c.c
768
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
806
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
840
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
855
struct c2c_hists *hists;
tools/perf/builtin-c2c.c
861
hists = container_of(c2c_he->he.hists, struct c2c_hists, hists);
tools/perf/builtin-c2c.c
863
total = &hists->stats;
tools/perf/builtin-c2c.c
902
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-c2c.c
946
struct c2c_hists *hists;
tools/perf/builtin-c2c.c
948
hists = container_of(he->hists, struct c2c_hists, hists);
tools/perf/builtin-c2c.c
949
return &hists->stats;
tools/perf/builtin-c2c.c
96
struct c2c_hists hists;
tools/perf/builtin-c2c.c
962
struct c2c_hists *hists; \
tools/perf/builtin-c2c.c
964
hists = container_of(c2c_he->he.hists, struct c2c_hists, hists); \
tools/perf/builtin-c2c.c
965
return percent(c2c_he->stats.__f, hists->stats.__f); \
tools/perf/builtin-c2c.c
980
int width = c2c_width(fmt, hpp, he->hists);
tools/perf/builtin-diff.c
1304
u64 total = hists__total_period(he->hists);
tools/perf/builtin-diff.c
1671
struct hists *hists __maybe_unused,
tools/perf/builtin-diff.c
1684
struct hists *hists __maybe_unused)
tools/perf/builtin-diff.c
273
u64 total = hists__total_period(he->hists);
tools/perf/builtin-diff.c
313
u64 he_total = he->hists->stats.total_period;
tools/perf/builtin-diff.c
314
u64 pair_total = pair->hists->stats.total_period;
tools/perf/builtin-diff.c
317
he_total = he->hists->stats.total_non_filtered_period;
tools/perf/builtin-diff.c
318
pair_total = pair->hists->stats.total_non_filtered_period;
tools/perf/builtin-diff.c
398
struct hists *hists = evsel__hists(evsel);
tools/perf/builtin-diff.c
427
if (!hists__add_entry_ops(hists, &block_hist_ops, &al, NULL,
tools/perf/builtin-diff.c
448
if (!hists__add_entry(hists, &al, NULL, NULL, NULL, NULL, sample,
tools/perf/builtin-diff.c
462
hists->stats.total_period += sample->period;
tools/perf/builtin-diff.c
464
hists->stats.total_non_filtered_period += sample->period;
tools/perf/builtin-diff.c
491
struct hists *hists = evsel__hists(evsel);
tools/perf/builtin-diff.c
493
hists__collapse_resort(hists, NULL);
tools/perf/builtin-diff.c
513
if (pair->hists == d->hists)
tools/perf/builtin-diff.c
528
static void hists__baseline_only(struct hists *hists)
tools/perf/builtin-diff.c
533
if (hists__has(hists, need_collapse))
tools/perf/builtin-diff.c
534
root = &hists->entries_collapsed;
tools/perf/builtin-diff.c
536
root = hists->entries_in;
tools/perf/builtin-diff.c
586
struct hists *hists_pair)
tools/perf/builtin-diff.c
652
static void block_hists_match(struct hists *hists_base,
tools/perf/builtin-diff.c
653
struct hists *hists_pair)
tools/perf/builtin-diff.c
672
static void hists__precompute(struct hists *hists)
tools/perf/builtin-diff.c
677
if (hists__has(hists, need_collapse))
tools/perf/builtin-diff.c
678
root = &hists->entries_collapsed;
tools/perf/builtin-diff.c
680
root = hists->entries_in;
tools/perf/builtin-diff.c
77
struct hists *hists;
tools/perf/builtin-diff.c
932
static void hists__process(struct hists *hists)
tools/perf/builtin-diff.c
935
hists__baseline_only(hists);
tools/perf/builtin-diff.c
937
hists__precompute(hists);
tools/perf/builtin-diff.c
938
hists__output_resort(hists, NULL);
tools/perf/builtin-diff.c
943
hists__fprintf(hists, !quiet, 0, 0, 0, stdout,
tools/perf/builtin-diff.c
969
struct hists *hists_base = evsel__hists(evsel_base);
tools/perf/builtin-diff.c
976
struct hists *hists;
tools/perf/builtin-diff.c
982
hists = evsel__hists(evsel);
tools/perf/builtin-diff.c
983
d->hists = hists;
tools/perf/builtin-diff.c
985
hists__match(hists_base, hists);
tools/perf/builtin-diff.c
988
hists__link(hists_base, hists);
tools/perf/builtin-kvm.c
1011
ui_progress__init(&prog, kvm_hists.hists.nr_entries, "Sorting...");
tools/perf/builtin-kvm.c
1012
hists__collapse_resort(&kvm_hists.hists, NULL);
tools/perf/builtin-kvm.c
1013
hists__output_resort_cb(&kvm_hists.hists, NULL, filter_cb);
tools/perf/builtin-kvm.c
1076
for (nd = rb_first_cached(&kvm_hists.hists.entries); nd; nd = rb_next(nd)) {
tools/perf/builtin-kvm.c
117
struct hists *hists __maybe_unused);
tools/perf/builtin-kvm.c
122
int width = fmt_width(fmt, hpp, he->hists);
tools/perf/builtin-kvm.c
1478
hists__delete_entries(&kvm_hists.hists);
tools/perf/builtin-kvm.c
164
int width = fmt_width(fmt, hpp, he->hists); \
tools/perf/builtin-kvm.c
1643
hists__delete_entries(&kvm_hists.hists);
tools/perf/builtin-kvm.c
214
int width = fmt_width(fmt, hpp, he->hists);
tools/perf/builtin-kvm.c
262
int width = fmt_width(fmt, hpp, he->hists);
tools/perf/builtin-kvm.c
295
int width = fmt_width(fmt, hpp, he->hists);
tools/perf/builtin-kvm.c
338
struct hists *hists __maybe_unused)
tools/perf/builtin-kvm.c
347
struct hists *hists, int line __maybe_unused,
tools/perf/builtin-kvm.c
352
int width = fmt_width(fmt, hpp, hists);
tools/perf/builtin-kvm.c
505
__hists__init(&kvm_hists.hists, &kvm_hists.list);
tools/perf/builtin-kvm.c
520
struct rb_node *nd = rb_first_cached(&hb->hists->entries);
tools/perf/builtin-kvm.c
543
perf_kvm_browser__new(struct hists *hists)
tools/perf/builtin-kvm.c
545
struct hist_browser *browser = hist_browser__new(hists);
tools/perf/builtin-kvm.c
553
static int kvm__hists_browse(struct hists *hists)
tools/perf/builtin-kvm.c
558
browser = perf_kvm_browser__new(hists);
tools/perf/builtin-kvm.c
589
kvm__hists_browse(&kvm_hists.hists);
tools/perf/builtin-kvm.c
648
if (hists__has(&kvm_hists.hists, need_collapse))
tools/perf/builtin-kvm.c
649
root = &kvm_hists.hists.entries_collapsed;
tools/perf/builtin-kvm.c
651
root = kvm_hists.hists.entries_in;
tools/perf/builtin-kvm.c
705
hists__inc_nr_samples(&kvm_hists.hists, 0);
tools/perf/builtin-kvm.c
739
he = hists__add_entry_ops(&kvm_hists.hists, &kvm_ev_entry_ops,
tools/perf/builtin-kvm.c
86
struct hists hists;
tools/perf/builtin-report.c
473
static size_t hists__fprintf_nr_sample_events(struct hists *hists, struct report *rep,
tools/perf/builtin-report.c
478
unsigned long nr_samples = hists->stats.nr_samples;
tools/perf/builtin-report.c
479
u64 nr_events = hists->stats.total_period;
tools/perf/builtin-report.c
480
struct evsel *evsel = hists_to_evsel(hists);
tools/perf/builtin-report.c
483
int socked_id = hists->socket_filter;
tools/perf/builtin-report.c
489
nr_samples = hists->stats.nr_non_filtered_samples;
tools/perf/builtin-report.c
490
nr_events = hists->stats.total_non_filtered_period;
tools/perf/builtin-report.c
500
const struct hists *pos_hists = evsel__hists(pos);
tools/perf/builtin-report.c
568
struct hists *hists = evsel__hists(pos);
tools/perf/builtin-report.c
575
if (rep->skip_empty && !hists->stats.nr_samples)
tools/perf/builtin-report.c
578
hists__fprintf_nr_sample_events(hists, rep, evname, stdout);
tools/perf/builtin-report.c
593
hists__fprintf(hists, !quiet, 0, 0, rep->min_percent, stdout,
tools/perf/builtin-report.c
727
struct hists *hists = evsel__hists(pos);
tools/perf/builtin-report.c
730
hists->symbol_filter_str = rep->symbol_filter_str;
tools/perf/builtin-report.c
732
hists->socket_filter = rep->socket_filter;
tools/perf/builtin-report.c
734
ret = hists__collapse_resort(hists, &prog);
tools/perf/builtin-report.c
740
struct hists *leader_hists = evsel__hists(evsel__leader(pos));
tools/perf/builtin-report.c
742
hists__match(leader_hists, hists);
tools/perf/builtin-report.c
743
hists__link(leader_hists, hists);
tools/perf/builtin-report.c
757
struct evsel *evsel = hists_to_evsel(he->hists);
tools/perf/builtin-report.c
784
struct hists *hists = evsel__hists(sample->evsel);
tools/perf/builtin-report.c
786
hists__inc_nr_events(hists);
tools/perf/builtin-report.c
802
struct hists *hists = evsel__hists(evsel);
tools/perf/builtin-report.c
806
hists__inc_nr_dropped_samples(hists, count);
tools/perf/builtin-report.c
808
hists__inc_nr_lost_samples(hists, count);
tools/perf/builtin-top.c
125
evsel = hists_to_evsel(he->hists);
tools/perf/builtin-top.c
203
EXCLUSIVE_LOCKS_REQUIRED(he->hists->lock)
tools/perf/builtin-top.c
228
mutex_unlock(&he->hists->lock);
tools/perf/builtin-top.c
238
mutex_lock(&he->hists->lock);
tools/perf/builtin-top.c
253
evsel = hists_to_evsel(he->hists);
tools/perf/builtin-top.c
288
struct hists *hists = evsel__hists(pos);
tools/perf/builtin-top.c
294
hists__unlink(hists);
tools/perf/builtin-top.c
298
hists__delete_entries(hists);
tools/perf/builtin-top.c
300
hists__decay_entries(hists, t->hide_user_symbols,
tools/perf/builtin-top.c
305
hists__collapse_resort(hists, NULL);
tools/perf/builtin-top.c
309
struct hists *leader_hists = evsel__hists(evsel__leader(pos));
tools/perf/builtin-top.c
311
hists__match(leader_hists, hists);
tools/perf/builtin-top.c
312
hists__link(leader_hists, hists);
tools/perf/builtin-top.c
327
struct hists *hists = evsel__hists(evsel);
tools/perf/builtin-top.c
354
hists__output_recalc_col_len(hists, top->print_entries - printed);
tools/perf/builtin-top.c
356
hists__fprintf(hists, false, top->print_entries - printed, win_width,
tools/perf/builtin-top.c
399
struct hists *hists = evsel__hists(top->sym_evsel);
tools/perf/builtin-top.c
417
next = rb_first_cached(&hists->entries);
tools/perf/builtin-top.c
646
struct hists *hists = evsel__hists(pos);
tools/perf/builtin-top.c
647
hists->uid_filter_str = top->uid_str;
tools/perf/builtin-top.c
732
EXCLUSIVE_LOCKS_REQUIRED(iter->he->hists->lock)
tools/perf/builtin-top.c
833
struct hists *hists = evsel__hists(sample->evsel);
tools/perf/builtin-top.c
844
mutex_lock(&hists->lock);
tools/perf/builtin-top.c
849
mutex_unlock(&hists->lock);
tools/perf/tests/hists_common.c
163
void print_hists_in(struct hists *hists)
tools/perf/tests/hists_common.c
169
if (hists__has(hists, need_collapse))
tools/perf/tests/hists_common.c
170
root = &hists->entries_collapsed;
tools/perf/tests/hists_common.c
172
root = hists->entries_in;
tools/perf/tests/hists_common.c
195
void print_hists_out(struct hists *hists)
tools/perf/tests/hists_common.c
201
root = &hists->entries;
tools/perf/tests/hists_common.h
73
void print_hists_in(struct hists *hists);
tools/perf/tests/hists_common.h
74
void print_hists_out(struct hists *hists);
tools/perf/tests/hists_cumulate.c
129
static void del_hist_entries(struct hists *hists)
tools/perf/tests/hists_cumulate.c
136
if (hists__has(hists, need_collapse))
tools/perf/tests/hists_cumulate.c
137
root_in = &hists->entries_collapsed;
tools/perf/tests/hists_cumulate.c
139
root_in = hists->entries_in;
tools/perf/tests/hists_cumulate.c
141
root_out = &hists->entries;
tools/perf/tests/hists_cumulate.c
189
static int do_test(struct hists *hists, struct result *expected, size_t nr_expected,
tools/perf/tests/hists_cumulate.c
204
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_cumulate.c
205
evsel__output_resort(hists_to_evsel(hists), NULL);
tools/perf/tests/hists_cumulate.c
211
print_hists_out(hists);
tools/perf/tests/hists_cumulate.c
214
root = &hists->entries.rb_root;
tools/perf/tests/hists_cumulate.c
265
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_cumulate.c
300
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
304
err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0);
tools/perf/tests/hists_cumulate.c
307
del_hist_entries(hists);
tools/perf/tests/hists_cumulate.c
316
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_cumulate.c
447
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
451
err = do_test(hists, expected, ARRAY_SIZE(expected),
tools/perf/tests/hists_cumulate.c
455
del_hist_entries(hists);
tools/perf/tests/hists_cumulate.c
464
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_cumulate.c
505
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
509
err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0);
tools/perf/tests/hists_cumulate.c
512
del_hist_entries(hists);
tools/perf/tests/hists_cumulate.c
521
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_cumulate.c
691
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_cumulate.c
695
err = do_test(hists, expected, ARRAY_SIZE(expected),
tools/perf/tests/hists_cumulate.c
699
del_hist_entries(hists);
tools/perf/tests/hists_cumulate.c
80
static int add_hist_entries(struct hists *hists, struct machine *machine)
tools/perf/tests/hists_cumulate.c
83
struct evsel *evsel = hists_to_evsel(hists);
tools/perf/tests/hists_filter.c
155
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_filter.c
157
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_filter.c
162
print_hists_out(hists);
tools/perf/tests/hists_filter.c
166
hists->stats.nr_samples == 10);
tools/perf/tests/hists_filter.c
168
hists->nr_entries == 9);
tools/perf/tests/hists_filter.c
170
hists->stats.total_period == 1000);
tools/perf/tests/hists_filter.c
172
hists->stats.nr_samples ==
tools/perf/tests/hists_filter.c
173
hists->stats.nr_non_filtered_samples);
tools/perf/tests/hists_filter.c
175
hists->nr_entries == hists->nr_non_filtered_entries);
tools/perf/tests/hists_filter.c
177
hists->stats.total_period ==
tools/perf/tests/hists_filter.c
178
hists->stats.total_non_filtered_period);
tools/perf/tests/hists_filter.c
181
hists->thread_filter = fake_samples[9].thread;
tools/perf/tests/hists_filter.c
182
hists__filter_by_thread(hists);
tools/perf/tests/hists_filter.c
186
print_hists_out(hists);
tools/perf/tests/hists_filter.c
191
hists->stats.nr_samples == 10);
tools/perf/tests/hists_filter.c
193
hists->nr_entries == 9);
tools/perf/tests/hists_filter.c
195
hists->stats.total_period == 1000);
tools/perf/tests/hists_filter.c
199
hists->stats.nr_non_filtered_samples == 4);
tools/perf/tests/hists_filter.c
201
hists->nr_non_filtered_entries == 4);
tools/perf/tests/hists_filter.c
203
hists->stats.total_non_filtered_period == 400);
tools/perf/tests/hists_filter.c
206
hists->thread_filter = NULL;
tools/perf/tests/hists_filter.c
207
hists__filter_by_thread(hists);
tools/perf/tests/hists_filter.c
210
hists->dso_filter = map__dso(fake_samples[0].map);
tools/perf/tests/hists_filter.c
211
hists__filter_by_dso(hists);
tools/perf/tests/hists_filter.c
215
print_hists_out(hists);
tools/perf/tests/hists_filter.c
220
hists->stats.nr_samples == 10);
tools/perf/tests/hists_filter.c
222
hists->nr_entries == 9);
tools/perf/tests/hists_filter.c
224
hists->stats.total_period == 1000);
tools/perf/tests/hists_filter.c
228
hists->stats.nr_non_filtered_samples == 3);
tools/perf/tests/hists_filter.c
230
hists->nr_non_filtered_entries == 3);
tools/perf/tests/hists_filter.c
232
hists->stats.total_non_filtered_period == 300);
tools/perf/tests/hists_filter.c
235
hists->dso_filter = NULL;
tools/perf/tests/hists_filter.c
236
hists__filter_by_dso(hists);
tools/perf/tests/hists_filter.c
245
hists->symbol_filter_str = "main";
tools/perf/tests/hists_filter.c
246
hists__filter_by_symbol(hists);
tools/perf/tests/hists_filter.c
250
print_hists_out(hists);
tools/perf/tests/hists_filter.c
255
hists->stats.nr_samples == 10);
tools/perf/tests/hists_filter.c
257
hists->nr_entries == 9);
tools/perf/tests/hists_filter.c
259
hists->stats.total_period == 1000);
tools/perf/tests/hists_filter.c
263
hists->stats.nr_non_filtered_samples == 3);
tools/perf/tests/hists_filter.c
265
hists->nr_non_filtered_entries == 2);
tools/perf/tests/hists_filter.c
267
hists->stats.total_non_filtered_period == 300);
tools/perf/tests/hists_filter.c
270
hists->symbol_filter_str = NULL;
tools/perf/tests/hists_filter.c
271
hists__filter_by_symbol(hists);
tools/perf/tests/hists_filter.c
274
hists->socket_filter = 2;
tools/perf/tests/hists_filter.c
275
hists__filter_by_socket(hists);
tools/perf/tests/hists_filter.c
279
print_hists_out(hists);
tools/perf/tests/hists_filter.c
284
hists->stats.nr_samples == 10);
tools/perf/tests/hists_filter.c
286
hists->nr_entries == 9);
tools/perf/tests/hists_filter.c
288
hists->stats.total_period == 1000);
tools/perf/tests/hists_filter.c
292
hists->stats.nr_non_filtered_samples == 2);
tools/perf/tests/hists_filter.c
294
hists->nr_non_filtered_entries == 2);
tools/perf/tests/hists_filter.c
296
hists->stats.total_non_filtered_period == 200);
tools/perf/tests/hists_filter.c
299
hists->socket_filter = -1;
tools/perf/tests/hists_filter.c
300
hists__filter_by_socket(hists);
tools/perf/tests/hists_filter.c
303
hists->thread_filter = fake_samples[1].thread;
tools/perf/tests/hists_filter.c
304
hists->dso_filter = map__dso(fake_samples[1].map);
tools/perf/tests/hists_filter.c
305
hists__filter_by_thread(hists);
tools/perf/tests/hists_filter.c
306
hists__filter_by_dso(hists);
tools/perf/tests/hists_filter.c
310
print_hists_out(hists);
tools/perf/tests/hists_filter.c
315
hists->stats.nr_samples == 10);
tools/perf/tests/hists_filter.c
317
hists->nr_entries == 9);
tools/perf/tests/hists_filter.c
319
hists->stats.total_period == 1000);
tools/perf/tests/hists_filter.c
323
hists->stats.nr_non_filtered_samples == 2);
tools/perf/tests/hists_filter.c
325
hists->nr_non_filtered_entries == 1);
tools/perf/tests/hists_filter.c
327
hists->stats.total_non_filtered_period == 200);
tools/perf/tests/hists_filter.c
70
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_filter.c
74
hists->thread_filter = NULL;
tools/perf/tests/hists_filter.c
75
hists->dso_filter = NULL;
tools/perf/tests/hists_filter.c
76
hists->symbol_filter_str = NULL;
tools/perf/tests/hists_link.c
112
he = hists__add_entry(hists, &al, NULL,
tools/perf/tests/hists_link.c
160
static int __validate_match(struct hists *hists)
tools/perf/tests/hists_link.c
169
if (hists__has(hists, need_collapse))
tools/perf/tests/hists_link.c
170
root = &hists->entries_collapsed;
tools/perf/tests/hists_link.c
172
root = hists->entries_in;
tools/perf/tests/hists_link.c
203
static int validate_match(struct hists *leader, struct hists *other)
tools/perf/tests/hists_link.c
208
static int __validate_link(struct hists *hists, int idx)
tools/perf/tests/hists_link.c
221
if (hists__has(hists, need_collapse))
tools/perf/tests/hists_link.c
222
root = &hists->entries_collapsed;
tools/perf/tests/hists_link.c
224
root = hists->entries_in;
tools/perf/tests/hists_link.c
281
static int validate_link(struct hists *leader, struct hists *other)
tools/perf/tests/hists_link.c
289
struct hists *hists, *first_hists;
tools/perf/tests/hists_link.c
327
hists = evsel__hists(evsel);
tools/perf/tests/hists_link.c
328
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_link.c
331
print_hists_in(hists);
tools/perf/tests/hists_link.c
338
hists = evsel__hists(evsel);
tools/perf/tests/hists_link.c
341
hists__match(first_hists, hists);
tools/perf/tests/hists_link.c
342
err = validate_match(first_hists, hists);
tools/perf/tests/hists_link.c
347
hists__link(first_hists, hists);
tools/perf/tests/hists_link.c
348
err = validate_link(first_hists, hists);
tools/perf/tests/hists_link.c
81
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_link.c
92
he = hists__add_entry(hists, &al, NULL,
tools/perf/tests/hists_output.c
101
if (hists__has(hists, need_collapse))
tools/perf/tests/hists_output.c
102
root_in = &hists->entries_collapsed;
tools/perf/tests/hists_output.c
104
root_in = hists->entries_in;
tools/perf/tests/hists_output.c
106
root_out = &hists->entries;
tools/perf/tests/hists_output.c
140
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_output.c
165
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
169
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_output.c
174
print_hists_out(hists);
tools/perf/tests/hists_output.c
177
root = &hists->entries;
tools/perf/tests/hists_output.c
233
del_hist_entries(hists);
tools/perf/tests/hists_output.c
242
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_output.c
265
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
269
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_output.c
274
print_hists_out(hists);
tools/perf/tests/hists_output.c
277
root = &hists->entries;
tools/perf/tests/hists_output.c
289
del_hist_entries(hists);
tools/perf/tests/hists_output.c
298
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_output.c
319
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
323
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_output.c
328
print_hists_out(hists);
tools/perf/tests/hists_output.c
331
root = &hists->entries;
tools/perf/tests/hists_output.c
363
del_hist_entries(hists);
tools/perf/tests/hists_output.c
372
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_output.c
397
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
401
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_output.c
406
print_hists_out(hists);
tools/perf/tests/hists_output.c
409
root = &hists->entries;
tools/perf/tests/hists_output.c
465
del_hist_entries(hists);
tools/perf/tests/hists_output.c
474
struct hists *hists = evsel__hists(evsel);
tools/perf/tests/hists_output.c
50
static int add_hist_entries(struct hists *hists, struct machine *machine)
tools/perf/tests/hists_output.c
500
err = add_hist_entries(hists, machine);
tools/perf/tests/hists_output.c
504
hists__collapse_resort(hists, NULL);
tools/perf/tests/hists_output.c
509
print_hists_out(hists);
tools/perf/tests/hists_output.c
512
root = &hists->entries;
tools/perf/tests/hists_output.c
53
struct evsel *evsel = hists_to_evsel(hists);
tools/perf/tests/hists_output.c
585
del_hist_entries(hists);
tools/perf/tests/hists_output.c
94
static void del_hist_entries(struct hists *hists)
tools/perf/ui/browsers/annotate-data.c
157
struct evsel *evsel = hists_to_evsel(he->hists);
tools/perf/ui/browsers/annotate-data.c
175
zfree(&pos->hists);
tools/perf/ui/browsers/annotate-data.c
24
struct type_hist_entry *hists;
tools/perf/ui/browsers/annotate-data.c
394
struct evsel *leader = hists_to_evsel(he->hists);
tools/perf/ui/browsers/annotate-data.c
425
browser__write_overhead(uib, h, &be->hists[idx++], row);
tools/perf/ui/browsers/annotate-data.c
70
update_hist_entry(&entry->hists[k++], &h->addr[offset]);
tools/perf/ui/browsers/annotate-data.c
90
entry->hists = calloc(browser->nr_events, sizeof(*entry->hists));
tools/perf/ui/browsers/annotate-data.c
91
if (entry->hists == NULL) {
tools/perf/ui/browsers/annotate.c
1015
annotate__scnprintf_title(hists, title, sizeof(title));
tools/perf/ui/browsers/annotate.c
1104
annotate__scnprintf_title(hists, title, sizeof(title));
tools/perf/ui/browsers/annotate.c
1213
annotate_he.hists = he->hists;
tools/perf/ui/browsers/annotate.c
832
static int annotate__scnprintf_title(struct hists *hists, char *bf, size_t size)
tools/perf/ui/browsers/annotate.c
834
int printed = hists__scnprintf_title(hists, bf, size);
tools/perf/ui/browsers/annotate.c
885
struct hists *hists = evsel__hists(evsel);
tools/perf/ui/browsers/annotate.c
895
annotate__scnprintf_title(hists, title, sizeof(title));
tools/perf/ui/browsers/annotate.c
938
annotate__scnprintf_title(hists, title, sizeof(title));
tools/perf/ui/browsers/hists.c
107
struct hists *hists = hb->hists;
tools/perf/ui/browsers/hists.c
108
struct perf_hpp_list *hpp_list = hists->hpp_list;
tools/perf/ui/browsers/hists.c
1171
u64 total = hists__total_period(entry->hists);
tools/perf/ui/browsers/hists.c
133
browser->width = 3 + (hists__sort_list_width(hb->hists) + sizeof("[k]"));
tools/perf/ui/browsers/hists.c
1362
hists__for_each_format(browser->hists, fmt) {
tools/perf/ui/browsers/hists.c
1370
if (perf_hpp__should_skip(fmt, entry->hists) ||
tools/perf/ui/browsers/hists.c
1453
int hierarchy_indent = (entry->hists->nr_hpp_node - 2) * HIERARCHY_INDENT;
tools/perf/ui/browsers/hists.c
1480
fmt_node = list_first_entry(&entry->hists->hpp_formats,
tools/perf/ui/browsers/hists.c
1490
if (perf_hpp__should_skip(fmt, entry->hists) ||
tools/perf/ui/browsers/hists.c
1611
int indent = browser->hists->nr_hpp_node - 2;
tools/perf/ui/browsers/hists.c
1629
fmt_node = list_first_entry(&browser->hists->hpp_formats,
tools/perf/ui/browsers/hists.c
1632
if (perf_hpp__should_skip(fmt, browser->hists) ||
tools/perf/ui/browsers/hists.c
1636
ret = fmt->width(fmt, NULL, browser->hists);
tools/perf/ui/browsers/hists.c
1680
struct hists *hists = browser->hists;
tools/perf/ui/browsers/hists.c
1690
if (hists__has_callchains(hists) && symbol_conf.use_callchain) {
tools/perf/ui/browsers/hists.c
1696
hists__for_each_format(browser->hists, fmt) {
tools/perf/ui/browsers/hists.c
1697
if (perf_hpp__should_skip(fmt, hists) || column++ < browser->b.horiz_scroll)
tools/perf/ui/browsers/hists.c
1700
ret = fmt->header(fmt, &dummy_hpp, hists, line, &span);
tools/perf/ui/browsers/hists.c
1718
struct hists *hists = browser->hists;
tools/perf/ui/browsers/hists.c
1727
int indent = hists->nr_hpp_node - 2;
tools/perf/ui/browsers/hists.c
1736
fmt_node = list_first_entry(&hists->hpp_formats,
tools/perf/ui/browsers/hists.c
1742
ret = fmt->header(fmt, &dummy_hpp, hists, line, NULL);
tools/perf/ui/browsers/hists.c
1753
if (line < hists->hpp_list->nr_header_lines - 1)
tools/perf/ui/browsers/hists.c
1764
list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) {
tools/perf/ui/browsers/hists.c
1776
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/browsers/hists.c
1786
ret = fmt->header(fmt, &dummy_hpp, hists, line, NULL);
tools/perf/ui/browsers/hists.c
1805
struct perf_hpp_list *hpp_list = browser->hists->hpp_list;
tools/perf/ui/browsers/hists.c
1821
struct hists *hists = browser->hists;
tools/perf/ui/browsers/hists.c
1822
struct perf_hpp_list *hpp_list = hists->hpp_list;
tools/perf/ui/browsers/hists.c
1852
browser->top = rb_first_cached(&hb->hists->entries);
tools/perf/ui/browsers/hists.c
2111
hists__for_each_format(browser->hists, fmt) {
tools/perf/ui/browsers/hists.c
2112
if (perf_hpp__should_skip(fmt, he->hists))
tools/perf/ui/browsers/hists.c
2149
int hierarchy_indent = (he->hists->nr_hpp_node - 2) * HIERARCHY_INDENT;
tools/perf/ui/browsers/hists.c
2157
fmt_node = list_first_entry(&he->hists->hpp_formats,
tools/perf/ui/browsers/hists.c
2251
struct hists *hists)
tools/perf/ui/browsers/hists.c
2255
browser->hists = hists;
tools/perf/ui/browsers/hists.c
2267
fmt_node = list_first_entry(&hists->hpp_formats,
tools/perf/ui/browsers/hists.c
2275
hists__for_each_format(hists, fmt)
tools/perf/ui/browsers/hists.c
2279
hists__reset_column_width(hists);
tools/perf/ui/browsers/hists.c
2282
struct hist_browser *hist_browser__new(struct hists *hists)
tools/perf/ui/browsers/hists.c
2287
hist_browser__init(browser, hists);
tools/perf/ui/browsers/hists.c
2336
int printed = __hists__scnprintf_title(browser->hists, bf, size, !is_report_browser(hbt));
tools/perf/ui/browsers/hists.c
2485
evsel = hists_to_evsel(browser->hists);
tools/perf/ui/browsers/hists.c
2496
ui_browser__update_nr_entries(&browser->b, browser->hists->nr_entries);
tools/perf/ui/browsers/hists.c
2553
hist_entry__annotate_data_tui(he, hists_to_evsel(browser->hists), browser->hbt);
tools/perf/ui/browsers/hists.c
2577
if ((!hists__has(browser->hists, thread) &&
tools/perf/ui/browsers/hists.c
2578
!hists__has(browser->hists, comm)) || thread == NULL)
tools/perf/ui/browsers/hists.c
2581
if (browser->hists->thread_filter) {
tools/perf/ui/browsers/hists.c
2582
pstack__remove(browser->pstack, &browser->hists->thread_filter);
tools/perf/ui/browsers/hists.c
2584
thread__zput(browser->hists->thread_filter);
tools/perf/ui/browsers/hists.c
2590
if (hists__has(browser->hists, thread)) {
tools/perf/ui/browsers/hists.c
2598
browser->hists->thread_filter = thread__get(thread);
tools/perf/ui/browsers/hists.c
2600
pstack__push(browser->pstack, &browser->hists->thread_filter);
tools/perf/ui/browsers/hists.c
2603
hists__filter_by_thread(browser->hists);
tools/perf/ui/browsers/hists.c
2615
if ((!hists__has(browser->hists, thread) &&
tools/perf/ui/browsers/hists.c
2616
!hists__has(browser->hists, comm)) || thread == NULL)
tools/perf/ui/browsers/hists.c
2619
in_out = browser->hists->thread_filter ? "out of" : "into";
tools/perf/ui/browsers/hists.c
2621
if (hists__has(browser->hists, thread)) {
tools/perf/ui/browsers/hists.c
2637
if (!hists__has(browser->hists, dso) || map == NULL)
tools/perf/ui/browsers/hists.c
2640
if (browser->hists->dso_filter) {
tools/perf/ui/browsers/hists.c
2641
pstack__remove(browser->pstack, &browser->hists->dso_filter);
tools/perf/ui/browsers/hists.c
2643
browser->hists->dso_filter = NULL;
tools/perf/ui/browsers/hists.c
2649
browser->hists->dso_filter = dso;
tools/perf/ui/browsers/hists.c
2651
pstack__push(browser->pstack, &browser->hists->dso_filter);
tools/perf/ui/browsers/hists.c
2654
hists__filter_by_dso(browser->hists);
tools/perf/ui/browsers/hists.c
2669
if (!hists__has(browser->hists, dso) || map == NULL)
tools/perf/ui/browsers/hists.c
2673
browser->hists->dso_filter ? "out of" : "into",
tools/perf/ui/browsers/hists.c
2716
if (!hists__has(browser->hists, dso) || map == NULL)
tools/perf/ui/browsers/hists.c
2767
script_browse(script_opt, hists_to_evsel(browser->hists));
tools/perf/ui/browsers/hists.c
2779
res_sample_browse(he->res_samples, he->num_res, hists_to_evsel(browser->hists), act->rstype);
tools/perf/ui/browsers/hists.c
2903
if (!hists__has(browser->hists, socket) || act->socket < 0)
tools/perf/ui/browsers/hists.c
2906
if (browser->hists->socket_filter > -1) {
tools/perf/ui/browsers/hists.c
2907
pstack__remove(browser->pstack, &browser->hists->socket_filter);
tools/perf/ui/browsers/hists.c
2908
browser->hists->socket_filter = -1;
tools/perf/ui/browsers/hists.c
2911
browser->hists->socket_filter = act->socket;
tools/perf/ui/browsers/hists.c
2913
pstack__push(browser->pstack, &browser->hists->socket_filter);
tools/perf/ui/browsers/hists.c
2916
hists__filter_by_socket(browser->hists);
tools/perf/ui/browsers/hists.c
2925
if (!hists__has(browser->hists, socket) || socket_id < 0)
tools/perf/ui/browsers/hists.c
2929
(browser->hists->socket_filter > -1) ? "out of" : "into",
tools/perf/ui/browsers/hists.c
2941
struct rb_node *nd = rb_first_cached(&hb->hists->entries);
tools/perf/ui/browsers/hists.c
2944
hb->nr_non_filtered_entries = hb->hists->nr_non_filtered_entries;
tools/perf/ui/browsers/hists.c
2961
struct rb_node *nd = rb_first_cached(&hb->hists->entries);
tools/perf/ui/browsers/hists.c
2962
u64 total = hists__total_period(hb->hists);
tools/perf/ui/browsers/hists.c
3003
struct hists *hists = evsel__hists(evsel);
tools/perf/ui/browsers/hists.c
3134
if (!hists__has(hists, sym)) {
tools/perf/ui/browsers/hists.c
3215
hists->symbol_filter_str = *buf ? buf : NULL;
tools/perf/ui/browsers/hists.c
3216
hists__filter_by_symbol(hists);
tools/perf/ui/browsers/hists.c
3298
if (top == &browser->hists->dso_filter) {
tools/perf/ui/browsers/hists.c
3304
} else if (top == &browser->hists->thread_filter) {
tools/perf/ui/browsers/hists.c
3307
} else if (top == &browser->hists->socket_filter) {
tools/perf/ui/browsers/hists.c
3341
if (!hists__has(hists, sym) || browser->selection == NULL)
tools/perf/ui/browsers/hists.c
3388
if (hists__has(hists, thread) && thread) {
tools/perf/ui/browsers/hists.c
3403
if (hists__has(hists, sym) && browser->selection->sym) {
tools/perf/ui/browsers/hists.c
3469
struct hists *hists = evsel__hists(evsel);
tools/perf/ui/browsers/hists.c
3471
unsigned long nr_events = hists->stats.nr_samples;
tools/perf/ui/browsers/hists.c
3486
struct hists *pos_hists = evsel__hists(pos);
tools/perf/ui/browsers/hists.c
3698
struct hists *hists = evsel__hists(browser->block_evsel);
tools/perf/ui/browsers/hists.c
3700
unsigned long nr_samples = hists->stats.nr_samples;
tools/perf/ui/browsers/hists.c
3713
struct hists *hists = &bh->block_hists;
tools/perf/ui/browsers/hists.c
3722
browser = hist_browser__new(hists);
tools/perf/ui/browsers/hists.c
59
return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter;
tools/perf/ui/browsers/hists.c
609
nd = rb_first_cached(&browser->hists->entries);
tools/perf/ui/browsers/hists.c
65
struct hists *hists = browser->hists;
tools/perf/ui/browsers/hists.c
676
struct evsel *evsel = hists_to_evsel(browser->hists);
tools/perf/ui/browsers/hists.c
68
for (nd = rb_first_cached(&hists->entries);
tools/perf/ui/browsers/hists.c
708
seq++, browser->b.nr_entries, browser->hists->nr_entries,
tools/perf/ui/browsers/hists.c
751
browser->b.entries = &browser->hists->entries;
tools/perf/ui/browsers/hists.c
83
struct hists *hists = hb->hists;
tools/perf/ui/browsers/hists.c
84
struct perf_hpp_list *hpp_list = hists->hpp_list;
tools/perf/ui/browsers/hists.c
98
nr_entries = hb->hists->nr_entries;
tools/perf/ui/browsers/hists.h
11
struct hists *hists;
tools/perf/ui/browsers/hists.h
32
struct hist_browser *hist_browser__new(struct hists *hists);
tools/perf/ui/browsers/hists.h
37
struct hists *hists);
tools/perf/ui/gtk/hists.c
293
static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists,
tools/perf/ui/gtk/hists.c
314
hists__for_each_format(hists, fmt)
tools/perf/ui/gtk/hists.c
325
hists__for_each_format(hists, fmt) {
tools/perf/ui/gtk/hists.c
326
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/gtk/hists.c
358
for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) {
tools/perf/ui/gtk/hists.c
361
u64 total = hists__total_period(h->hists);
tools/perf/ui/gtk/hists.c
375
hists__for_each_format(hists, fmt) {
tools/perf/ui/gtk/hists.c
376
if (perf_hpp__should_skip(fmt, h->hists))
tools/perf/ui/gtk/hists.c
388
symbol_conf.use_callchain && hists__has(hists, sym)) {
tools/perf/ui/gtk/hists.c
405
static void perf_gtk__add_hierarchy_entries(struct hists *hists,
tools/perf/ui/gtk/hists.c
417
u64 total = hists__total_period(hists);
tools/perf/ui/gtk/hists.c
438
fmt_node = list_first_entry(&hists->hpp_formats,
tools/perf/ui/gtk/hists.c
469
perf_gtk__add_hierarchy_entries(hists, &he->hroot_out,
tools/perf/ui/gtk/hists.c
497
static void perf_gtk__show_hierarchy(GtkWidget *window, struct hists *hists,
tools/perf/ui/gtk/hists.c
516
hists__for_each_format(hists, fmt) {
tools/perf/ui/gtk/hists.c
532
fmt_node = list_first_entry(&hists->hpp_formats,
tools/perf/ui/gtk/hists.c
544
list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) {
tools/perf/ui/gtk/hists.c
551
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/gtk/hists.c
558
fmt->header(fmt, &hpp, hists, 0, NULL);
tools/perf/ui/gtk/hists.c
583
perf_gtk__add_hierarchy_entries(hists, &hists->entries, store,
tools/perf/ui/gtk/hists.c
635
struct hists *hists = evsel__hists(pos);
tools/perf/ui/gtk/hists.c
659
perf_gtk__show_hierarchy(scrolled_window, hists, min_pcnt);
tools/perf/ui/gtk/hists.c
661
perf_gtk__show_hists(scrolled_window, hists, min_pcnt);
tools/perf/ui/hist.c
103
values[i].hists->stats.nr_samples == 0)
tools/perf/ui/hist.c
1040
unsigned int hists__sort_list_width(struct hists *hists)
tools/perf/ui/hist.c
1047
hists__for_each_format(hists, fmt) {
tools/perf/ui/hist.c
1048
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/hist.c
1056
ret += fmt->width(fmt, &dummy_hpp, hists);
tools/perf/ui/hist.c
1059
if (verbose > 0 && hists__has(hists, sym)) /* Addr + origin */
tools/perf/ui/hist.c
106
ret += __hpp__fmt_print(hpp, values[i].hists, values[i].val,
tools/perf/ui/hist.c
1065
unsigned int hists__overhead_width(struct hists *hists)
tools/perf/ui/hist.c
1072
hists__for_each_format(hists, fmt) {
tools/perf/ui/hist.c
1081
ret += fmt->width(fmt, &dummy_hpp, hists);
tools/perf/ui/hist.c
1087
void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists)
tools/perf/ui/hist.c
1090
return perf_hpp__reset_sort_width(fmt, hists);
tools/perf/ui/hist.c
1135
void hists__reset_column_width(struct hists *hists)
tools/perf/ui/hist.c
1140
hists__for_each_format(hists, fmt)
tools/perf/ui/hist.c
1141
perf_hpp__reset_width(fmt, hists);
tools/perf/ui/hist.c
1144
list_for_each_entry(node, &hists->hpp_formats, list) {
tools/perf/ui/hist.c
1146
perf_hpp__reset_width(fmt, hists);
tools/perf/ui/hist.c
1168
static int add_hierarchy_fmt(struct hists *hists, struct perf_hpp_fmt *fmt)
tools/perf/ui/hist.c
1173
bool skip = perf_hpp__should_skip(fmt, hists);
tools/perf/ui/hist.c
1175
list_for_each_entry(node, &hists->hpp_formats, list) {
tools/perf/ui/hist.c
1191
hists->nr_hpp_node++;
tools/perf/ui/hist.c
1192
list_add_tail(&node->list, &hists->hpp_formats);
tools/perf/ui/hist.c
1213
struct hists *hists;
tools/perf/ui/hist.c
1220
hists = evsel__hists(evsel);
tools/perf/ui/hist.c
1224
!perf_hpp__defined_dynamic_entry(fmt, hists))
tools/perf/ui/hist.c
1227
ret = add_hierarchy_fmt(hists, fmt);
tools/perf/ui/hist.c
1257
struct hists *hists = evsel__hists(evsel);
tools/perf/ui/hist.c
1259
hists->mem_stat_types = calloc(nr_mem_stats,
tools/perf/ui/hist.c
1260
sizeof(*hists->mem_stat_types));
tools/perf/ui/hist.c
1261
if (hists->mem_stat_types == NULL)
tools/perf/ui/hist.c
1264
hists->mem_stat_total = calloc(nr_mem_stats,
tools/perf/ui/hist.c
1265
sizeof(*hists->mem_stat_total));
tools/perf/ui/hist.c
1266
if (hists->mem_stat_total == NULL)
tools/perf/ui/hist.c
1269
memcpy(hists->mem_stat_types, mst, nr_mem_stats * sizeof(*mst));
tools/perf/ui/hist.c
1270
hists->nr_mem_stats = nr_mem_stats;
tools/perf/ui/hist.c
160
struct hists *hists = he->hists;
tools/perf/ui/hist.c
167
for (int i = 0; i < hists->nr_mem_stats; i++) {
tools/perf/ui/hist.c
168
if (hists->mem_stat_types[i] == mst) {
tools/perf/ui/hist.c
176
total += hists->mem_stat_total[mem_stat_idx].entries[i];
tools/perf/ui/hist.c
182
if (hists->mem_stat_total[mem_stat_idx].entries[i] == 0)
tools/perf/ui/hist.c
219
struct evsel *evsel = hists_to_evsel(pair->hists);
tools/perf/ui/hist.c
224
struct evsel *evsel = hists_to_evsel(pair->hists);
tools/perf/ui/hist.c
241
struct evsel *evsel = hists_to_evsel(a->hists);
tools/perf/ui/hist.c
29
static int __hpp__fmt_print(struct perf_hpp *hpp, struct hists *hists, u64 val,
tools/perf/ui/hist.c
295
evsel = hists_to_evsel(a->hists);
tools/perf/ui/hist.c
35
u64 total = fmtype == PERF_HPP_FMT_TYPE__PERCENT ? hists__total_period(hists) :
tools/perf/ui/hist.c
36
hists__total_latency(hists);
tools/perf/ui/hist.c
375
struct hists *hists)
tools/perf/ui/hist.c
378
struct evsel *evsel = hists_to_evsel(hists);
tools/perf/ui/hist.c
400
struct hists *hists, int line,
tools/perf/ui/hist.c
403
int len = hpp__width_fn(fmt, hpp, hists);
tools/perf/ui/hist.c
406
if (line == hists->hpp_list->nr_header_lines - 1)
tools/perf/ui/hist.c
413
struct hists *hists, int line,
tools/perf/ui/hist.c
422
for (int i = 0; i < hists->nr_mem_stats; i++) {
tools/perf/ui/hist.c
423
if (hists->mem_stat_types[i] == mst) {
tools/perf/ui/hist.c
436
if (hists->mem_stat_total[mem_stat_idx].entries[i])
tools/perf/ui/hist.c
462
if (hists->mem_stat_total[mem_stat_idx].entries[i] == 0)
tools/perf/ui/hist.c
54
struct hists *hists;
tools/perf/ui/hist.c
64
struct hists *hists = he->hists;
tools/perf/ui/hist.c
65
struct evsel *evsel = hists_to_evsel(hists);
tools/perf/ui/hist.c
79
values[0].hists = evsel__hists(evsel);
tools/perf/ui/hist.c
87
values[++i].hists = evsel__hists(pos);
tools/perf/ui/hist.c
91
if (values[i].hists != pair->hists)
tools/perf/ui/hist.c
933
struct hists *hists = evsel__hists(evsel);
tools/perf/ui/hist.c
936
list_for_each_entry(node, &hists->hpp_formats, list) {
tools/perf/ui/hist.c
969
struct hists *hists = evsel__hists(evsel);
tools/perf/ui/hist.c
972
list_for_each_entry(node, &hists->hpp_formats, list) {
tools/perf/ui/stdio/hist.c
431
if (perf_hpp__should_skip(fmt, he->hists))
tools/perf/ui/stdio/hist.c
458
return __hist_entry__snprintf(he, hpp, he->hists->hpp_list);
tools/perf/ui/stdio/hist.c
463
struct hists *hists,
tools/perf/ui/stdio/hist.c
481
fmt_node = list_first_entry(&hists->hpp_formats,
tools/perf/ui/stdio/hist.c
505
(hists->nr_hpp_node - 2) * HIERARCHY_INDENT, "");
tools/perf/ui/stdio/hist.c
532
u64 total = hists__total_period(hists);
tools/perf/ui/stdio/hist.c
595
struct hists *hists = he->hists;
tools/perf/ui/stdio/hist.c
596
u64 total_period = hists->stats.total_period;
tools/perf/ui/stdio/hist.c
602
return hist_entry__hierarchy_fprintf(he, &hpp, hists, fp);
tools/perf/ui/stdio/hist.c
636
static int hists__fprintf_hierarchy_headers(struct hists *hists,
tools/perf/ui/stdio/hist.c
646
struct perf_hpp_list *hpp_list = hists->hpp_list;
tools/perf/ui/stdio/hist.c
649
indent = hists->nr_hpp_node;
tools/perf/ui/stdio/hist.c
652
fmt_node = list_first_entry(&hists->hpp_formats,
tools/perf/ui/stdio/hist.c
664
fmt->header(fmt, hpp, hists, line, NULL);
tools/perf/ui/stdio/hist.c
673
list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) {
tools/perf/ui/stdio/hist.c
680
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/stdio/hist.c
687
fmt->header(fmt, hpp, hists, line, NULL);
tools/perf/ui/stdio/hist.c
703
fmt_node = list_first_entry(&hists->hpp_formats,
tools/perf/ui/stdio/hist.c
712
width = fmt->width(fmt, hpp, hists);
tools/perf/ui/stdio/hist.c
717
list_for_each_entry_continue(fmt_node, &hists->hpp_formats, list) {
tools/perf/ui/stdio/hist.c
722
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/stdio/hist.c
729
width += fmt->width(fmt, hpp, hists);
tools/perf/ui/stdio/hist.c
745
static void fprintf_line(struct hists *hists, struct perf_hpp *hpp,
tools/perf/ui/stdio/hist.c
753
hists__for_each_format(hists, fmt) {
tools/perf/ui/stdio/hist.c
754
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/stdio/hist.c
762
fmt->header(fmt, hpp, hists, line, &span);
tools/perf/ui/stdio/hist.c
770
hists__fprintf_standard_headers(struct hists *hists,
tools/perf/ui/stdio/hist.c
774
struct perf_hpp_list *hpp_list = hists->hpp_list;
tools/perf/ui/stdio/hist.c
785
fprintf_line(hists, hpp, line, fp);
tools/perf/ui/stdio/hist.c
796
hists__for_each_format(hists, fmt) {
tools/perf/ui/stdio/hist.c
799
if (perf_hpp__should_skip(fmt, hists))
tools/perf/ui/stdio/hist.c
807
width = fmt->width(fmt, hpp, hists);
tools/perf/ui/stdio/hist.c
817
int hists__fprintf_headers(struct hists *hists, FILE *fp)
tools/perf/ui/stdio/hist.c
828
return hists__fprintf_hierarchy_headers(hists, &dummy_hpp, fp);
tools/perf/ui/stdio/hist.c
830
return hists__fprintf_standard_headers(hists, &dummy_hpp, fp);
tools/perf/ui/stdio/hist.c
834
size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows,
tools/perf/ui/stdio/hist.c
848
hists__reset_column_width(hists);
tools/perf/ui/stdio/hist.c
854
nr_rows += hists__fprintf_headers(hists, fp);
tools/perf/ui/stdio/hist.c
859
linesz = hists__sort_list_width(hists) + 3 + 1;
tools/perf/ui/stdio/hist.c
867
indent = hists__overhead_width(hists) + 4;
tools/perf/ui/stdio/hist.c
869
for (nd = rb_first_cached(&hists->entries); nd;
tools/perf/ui/stdio/hist.c
895
int depth = hists->nr_hpp_node + h->depth + 1;
tools/perf/util/annotate.c
1670
struct hists *hists = evsel__hists(evsel);
tools/perf/util/annotate.c
1694
hists__scnprintf_title(hists, buf, sizeof(buf));
tools/perf/util/annotate.c
2870
struct evsel *evsel = hists_to_evsel(he->hists);
tools/perf/util/annotate.c
2897
struct evsel *evsel = hists_to_evsel(he->hists);
tools/perf/util/annotate.c
914
struct hists *hists = evsel__hists(evsel);
tools/perf/util/annotate.c
936
if (hists->stats.nr_non_filtered_samples)
tools/perf/util/annotate.c
937
data->percent[PERCENT_HITS_GLOBAL] = 100.0 * hits / hists->stats.nr_non_filtered_samples;
tools/perf/util/annotate.c
942
if (hists->stats.total_period)
tools/perf/util/annotate.c
943
data->percent[PERCENT_PERIOD_GLOBAL] = 100.0 * period / hists->stats.total_period;
tools/perf/util/block-info.c
160
hists_to_evsel(he->hists));
tools/perf/util/block-info.c
180
struct hists *hists __maybe_unused,
tools/perf/util/block-info.c
192
struct hists *hists __maybe_unused)
tools/perf/util/block-info.c
438
static int process_block_report(struct hists *hists,
tools/perf/util/block-info.c
443
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/util/block-info.c
483
struct hists *hists = evsel__hists(pos);
tools/perf/util/block-info.c
485
process_block_report(hists, &block_reports[i], total_cycles,
tools/perf/util/callchain.c
1842
u64 callchain_total_hits(struct hists *hists)
tools/perf/util/callchain.c
1844
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/util/callchain.h
12
struct hists;
tools/perf/util/callchain.h
302
u64 callchain_total_hits(struct hists *hists);
tools/perf/util/hist.c
103
hists__new_col_len(hists, HISTC_SYMBOL, symlen);
tools/perf/util/hist.c
1041
struct hists *hists = evsel__hists(evsel);
tools/perf/util/hist.c
1058
he = hists__add_entry(hists, al, iter->parent, &bi[i], NULL, NULL,
tools/perf/util/hist.c
106
hists__new_col_len(hists, HISTC_SYMBOL, symlen);
tools/perf/util/hist.c
107
hists__set_unres_dso_col_len(hists, HISTC_DSO);
tools/perf/util/hist.c
1082
struct hists *hists = evsel__hists(evsel);
tools/perf/util/hist.c
1088
hists__inc_nr_samples(hists, iter->he->filtered);
tools/perf/util/hist.c
111
if (hists__new_col_len(hists, HISTC_COMM, len))
tools/perf/util/hist.c
112
hists__set_col_len(hists, HISTC_THREAD, len + 8);
tools/perf/util/hist.c
113
if (hists->hpp_list->comm_nodigit)
tools/perf/util/hist.c
114
hists__new_col_len(hists, HISTC_COMM_NODIGIT,
tools/perf/util/hist.c
1170
struct hists *hists = evsel__hists(evsel);
tools/perf/util/hist.c
1175
he = hists__add_entry(hists, al, iter->parent, NULL, NULL, NULL,
tools/perf/util/hist.c
119
hists__new_col_len(hists, HISTC_DSO, len);
tools/perf/util/hist.c
1191
hists__inc_nr_samples(hists, he->filtered);
tools/perf/util/hist.c
123
hists__new_col_len(hists, HISTC_PARENT, h->parent->namelen);
tools/perf/util/hist.c
1232
.hists = evsel__hists(evsel),
tools/perf/util/hist.c
1249
bool fast = hists__has(he_tmp.hists, sym);
tools/perf/util/hist.c
130
hists__new_col_len(hists, HISTC_SYMBOL_FROM, symlen);
tools/perf/util/hist.c
133
hists__new_col_len(hists, HISTC_DSO_FROM, symlen);
tools/perf/util/hist.c
136
hists__new_col_len(hists, HISTC_SYMBOL_FROM, symlen);
tools/perf/util/hist.c
137
hists__new_col_len(hists, HISTC_ADDR_FROM, symlen);
tools/perf/util/hist.c
138
hists__set_unres_dso_col_len(hists, HISTC_DSO_FROM);
tools/perf/util/hist.c
1392
struct hists *hists = left->hists;
tools/perf/util/hist.c
1408
!perf_hpp__defined_dynamic_entry(fmt, hists))
tools/perf/util/hist.c
1411
if (ignore_skipped && perf_hpp__should_skip(fmt, hists))
tools/perf/util/hist.c
1426
return hist_entry__cmp_impl(left->hists->hpp_list, left, right,
tools/perf/util/hist.c
1433
return hist_entry__cmp_impl(left->hists->hpp_list, left, right,
tools/perf/util/hist.c
1440
return hist_entry__cmp_impl(left->hists->hpp_list, left, right,
tools/perf/util/hist.c
145
hists__new_col_len(hists, HISTC_SYMBOL_TO, symlen);
tools/perf/util/hist.c
148
hists__new_col_len(hists, HISTC_DSO_TO, symlen);
tools/perf/util/hist.c
1509
if (!list_is_last(&fmt->list, &he->hists->hpp_list->fields)) {
tools/perf/util/hist.c
151
hists__new_col_len(hists, HISTC_SYMBOL_TO, symlen);
tools/perf/util/hist.c
1510
const int width = fmt->width(fmt, hpp, he->hists);
tools/perf/util/hist.c
152
hists__new_col_len(hists, HISTC_ADDR_TO, symlen);
tools/perf/util/hist.c
1524
static void hists__apply_filters(struct hists *hists, struct hist_entry *he);
tools/perf/util/hist.c
1525
static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *he,
tools/perf/util/hist.c
153
hists__set_unres_dso_col_len(hists, HISTC_DSO_TO);
tools/perf/util/hist.c
157
hists__new_col_len(hists, HISTC_SRCLINE_FROM,
tools/perf/util/hist.c
160
hists__new_col_len(hists, HISTC_SRCLINE_TO,
tools/perf/util/hist.c
1623
hists__apply_filters(he->hists, he);
tools/perf/util/hist.c
1626
static struct hist_entry *hierarchy_insert_entry(struct hists *hists,
tools/perf/util/hist.c
1645
hists__add_mem_stat(hists, iter, he);
tools/perf/util/hist.c
1661
hists->nr_entries++;
tools/perf/util/hist.c
168
hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL,
tools/perf/util/hist.c
1687
if (hists__clone_mem_stat(hists, new, he) < 0) {
tools/perf/util/hist.c
1697
static int hists__hierarchy_insert_entry(struct hists *hists,
tools/perf/util/hist.c
170
hists__new_col_len(hists, HISTC_MEM_DCACHELINE,
tools/perf/util/hist.c
1707
list_for_each_entry(node, &hists->hpp_formats, list) {
tools/perf/util/hist.c
1713
new_he = hierarchy_insert_entry(hists, root, he, parent, &node->hpp);
tools/perf/util/hist.c
174
hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL,
tools/perf/util/hist.c
1749
static int hists__collapse_insert_entry(struct hists *hists,
tools/perf/util/hist.c
176
hists__new_col_len(hists, HISTC_MEM_DCACHELINE,
tools/perf/util/hist.c
1760
return hists__hierarchy_insert_entry(hists, root, he);
tools/perf/util/hist.c
1774
hists__add_mem_stat(hists, iter, he);
tools/perf/util/hist.c
1798
hists->nr_entries++;
tools/perf/util/hist.c
1805
struct rb_root_cached *hists__get_rotate_entries_in(struct hists *hists)
tools/perf/util/hist.c
1809
mutex_lock(&hists->lock);
tools/perf/util/hist.c
1811
root = hists->entries_in;
tools/perf/util/hist.c
1812
if (++hists->entries_in > &hists->entries_in_array[1])
tools/perf/util/hist.c
1813
hists->entries_in = &hists->entries_in_array[0];
tools/perf/util/hist.c
1815
mutex_unlock(&hists->lock);
tools/perf/util/hist.c
1820
static void hists__apply_filters(struct hists *hists, struct hist_entry *he)
tools/perf/util/hist.c
1822
hists__filter_entry_by_dso(hists, he);
tools/perf/util/hist.c
1823
hists__filter_entry_by_thread(hists, he);
tools/perf/util/hist.c
1824
hists__filter_entry_by_symbol(hists, he);
tools/perf/util/hist.c
1825
hists__filter_entry_by_socket(hists, he);
tools/perf/util/hist.c
1826
hists__filter_entry_by_parallelism(hists, he);
tools/perf/util/hist.c
1829
int hists__collapse_resort(struct hists *hists, struct ui_progress *prog)
tools/perf/util/hist.c
183
hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL,
tools/perf/util/hist.c
1836
if (!hists__has(hists, need_collapse))
tools/perf/util/hist.c
1839
hists->nr_entries = 0;
tools/perf/util/hist.c
1841
root = hists__get_rotate_entries_in(hists);
tools/perf/util/hist.c
1852
ret = hists__collapse_insert_entry(hists, &hists->entries_collapsed, n);
tools/perf/util/hist.c
1862
hists__apply_filters(hists, n);
tools/perf/util/hist.c
187
hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL,
tools/perf/util/hist.c
1870
static void hists__reset_filter_stats(struct hists *hists)
tools/perf/util/hist.c
1872
hists->nr_non_filtered_entries = 0;
tools/perf/util/hist.c
1873
hists->stats.total_non_filtered_period = 0;
tools/perf/util/hist.c
1874
hists->stats.total_non_filtered_latency = 0;
tools/perf/util/hist.c
1877
void hists__reset_stats(struct hists *hists)
tools/perf/util/hist.c
1879
hists->nr_entries = 0;
tools/perf/util/hist.c
1880
hists->stats.total_period = 0;
tools/perf/util/hist.c
1881
hists->stats.total_latency = 0;
tools/perf/util/hist.c
1883
hists__reset_filter_stats(hists);
tools/perf/util/hist.c
1886
static void hists__inc_filter_stats(struct hists *hists, struct hist_entry *h)
tools/perf/util/hist.c
1888
hists->nr_non_filtered_entries++;
tools/perf/util/hist.c
1889
hists->stats.total_non_filtered_period += h->stat.period;
tools/perf/util/hist.c
1890
hists->stats.total_non_filtered_latency += h->stat.latency;
tools/perf/util/hist.c
1893
void hists__inc_stats(struct hists *hists, struct hist_entry *h)
tools/perf/util/hist.c
1896
hists__inc_filter_stats(hists, h);
tools/perf/util/hist.c
1898
hists->nr_entries++;
tools/perf/util/hist.c
1899
hists->stats.total_period += h->stat.period;
tools/perf/util/hist.c
1900
hists->stats.total_latency += h->stat.latency;
tools/perf/util/hist.c
1903
static void hierarchy_recalc_total_periods(struct hists *hists)
tools/perf/util/hist.c
1908
node = rb_first_cached(&hists->entries);
tools/perf/util/hist.c
1910
hists->stats.total_period = 0;
tools/perf/util/hist.c
1911
hists->stats.total_non_filtered_period = 0;
tools/perf/util/hist.c
1912
hists->stats.total_latency = 0;
tools/perf/util/hist.c
1913
hists->stats.total_non_filtered_latency = 0;
tools/perf/util/hist.c
1924
hists->stats.total_period += he->stat.period;
tools/perf/util/hist.c
1925
hists->stats.total_latency += he->stat.latency;
tools/perf/util/hist.c
1927
hists->stats.total_non_filtered_period += he->stat.period;
tools/perf/util/hist.c
1928
hists->stats.total_non_filtered_latency += he->stat.latency;
tools/perf/util/hist.c
193
hists__new_col_len(hists, HISTC_MEM_DADDR_DSO,
tools/perf/util/hist.c
1964
static void hists__hierarchy_output_resort(struct hists *hists,
tools/perf/util/hist.c
197
hists__set_unres_dso_col_len(hists, HISTC_MEM_DADDR_DSO);
tools/perf/util/hist.c
1986
hists->nr_entries++;
tools/perf/util/hist.c
1988
hists->nr_non_filtered_entries++;
tools/perf/util/hist.c
1989
hists__calc_col_len(hists, he);
tools/perf/util/hist.c
1993
hists__hierarchy_output_resort(hists, prog,
tools/perf/util/hist.c
200
hists__new_col_len(hists, HISTC_MEM_PHYS_DADDR,
tools/perf/util/hist.c
203
hists__new_col_len(hists, HISTC_MEM_DATA_PAGE_SIZE,
tools/perf/util/hist.c
2064
static void output_resort(struct hists *hists, struct ui_progress *prog,
tools/perf/util/hist.c
2074
callchain_total = hists->callchain_period;
tools/perf/util/hist.c
2076
callchain_total = hists->callchain_non_filtered_period;
tools/perf/util/hist.c
208
hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL, symlen);
tools/perf/util/hist.c
2080
hists__reset_stats(hists);
tools/perf/util/hist.c
2081
hists__reset_col_len(hists);
tools/perf/util/hist.c
2084
hists__hierarchy_output_resort(hists, prog,
tools/perf/util/hist.c
2085
&hists->entries_collapsed,
tools/perf/util/hist.c
2086
&hists->entries,
tools/perf/util/hist.c
2089
hierarchy_recalc_total_periods(hists);
tools/perf/util/hist.c
209
hists__new_col_len(hists, HISTC_MEM_IADDR_SYMBOL, symlen);
tools/perf/util/hist.c
2093
if (hists__has(hists, need_collapse))
tools/perf/util/hist.c
2094
root = &hists->entries_collapsed;
tools/perf/util/hist.c
2096
root = hists->entries_in;
tools/perf/util/hist.c
2099
hists->entries = RB_ROOT_CACHED;
tools/perf/util/hist.c
210
hists__set_unres_dso_col_len(hists, HISTC_MEM_DADDR_DSO);
tools/perf/util/hist.c
2108
__hists__insert_output_entry(&hists->entries, n, min_callchain_hits, use_callchain);
tools/perf/util/hist.c
2109
hists__inc_stats(hists, n);
tools/perf/util/hist.c
2112
hists__calc_col_len(hists, n);
tools/perf/util/hist.c
213
hists__new_col_len(hists, HISTC_CGROUP, 6);
tools/perf/util/hist.c
2139
void hists__output_resort(struct hists *hists, struct ui_progress *prog)
tools/perf/util/hist.c
214
hists__new_col_len(hists, HISTC_CGROUP_ID, 20);
tools/perf/util/hist.c
2141
output_resort(hists, prog, symbol_conf.use_callchain, NULL, NULL);
tools/perf/util/hist.c
2144
void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
tools/perf/util/hist.c
2147
output_resort(hists, prog, symbol_conf.use_callchain, cb, NULL);
tools/perf/util/hist.c
215
hists__new_col_len(hists, HISTC_PARALLELISM, 11);
tools/perf/util/hist.c
216
hists__new_col_len(hists, HISTC_CPU, 3);
tools/perf/util/hist.c
217
hists__new_col_len(hists, HISTC_SOCKET, 6);
tools/perf/util/hist.c
218
hists__new_col_len(hists, HISTC_MEM_LOCKED, 6);
tools/perf/util/hist.c
219
hists__new_col_len(hists, HISTC_MEM_TLB, 22);
tools/perf/util/hist.c
220
hists__new_col_len(hists, HISTC_MEM_SNOOP, 12);
tools/perf/util/hist.c
221
hists__new_col_len(hists, HISTC_MEM_LVL, 36 + 3);
tools/perf/util/hist.c
222
hists__new_col_len(hists, HISTC_LOCAL_WEIGHT, 12);
tools/perf/util/hist.c
223
hists__new_col_len(hists, HISTC_GLOBAL_WEIGHT, 12);
tools/perf/util/hist.c
2231
static void hists__remove_entry_filter(struct hists *hists, struct hist_entry *h,
tools/perf/util/hist.c
224
hists__new_col_len(hists, HISTC_MEM_BLOCKED, 10);
tools/perf/util/hist.c
225
hists__new_col_len(hists, HISTC_LOCAL_INS_LAT, 13);
tools/perf/util/hist.c
226
hists__new_col_len(hists, HISTC_GLOBAL_INS_LAT, 13);
tools/perf/util/hist.c
2266
hists->stats.nr_non_filtered_samples += h->stat.nr_events;
tools/perf/util/hist.c
2268
hists__inc_filter_stats(hists, h);
tools/perf/util/hist.c
2269
hists__calc_col_len(hists, h);
tools/perf/util/hist.c
227
hists__new_col_len(hists, HISTC_LOCAL_P_STAGE_CYC, 13);
tools/perf/util/hist.c
2273
static bool hists__filter_entry_by_dso(struct hists *hists,
tools/perf/util/hist.c
2276
if (hists->dso_filter != NULL &&
tools/perf/util/hist.c
2277
(he->ms.map == NULL || !RC_CHK_EQUAL(map__dso(he->ms.map), hists->dso_filter))) {
tools/perf/util/hist.c
228
hists__new_col_len(hists, HISTC_GLOBAL_P_STAGE_CYC, 13);
tools/perf/util/hist.c
2285
static bool hists__filter_entry_by_thread(struct hists *hists,
tools/perf/util/hist.c
2288
if (hists->thread_filter != NULL &&
tools/perf/util/hist.c
2289
!RC_CHK_EQUAL(he->thread, hists->thread_filter)) {
tools/perf/util/hist.c
229
hists__new_col_len(hists, HISTC_ADDR, BITS_PER_LONG / 4 + 2);
tools/perf/util/hist.c
2297
static bool hists__filter_entry_by_symbol(struct hists *hists,
tools/perf/util/hist.c
230
hists__new_col_len(hists, HISTC_CALLCHAIN_BRANCH_PREDICTED, 9);
tools/perf/util/hist.c
2300
if (hists->symbol_filter_str != NULL &&
tools/perf/util/hist.c
2302
hists->symbol_filter_str) == NULL)) {
tools/perf/util/hist.c
231
hists__new_col_len(hists, HISTC_CALLCHAIN_BRANCH_ABORT, 5);
tools/perf/util/hist.c
2310
static bool hists__filter_entry_by_socket(struct hists *hists,
tools/perf/util/hist.c
2313
if ((hists->socket_filter > -1) &&
tools/perf/util/hist.c
2314
(he->socket != hists->socket_filter)) {
tools/perf/util/hist.c
232
hists__new_col_len(hists, HISTC_CALLCHAIN_BRANCH_CYCLES, 6);
tools/perf/util/hist.c
2322
static bool hists__filter_entry_by_parallelism(struct hists *hists,
tools/perf/util/hist.c
2325
if (test_bit(he->parallelism, hists->parallelism_filter)) {
tools/perf/util/hist.c
2332
typedef bool (*filter_fn_t)(struct hists *hists, struct hist_entry *he);
tools/perf/util/hist.c
2334
static void hists__filter_by_type(struct hists *hists, int type, filter_fn_t filter)
tools/perf/util/hist.c
2338
hists->stats.nr_non_filtered_samples = 0;
tools/perf/util/hist.c
2340
hists__reset_filter_stats(hists);
tools/perf/util/hist.c
2341
hists__reset_col_len(hists);
tools/perf/util/hist.c
2343
for (nd = rb_first_cached(&hists->entries); nd; nd = rb_next(nd)) {
tools/perf/util/hist.c
2346
if (filter(hists, h))
tools/perf/util/hist.c
2349
hists__remove_entry_filter(hists, h, type);
tools/perf/util/hist.c
235
hists__new_col_len(hists, HISTC_TIME, 16);
tools/perf/util/hist.c
237
hists__new_col_len(hists, HISTC_TIME, 12);
tools/perf/util/hist.c
238
hists__new_col_len(hists, HISTC_CODE_PAGE_SIZE, 6);
tools/perf/util/hist.c
2394
static void hists__filter_hierarchy(struct hists *hists, int type, const void *arg)
tools/perf/util/hist.c
2399
hists->stats.nr_non_filtered_samples = 0;
tools/perf/util/hist.c
2401
hists__reset_filter_stats(hists);
tools/perf/util/hist.c
2402
hists__reset_col_len(hists);
tools/perf/util/hist.c
2404
nd = rb_first_cached(&hists->entries);
tools/perf/util/hist.c
242
hists__new_col_len(hists, HISTC_SRCLINE, len);
tools/perf/util/hist.c
2436
hists__remove_entry_filter(hists, h, type);
tools/perf/util/hist.c
2442
hierarchy_recalc_total_periods(hists);
tools/perf/util/hist.c
2448
nd = rb_first_cached(&hists->entries);
tools/perf/util/hist.c
2453
rb_erase_cached(&h->rb_node, &hists->entries);
tools/perf/util/hist.c
2458
hists->entries = new_root;
tools/perf/util/hist.c
246
hists__new_col_len(hists, HISTC_SRCFILE, strlen(h->srcfile));
tools/perf/util/hist.c
2461
void hists__filter_by_thread(struct hists *hists)
tools/perf/util/hist.c
2464
hists__filter_hierarchy(hists, HIST_FILTER__THREAD,
tools/perf/util/hist.c
2465
hists->thread_filter);
tools/perf/util/hist.c
2467
hists__filter_by_type(hists, HIST_FILTER__THREAD,
tools/perf/util/hist.c
2471
void hists__filter_by_dso(struct hists *hists)
tools/perf/util/hist.c
2474
hists__filter_hierarchy(hists, HIST_FILTER__DSO,
tools/perf/util/hist.c
2475
hists->dso_filter);
tools/perf/util/hist.c
2477
hists__filter_by_type(hists, HIST_FILTER__DSO,
tools/perf/util/hist.c
2481
void hists__filter_by_symbol(struct hists *hists)
tools/perf/util/hist.c
2484
hists__filter_hierarchy(hists, HIST_FILTER__SYMBOL,
tools/perf/util/hist.c
2485
hists->symbol_filter_str);
tools/perf/util/hist.c
2487
hists__filter_by_type(hists, HIST_FILTER__SYMBOL,
tools/perf/util/hist.c
249
hists__new_col_len(hists, HISTC_TRANSACTION,
tools/perf/util/hist.c
2491
void hists__filter_by_socket(struct hists *hists)
tools/perf/util/hist.c
2494
hists__filter_hierarchy(hists, HIST_FILTER__SOCKET,
tools/perf/util/hist.c
2495
&hists->socket_filter);
tools/perf/util/hist.c
2497
hists__filter_by_type(hists, HIST_FILTER__SOCKET,
tools/perf/util/hist.c
2501
void hists__filter_by_parallelism(struct hists *hists)
tools/perf/util/hist.c
2504
hists__filter_hierarchy(hists, HIST_FILTER__PARALLELISM,
tools/perf/util/hist.c
2505
hists->parallelism_filter);
tools/perf/util/hist.c
2507
hists__filter_by_type(hists, HIST_FILTER__PARALLELISM,
tools/perf/util/hist.c
2522
void hists__inc_nr_events(struct hists *hists)
tools/perf/util/hist.c
2524
hists_stats__inc(&hists->stats);
tools/perf/util/hist.c
2527
void hists__inc_nr_samples(struct hists *hists, bool filtered)
tools/perf/util/hist.c
2529
hists_stats__inc(&hists->stats);
tools/perf/util/hist.c
253
hists__new_col_len(hists, HISTC_TRACE, strlen(h->trace_output));
tools/perf/util/hist.c
2531
hists->stats.nr_non_filtered_samples++;
tools/perf/util/hist.c
2534
void hists__inc_nr_lost_samples(struct hists *hists, u32 lost)
tools/perf/util/hist.c
2536
hists->stats.nr_lost_samples += lost;
tools/perf/util/hist.c
2539
void hists__inc_nr_dropped_samples(struct hists *hists, u32 lost)
tools/perf/util/hist.c
2541
hists->stats.nr_dropped_samples += lost;
tools/perf/util/hist.c
2544
static struct hist_entry *hists__add_dummy_entry(struct hists *hists,
tools/perf/util/hist.c
2554
if (hists__has(hists, need_collapse))
tools/perf/util/hist.c
2555
root = &hists->entries_collapsed;
tools/perf/util/hist.c
2557
root = hists->entries_in;
tools/perf/util/hist.c
2581
he->hists = hists;
tools/perf/util/hist.c
2586
hists__inc_stats(hists, he);
tools/perf/util/hist.c
2593
static struct hist_entry *add_dummy_hierarchy_entry(struct hists *hists,
tools/perf/util/hist.c
262
hists__new_col_len(hists, HISTC_CGROUP, strlen(cgrp_name));
tools/perf/util/hist.c
2626
he->hists = hists;
tools/perf/util/hist.c
2628
hists__inc_stats(hists, he);
tools/perf/util/hist.c
2634
static struct hist_entry *hists__find_entry(struct hists *hists,
tools/perf/util/hist.c
2639
if (hists__has(hists, need_collapse))
tools/perf/util/hist.c
2640
n = hists->entries_collapsed.rb_root.rb_node;
tools/perf/util/hist.c
2642
n = hists->entries_in->rb_root.rb_node;
tools/perf/util/hist.c
266
void hists__output_recalc_col_len(struct hists *hists, int max_rows)
tools/perf/util/hist.c
268
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/util/hist.c
2701
void hists__match(struct hists *leader, struct hists *other)
tools/perf/util/hist.c
272
hists__reset_col_len(hists);
tools/perf/util/hist.c
2727
static int hists__link_hierarchy(struct hists *leader_hists,
tools/perf/util/hist.c
2742
if (leader->hists == leader_hists) {
tools/perf/util/hist.c
277
hists__calc_col_len(hists, n);
tools/perf/util/hist.c
2776
int hists__link(struct hists *leader, struct hists *other)
tools/perf/util/hist.c
2808
int hists__unlink(struct hists *hists)
tools/perf/util/hist.c
2814
if (hists__has(hists, need_collapse))
tools/perf/util/hist.c
2815
root = &hists->entries_collapsed;
tools/perf/util/hist.c
2817
root = hists->entries_in;
tools/perf/util/hist.c
2875
struct hists *hists = evsel__hists(pos);
tools/perf/util/hist.c
2876
u64 total_samples = hists->stats.nr_samples;
tools/perf/util/hist.c
2878
total_samples += hists->stats.nr_lost_samples;
tools/perf/util/hist.c
2879
total_samples += hists->stats.nr_dropped_samples;
tools/perf/util/hist.c
2885
if (hists->stats.nr_samples)
tools/perf/util/hist.c
2887
"SAMPLE", hists->stats.nr_samples);
tools/perf/util/hist.c
2888
if (hists->stats.nr_lost_samples)
tools/perf/util/hist.c
2890
"LOST_SAMPLES", hists->stats.nr_lost_samples);
tools/perf/util/hist.c
2891
if (hists->stats.nr_dropped_samples)
tools/perf/util/hist.c
2893
"LOST_SAMPLES (BPF)", hists->stats.nr_dropped_samples);
tools/perf/util/hist.c
2900
u64 hists__total_period(struct hists *hists)
tools/perf/util/hist.c
2902
return symbol_conf.filter_relative ? hists->stats.total_non_filtered_period :
tools/perf/util/hist.c
2903
hists->stats.total_period;
tools/perf/util/hist.c
2906
u64 hists__total_latency(struct hists *hists)
tools/perf/util/hist.c
2908
return symbol_conf.filter_relative ? hists->stats.total_non_filtered_latency :
tools/perf/util/hist.c
2909
hists->stats.total_latency;
tools/perf/util/hist.c
2912
int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq)
tools/perf/util/hist.c
2916
const struct dso *dso = hists->dso_filter;
tools/perf/util/hist.c
2917
struct thread *thread = hists->thread_filter;
tools/perf/util/hist.c
2918
int socket_id = hists->socket_filter;
tools/perf/util/hist.c
2919
unsigned long nr_samples = hists->stats.nr_samples;
tools/perf/util/hist.c
2920
u64 nr_events = hists->stats.total_period;
tools/perf/util/hist.c
2921
struct evsel *evsel = hists_to_evsel(hists);
tools/perf/util/hist.c
2929
nr_samples = hists->stats.nr_non_filtered_samples;
tools/perf/util/hist.c
2930
nr_events = hists->stats.total_non_filtered_period;
tools/perf/util/hist.c
2940
struct hists *pos_hists = evsel__hists(pos);
tools/perf/util/hist.c
2966
if (hists->uid_filter_str) {
tools/perf/util/hist.c
2968
", UID: %s", hists->uid_filter_str);
tools/perf/util/hist.c
2971
if (hists__has(hists, thread)) {
tools/perf/util/hist.c
3015
int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list)
tools/perf/util/hist.c
3017
memset(hists, 0, sizeof(*hists));
tools/perf/util/hist.c
3018
hists->entries_in_array[0] = hists->entries_in_array[1] = RB_ROOT_CACHED;
tools/perf/util/hist.c
3019
hists->entries_in = &hists->entries_in_array[0];
tools/perf/util/hist.c
3020
hists->entries_collapsed = RB_ROOT_CACHED;
tools/perf/util/hist.c
3021
hists->entries = RB_ROOT_CACHED;
tools/perf/util/hist.c
3022
mutex_init(&hists->lock);
tools/perf/util/hist.c
3023
hists->socket_filter = -1;
tools/perf/util/hist.c
3024
hists->parallelism_filter = symbol_conf.parallelism_filter;
tools/perf/util/hist.c
3025
hists->hpp_list = hpp_list;
tools/perf/util/hist.c
3026
INIT_LIST_HEAD(&hists->hpp_formats);
tools/perf/util/hist.c
3044
void hists__delete_all_entries(struct hists *hists)
tools/perf/util/hist.c
3046
hists__delete_entries(hists);
tools/perf/util/hist.c
3047
hists__delete_remaining_entries(&hists->entries_in_array[0]);
tools/perf/util/hist.c
3048
hists__delete_remaining_entries(&hists->entries_in_array[1]);
tools/perf/util/hist.c
3049
hists__delete_remaining_entries(&hists->entries_collapsed);
tools/perf/util/hist.c
3054
struct hists *hists = evsel__hists(evsel);
tools/perf/util/hist.c
3058
hists__delete_all_entries(hists);
tools/perf/util/hist.c
3059
zfree(&hists->mem_stat_types);
tools/perf/util/hist.c
3060
zfree(&hists->mem_stat_total);
tools/perf/util/hist.c
3062
list_for_each_entry_safe(node, tmp, &hists->hpp_formats, list) {
tools/perf/util/hist.c
3074
struct hists *hists = evsel__hists(evsel);
tools/perf/util/hist.c
3076
__hists__init(hists, &perf_hpp_list);
tools/perf/util/hist.c
342
static int hists__update_mem_stat(struct hists *hists, struct hist_entry *he,
tools/perf/util/hist.c
345
if (hists->nr_mem_stats == 0)
tools/perf/util/hist.c
349
he->mem_stat = calloc(hists->nr_mem_stats, sizeof(*he->mem_stat));
tools/perf/util/hist.c
354
for (int i = 0; i < hists->nr_mem_stats; i++) {
tools/perf/util/hist.c
355
int idx = mem_stat_index(hists->mem_stat_types[i],
tools/perf/util/hist.c
360
hists->mem_stat_total[i].entries[idx] += period;
tools/perf/util/hist.c
365
static void hists__add_mem_stat(struct hists *hists, struct hist_entry *dst,
tools/perf/util/hist.c
368
if (hists->nr_mem_stats == 0)
tools/perf/util/hist.c
371
for (int i = 0; i < hists->nr_mem_stats; i++) {
tools/perf/util/hist.c
377
static int hists__clone_mem_stat(struct hists *hists, struct hist_entry *dst,
tools/perf/util/hist.c
38
static bool hists__filter_entry_by_dso(struct hists *hists,
tools/perf/util/hist.c
380
if (hists->nr_mem_stats == 0)
tools/perf/util/hist.c
383
dst->mem_stat = calloc(hists->nr_mem_stats, sizeof(*dst->mem_stat));
tools/perf/util/hist.c
387
for (int i = 0; i < hists->nr_mem_stats; i++) {
tools/perf/util/hist.c
394
static void hists__decay_mem_stat(struct hists *hists, struct hist_entry *he)
tools/perf/util/hist.c
396
if (hists->nr_mem_stats == 0)
tools/perf/util/hist.c
399
for (int i = 0; i < hists->nr_mem_stats; i++) {
tools/perf/util/hist.c
40
static bool hists__filter_entry_by_thread(struct hists *hists,
tools/perf/util/hist.c
405
static void hists__delete_entry(struct hists *hists, struct hist_entry *he);
tools/perf/util/hist.c
407
static bool hists__decay_entry(struct hists *hists, struct hist_entry *he)
tools/perf/util/hist.c
419
hists__decay_mem_stat(hists, he);
tools/perf/util/hist.c
42
static bool hists__filter_entry_by_symbol(struct hists *hists,
tools/perf/util/hist.c
425
hists->stats.total_period -= period_diff;
tools/perf/util/hist.c
426
hists->stats.total_latency -= latency_diff;
tools/perf/util/hist.c
428
hists->stats.total_non_filtered_period -= period_diff;
tools/perf/util/hist.c
429
hists->stats.total_non_filtered_latency -= latency_diff;
tools/perf/util/hist.c
44
static bool hists__filter_entry_by_socket(struct hists *hists,
tools/perf/util/hist.c
440
if (hists__decay_entry(hists, child))
tools/perf/util/hist.c
441
hists__delete_entry(hists, child);
tools/perf/util/hist.c
448
static void hists__delete_entry(struct hists *hists, struct hist_entry *he)
tools/perf/util/hist.c
457
if (hists__has(hists, need_collapse))
tools/perf/util/hist.c
458
root_in = &hists->entries_collapsed;
tools/perf/util/hist.c
46
static bool hists__filter_entry_by_parallelism(struct hists *hists,
tools/perf/util/hist.c
460
root_in = hists->entries_in;
tools/perf/util/hist.c
461
root_out = &hists->entries;
tools/perf/util/hist.c
467
--hists->nr_entries;
tools/perf/util/hist.c
469
--hists->nr_non_filtered_entries;
tools/perf/util/hist.c
474
void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel)
tools/perf/util/hist.c
476
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/util/hist.c
484
hists__decay_entry(hists, n))) {
tools/perf/util/hist.c
485
hists__delete_entry(hists, n);
tools/perf/util/hist.c
49
u16 hists__col_len(struct hists *hists, enum hist_column col)
tools/perf/util/hist.c
490
void hists__delete_entries(struct hists *hists)
tools/perf/util/hist.c
492
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/util/hist.c
499
hists__delete_entry(hists, n);
tools/perf/util/hist.c
503
struct hist_entry *hists__get_entry(struct hists *hists, int idx)
tools/perf/util/hist.c
505
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/util/hist.c
51
return hists->col_len[col];
tools/perf/util/hist.c
54
void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len)
tools/perf/util/hist.c
56
hists->col_len[col] = len;
tools/perf/util/hist.c
59
bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len)
tools/perf/util/hist.c
61
if (len > hists__col_len(hists, col)) {
tools/perf/util/hist.c
62
hists__set_col_len(hists, col, len);
tools/perf/util/hist.c
674
he->hists->callchain_period += period;
tools/perf/util/hist.c
675
he->hists->callchain_latency += latency;
tools/perf/util/hist.c
677
he->hists->callchain_non_filtered_period += period;
tools/perf/util/hist.c
678
he->hists->callchain_non_filtered_latency += latency;
tools/perf/util/hist.c
68
void hists__reset_col_len(struct hists *hists)
tools/perf/util/hist.c
682
static struct hist_entry *hists__findnew_entry(struct hists *hists,
tools/perf/util/hist.c
695
p = &hists->entries_in->rb_root.rb_node;
tools/perf/util/hist.c
726
if (hists__has(hists, sym) && he->ms.map != entry->ms.map) {
tools/perf/util/hist.c
73
hists__set_col_len(hists, col, 0);
tools/perf/util/hist.c
752
hists->nr_entries++;
tools/perf/util/hist.c
755
rb_insert_color_cached(&he->rb_node_in, hists->entries_in, leftmost);
tools/perf/util/hist.c
76
static void hists__set_unres_dso_col_len(struct hists *hists, int dso)
tools/perf/util/hist.c
761
if (hists__update_mem_stat(hists, he, entry->mem_info, period) < 0) {
tools/perf/util/hist.c
795
__hists__add_entry(struct hists *hists,
tools/perf/util/hist.c
80
if (hists__col_len(hists, dso) < unresolved_col_width &&
tools/perf/util/hist.c
83
hists__set_col_len(hists, dso, unresolved_col_width);
tools/perf/util/hist.c
838
.hists = hists,
tools/perf/util/hist.c
852
}, *he = hists__findnew_entry(hists, &entry, al, sample_self);
tools/perf/util/hist.c
854
if (!hists->has_callchains && he && he->callchain_size != 0)
tools/perf/util/hist.c
855
hists->has_callchains = true;
tools/perf/util/hist.c
86
void hists__calc_col_len(struct hists *hists, struct hist_entry *h)
tools/perf/util/hist.c
861
struct hist_entry *hists__add_entry(struct hists *hists,
tools/perf/util/hist.c
870
return __hists__add_entry(hists, al, sym_parent, bi, mi, ki, NULL,
tools/perf/util/hist.c
874
struct hist_entry *hists__add_entry_ops(struct hists *hists,
tools/perf/util/hist.c
884
return __hists__add_entry(hists, al, sym_parent, bi, mi, ki, NULL,
tools/perf/util/hist.c
888
struct hist_entry *hists__add_entry_block(struct hists *hists,
tools/perf/util/hist.c
894
.hists = hists,
tools/perf/util/hist.c
900
}, *he = hists__findnew_entry(hists, &entry, al, false);
tools/perf/util/hist.c
939
struct hists *hists = evsel__hists(sample->evsel);
tools/perf/util/hist.c
958
he = hists__add_entry(hists, al, iter->parent, NULL, mi, NULL,
tools/perf/util/hist.c
972
struct hists *hists = evsel__hists(evsel);
tools/perf/util/hist.c
979
hists__inc_nr_samples(hists, he->filtered);
tools/perf/util/hist.h
297
struct hists *hists;
tools/perf/util/hist.h
344
struct hist_entry *hists__add_entry(struct hists *hists,
tools/perf/util/hist.h
353
struct hist_entry *hists__add_entry_ops(struct hists *hists,
tools/perf/util/hist.h
363
struct hist_entry *hists__add_entry_block(struct hists *hists,
tools/perf/util/hist.h
375
struct hists *hists);
tools/perf/util/hist.h
387
void hists__output_resort(struct hists *hists, struct ui_progress *prog);
tools/perf/util/hist.h
388
void hists__output_resort_cb(struct hists *hists, struct ui_progress *prog,
tools/perf/util/hist.h
390
int hists__collapse_resort(struct hists *hists, struct ui_progress *prog);
tools/perf/util/hist.h
392
void hists__decay_entries(struct hists *hists, bool zap_user, bool zap_kernel);
tools/perf/util/hist.h
393
void hists__delete_entries(struct hists *hists);
tools/perf/util/hist.h
394
void hists__delete_all_entries(struct hists *hists);
tools/perf/util/hist.h
395
void hists__output_recalc_col_len(struct hists *hists, int max_rows);
tools/perf/util/hist.h
397
struct hist_entry *hists__get_entry(struct hists *hists, int idx);
tools/perf/util/hist.h
399
u64 hists__total_period(struct hists *hists);
tools/perf/util/hist.h
400
u64 hists__total_latency(struct hists *hists);
tools/perf/util/hist.h
401
void hists__reset_stats(struct hists *hists);
tools/perf/util/hist.h
402
void hists__inc_stats(struct hists *hists, struct hist_entry *h);
tools/perf/util/hist.h
403
void hists__inc_nr_events(struct hists *hists);
tools/perf/util/hist.h
404
void hists__inc_nr_samples(struct hists *hists, bool filtered);
tools/perf/util/hist.h
405
void hists__inc_nr_lost_samples(struct hists *hists, u32 lost);
tools/perf/util/hist.h
406
void hists__inc_nr_dropped_samples(struct hists *hists, u32 lost);
tools/perf/util/hist.h
408
size_t hists__fprintf(struct hists *hists, bool show_header, int max_rows,
tools/perf/util/hist.h
413
void hists__filter_by_dso(struct hists *hists);
tools/perf/util/hist.h
414
void hists__filter_by_thread(struct hists *hists);
tools/perf/util/hist.h
415
void hists__filter_by_symbol(struct hists *hists);
tools/perf/util/hist.h
416
void hists__filter_by_socket(struct hists *hists);
tools/perf/util/hist.h
417
void hists__filter_by_parallelism(struct hists *hists);
tools/perf/util/hist.h
419
static inline bool hists__has_filter(struct hists *hists)
tools/perf/util/hist.h
421
return hists->thread_filter || hists->dso_filter ||
tools/perf/util/hist.h
422
hists->symbol_filter_str || (hists->socket_filter > -1) ||
tools/perf/util/hist.h
423
hists->parallelism_filter;
tools/perf/util/hist.h
426
u16 hists__col_len(struct hists *hists, enum hist_column col);
tools/perf/util/hist.h
427
void hists__set_col_len(struct hists *hists, enum hist_column col, u16 len);
tools/perf/util/hist.h
428
bool hists__new_col_len(struct hists *hists, enum hist_column col, u16 len);
tools/perf/util/hist.h
429
void hists__reset_col_len(struct hists *hists);
tools/perf/util/hist.h
430
void hists__calc_col_len(struct hists *hists, struct hist_entry *he);
tools/perf/util/hist.h
432
void hists__match(struct hists *leader, struct hists *other);
tools/perf/util/hist.h
433
int hists__link(struct hists *leader, struct hists *other);
tools/perf/util/hist.h
434
int hists__unlink(struct hists *hists);
tools/perf/util/hist.h
439
u64 total_period = hists__total_period(he->hists);
tools/perf/util/hist.h
452
struct hists hists;
tools/perf/util/hist.h
455
static inline struct evsel *hists_to_evsel(struct hists *hists)
tools/perf/util/hist.h
457
struct hists_evsel *hevsel = container_of(hists, struct hists_evsel, hists);
tools/perf/util/hist.h
461
static inline struct hists *evsel__hists(struct evsel *evsel)
tools/perf/util/hist.h
464
return &hevsel->hists;
tools/perf/util/hist.h
467
static __pure inline bool hists__has_callchains(struct hists *hists)
tools/perf/util/hist.h
469
return hists->has_callchains;
tools/perf/util/hist.h
473
int __hists__init(struct hists *hists, struct perf_hpp_list *hpp_list);
tools/perf/util/hist.h
475
struct rb_root_cached *hists__get_rotate_entries_in(struct hists *hists);
tools/perf/util/hist.h
491
struct hists *hists, int line, int *span);
tools/perf/util/hist.h
493
struct hists *hists);
tools/perf/util/hist.h
572
#define hists__for_each_format(hists, format) \
tools/perf/util/hist.h
573
perf_hpp_list__for_each_format((hists)->hpp_list, format)
tools/perf/util/hist.h
575
#define hists__for_each_sort_list(hists, format) \
tools/perf/util/hist.h
576
perf_hpp_list__for_each_sort_list((hists)->hpp_list, format)
tools/perf/util/hist.h
618
bool perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists);
tools/perf/util/hist.h
633
struct hists *hists)
tools/perf/util/hist.h
639
!perf_hpp__defined_dynamic_entry(format, hists))
tools/perf/util/hist.h
645
void perf_hpp__reset_width(struct perf_hpp_fmt *fmt, struct hists *hists);
tools/perf/util/hist.h
646
void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists);
tools/perf/util/hist.h
648
void hists__reset_column_width(struct hists *hists);
tools/perf/util/hist.h
706
struct hists block_hists;
tools/perf/util/hist.h
797
unsigned int hists__sort_list_width(struct hists *hists);
tools/perf/util/hist.h
798
unsigned int hists__overhead_width(struct hists *hists);
tools/perf/util/hist.h
833
int hists__fprintf_headers(struct hists *hists, FILE *fp);
tools/perf/util/hist.h
834
int __hists__scnprintf_title(struct hists *hists, char *bf, size_t size, bool show_freq);
tools/perf/util/hist.h
836
static inline int hists__scnprintf_title(struct hists *hists, char *bf, size_t size)
tools/perf/util/hist.h
838
return __hists__scnprintf_title(hists, bf, size, true);
tools/perf/util/sort.c
1237
evsel = hists_to_evsel(he->hists);
tools/perf/util/sort.c
1260
evsel = hists_to_evsel(left->hists);
tools/perf/util/sort.c
1277
evsel = hists_to_evsel(he->hists);
tools/perf/util/sort.c
2607
if (he && he->hists) {
tools/perf/util/sort.c
2608
struct evsel *evsel = hists_to_evsel(he->hists);
tools/perf/util/sort.c
2856
void perf_hpp__reset_sort_width(struct perf_hpp_fmt *fmt, struct hists *hists)
tools/perf/util/sort.c
2864
hists__new_col_len(hists, hse->se->se_width_idx, strlen(fmt->name));
tools/perf/util/sort.c
2868
struct hists *hists, int line,
tools/perf/util/sort.c
2875
if (line == hists->hpp_list->nr_header_lines - 1)
tools/perf/util/sort.c
2881
len = hists__col_len(hists, hse->se->se_width_idx);
tools/perf/util/sort.c
2888
struct hists *hists)
tools/perf/util/sort.c
2896
len = hists__col_len(hists, hse->se->se_width_idx);
tools/perf/util/sort.c
2910
len = hists__col_len(he->hists, hse->se->se_width_idx);
tools/perf/util/sort.c
3133
struct hists *hists __maybe_unused)
tools/perf/util/sort.c
3212
struct hists *hists __maybe_unused,
tools/perf/util/sort.c
3229
struct hists *hists __maybe_unused)
tools/perf/util/sort.c
3242
bool perf_hpp__defined_dynamic_entry(struct perf_hpp_fmt *fmt, struct hists *hists)
tools/perf/util/sort.c
3248
return hists_to_evsel(hists) == hde->evsel;
tools/perf/util/sort.c
499
if (!hists__has(left->hists, dso)) {
tools/perf/util/stream.c
112
static void init_hot_callchain(struct hists *hists, struct evsel_streams *es)
tools/perf/util/stream.c
114
struct rb_node *next = rb_first_cached(&hists->entries);
tools/perf/util/stream.c
124
es->streams_hits = callchain_total_hits(hists);
tools/perf/util/stream.c
137
struct hists *hists = evsel__hists(pos);
tools/perf/util/stream.c
139
hists__output_resort(hists, NULL);
tools/perf/util/stream.c
140
init_hot_callchain(hists, &es[i]);