Lines Matching refs:evlist_cpu_itr

437 void evlist_cpu_iterator__next(struct evlist_cpu_iterator *evlist_cpu_itr)  in evlist_cpu_iterator__next()  argument
439 while (evlist_cpu_itr->evsel != evlist__last(evlist_cpu_itr->container)) { in evlist_cpu_iterator__next()
440 evlist_cpu_itr->evsel = evsel__next(evlist_cpu_itr->evsel); in evlist_cpu_iterator__next()
441 evlist_cpu_itr->cpu_map_idx = in evlist_cpu_iterator__next()
442 perf_cpu_map__idx(evlist_cpu_itr->evsel->core.cpus, in evlist_cpu_iterator__next()
443 evlist_cpu_itr->cpu); in evlist_cpu_iterator__next()
444 if (evlist_cpu_itr->cpu_map_idx != -1) in evlist_cpu_iterator__next()
447 evlist_cpu_itr->evlist_cpu_map_idx++; in evlist_cpu_iterator__next()
448 if (evlist_cpu_itr->evlist_cpu_map_idx < evlist_cpu_itr->evlist_cpu_map_nr) { in evlist_cpu_iterator__next()
449 evlist_cpu_itr->evsel = evlist__first(evlist_cpu_itr->container); in evlist_cpu_iterator__next()
450 evlist_cpu_itr->cpu = in evlist_cpu_iterator__next()
451 perf_cpu_map__cpu(evlist_cpu_itr->container->core.all_cpus, in evlist_cpu_iterator__next()
452 evlist_cpu_itr->evlist_cpu_map_idx); in evlist_cpu_iterator__next()
453 if (evlist_cpu_itr->affinity) in evlist_cpu_iterator__next()
454 affinity__set(evlist_cpu_itr->affinity, evlist_cpu_itr->cpu.cpu); in evlist_cpu_iterator__next()
455 evlist_cpu_itr->cpu_map_idx = in evlist_cpu_iterator__next()
456 perf_cpu_map__idx(evlist_cpu_itr->evsel->core.cpus, in evlist_cpu_iterator__next()
457 evlist_cpu_itr->cpu); in evlist_cpu_iterator__next()
462 if (evlist_cpu_itr->cpu_map_idx == -1) in evlist_cpu_iterator__next()
463 evlist_cpu_iterator__next(evlist_cpu_itr); in evlist_cpu_iterator__next()
467 bool evlist_cpu_iterator__end(const struct evlist_cpu_iterator *evlist_cpu_itr) in evlist_cpu_iterator__end() argument
469 return evlist_cpu_itr->evlist_cpu_map_idx >= evlist_cpu_itr->evlist_cpu_map_nr; in evlist_cpu_iterator__end()
498 struct evlist_cpu_iterator evlist_cpu_itr; in __evlist__disable() local
511 evlist__for_each_cpu(evlist_cpu_itr, evlist, affinity) { in __evlist__disable()
512 pos = evlist_cpu_itr.evsel; in __evlist__disable()
523 evsel__disable_cpu(pos, evlist_cpu_itr.cpu_map_idx); in __evlist__disable()
568 struct evlist_cpu_iterator evlist_cpu_itr; in __evlist__enable() local
578 evlist__for_each_cpu(evlist_cpu_itr, evlist, affinity) { in __evlist__enable()
579 pos = evlist_cpu_itr.evsel; in __evlist__enable()
586 evsel__enable_cpu(pos, evlist_cpu_itr.cpu_map_idx); in __evlist__enable()
1390 struct evlist_cpu_iterator evlist_cpu_itr; in evlist__close() local
1407 evlist__for_each_cpu(evlist_cpu_itr, evlist, &affinity) { in evlist__close()
1408 perf_evsel__close_cpu(&evlist_cpu_itr.evsel->core, in evlist__close()
1409 evlist_cpu_itr.cpu_map_idx); in evlist__close()