Lines Matching defs:cpus
674 struct perf_cpu_map *cpus;
687 pcpus->cpus = perf_cpu_map__new(cpustr);
688 if (pcpus->cpus == NULL)
695 perf_cpu_map__put(pcpus->cpus);
703 return perf_cpu_map__nr(pcpus->cpus);
710 if (i >= perf_cpu_map__nr(pcpus->cpus))
713 return Py_BuildValue("i", perf_cpu_map__cpu(pcpus->cpus, i).cpu);
934 struct perf_cpu_map *cpus = NULL;
938 static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL };
948 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus;
955 if (evsel__open(evsel, cpus, threads) < 0) {
1003 struct perf_cpu_map *cpus;
1010 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus;
1011 evlist__init(&pevlist->evlist, cpus, threads);