Lines Matching defs:cpus
571 struct perf_cpu_map *cpus;
584 pcpus->cpus = perf_cpu_map__new(cpustr);
585 if (pcpus->cpus == NULL)
592 perf_cpu_map__put(pcpus->cpus);
600 return pcpus->cpus->nr;
607 if (i >= pcpus->cpus->nr)
610 return Py_BuildValue("i", pcpus->cpus->map[i]);
831 struct perf_cpu_map *cpus = NULL;
835 static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL };
845 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus;
852 if (evsel__open(evsel, cpus, threads) < 0) {
900 struct perf_cpu_map *cpus;
907 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus;
908 evlist__init(&pevlist->evlist, cpus, threads);