Lines Matching refs:threads
743 struct perf_thread_map *threads;
756 pthreads->threads = thread_map__new(pid, tid, uid);
757 if (pthreads->threads == NULL)
764 perf_thread_map__put(pthreads->threads);
772 return perf_thread_map__nr(pthreads->threads);
779 if (i >= perf_thread_map__nr(pthreads->threads))
782 return Py_BuildValue("i", perf_thread_map__pid(pthreads->threads, i));
935 struct perf_thread_map *threads = NULL;
938 static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL };
945 threads = ((struct pyrf_thread_map *)pthreads)->threads;
955 if (evsel__open(evsel, cpus, threads) < 0) {
1004 struct perf_thread_map *threads;
1009 threads = ((struct pyrf_thread_map *)pthreads)->threads;
1011 evlist__init(&pevlist->evlist, cpus, threads);