Home | History | Annotate | Download | only in util

Lines Matching full:pcpus

247 static int pyrf_cpu_map__init(struct pyrf_cpu_map *pcpus,
257 pcpus->cpus = cpu_map__new(cpustr);
258 if (pcpus->cpus == NULL)
263 static void pyrf_cpu_map__delete(struct pyrf_cpu_map *pcpus)
265 cpu_map__delete(pcpus->cpus);
266 pcpus->ob_type->tp_free((PyObject*)pcpus);
271 struct pyrf_cpu_map *pcpus = (void *)obj;
273 return pcpus->cpus->nr;
278 struct pyrf_cpu_map *pcpus = (void *)obj;
280 if (i >= pcpus->cpus->nr)
283 return Py_BuildValue("i", pcpus->cpus->map[i]);
500 PyObject *pcpus = NULL, *pthreads = NULL;
505 &pcpus, &pthreads, &group, &inherit))
511 if (pcpus != NULL)
512 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus;
562 PyObject *pcpus = NULL, *pthreads = NULL;
566 if (!PyArg_ParseTuple(args, "OO", &pcpus, &pthreads))
570 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus;