Lines Matching refs:pcpus
687 static int pyrf_cpu_map__init(struct pyrf_cpu_map *pcpus, in pyrf_cpu_map__init() argument
697 pcpus->cpus = perf_cpu_map__new(cpustr); in pyrf_cpu_map__init()
698 if (pcpus->cpus == NULL) in pyrf_cpu_map__init()
703 static void pyrf_cpu_map__delete(struct pyrf_cpu_map *pcpus) in pyrf_cpu_map__delete() argument
705 perf_cpu_map__put(pcpus->cpus); in pyrf_cpu_map__delete()
706 Py_TYPE(pcpus)->tp_free((PyObject*)pcpus); in pyrf_cpu_map__delete()
711 struct pyrf_cpu_map *pcpus = (void *)obj; in pyrf_cpu_map__length() local
713 return perf_cpu_map__nr(pcpus->cpus); in pyrf_cpu_map__length()
718 struct pyrf_cpu_map *pcpus = (void *)obj; in pyrf_cpu_map__item() local
720 if (i >= perf_cpu_map__nr(pcpus->cpus)) in pyrf_cpu_map__item()
723 return Py_BuildValue("i", perf_cpu_map__cpu(pcpus->cpus, i).cpu); in pyrf_cpu_map__item()
946 PyObject *pcpus = NULL, *pthreads = NULL; in pyrf_evsel__open() local
951 &pcpus, &pthreads, &group, &inherit)) in pyrf_evsel__open()
957 if (pcpus != NULL) in pyrf_evsel__open()
958 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus; in pyrf_evsel__open()
1012 PyObject *pcpus = NULL, *pthreads = NULL; in pyrf_evlist__init() local
1016 if (!PyArg_ParseTuple(args, "OO", &pcpus, &pthreads)) in pyrf_evlist__init()
1020 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus; in pyrf_evlist__init()