Lines Matching refs:evlist

44 static int bperf_load_program(struct evlist *evlist)  in bperf_load_program()  argument
50 __u32 nr_cpus = evlist->core.all_cpus->nr; in bperf_load_program()
62 skel->rodata->num_events = evlist->core.nr_entries / nr_cgroups; in bperf_load_program()
64 BUG_ON(evlist->core.nr_entries % nr_cgroups != 0); in bperf_load_program()
67 map_size = total_cpus * evlist->core.nr_entries / nr_cgroups; in bperf_load_program()
71 map_size = evlist->core.nr_entries / nr_cgroups; in bperf_load_program()
74 map_size = evlist->core.nr_entries; in bperf_load_program()
91 if (evsel__open_per_cpu(cgrp_switch, evlist->core.all_cpus, -1) < 0) { in bperf_load_program()
112 evlist__for_each_entry(evlist, evsel) { in bperf_load_program()
118 err = evsel__open_per_cpu(evsel, evlist->core.all_cpus, -1); in bperf_load_program()
128 evlist->core.all_cpus->map[cpu]; in bperf_load_program()
187 if (!bperf_loaded && bperf_load_program(evsel->evlist)) in bperf_cgrp__load()
208 static int bperf_cgrp__sync_counters(struct evlist *evlist) in bperf_cgrp__sync_counters() argument
211 int nr_cpus = evlist->core.all_cpus->nr; in bperf_cgrp__sync_counters()
215 cpu = evlist->core.all_cpus->map[i]; in bperf_cgrp__sync_counters()
227 bperf_cgrp__sync_counters(evsel->evlist); in bperf_cgrp__enable()
238 bperf_cgrp__sync_counters(evsel->evlist); in bperf_cgrp__disable()
246 struct evlist *evlist = evsel->evlist; in bperf_cgrp__read() local
247 int i, cpu, nr_cpus = evlist->core.all_cpus->nr; in bperf_cgrp__read()
257 bperf_cgrp__sync_counters(evsel->evlist); in bperf_cgrp__read()
265 evlist__for_each_entry(evlist, evsel) { in bperf_cgrp__read()
275 cpu = evlist->core.all_cpus->map[i]; in bperf_cgrp__read()