Searched refs:pthreads (Results 1 – 3 of 3) sorted by relevance
670 static int pyrf_thread_map__init(struct pyrf_thread_map *pthreads, in pyrf_thread_map__init() argument680 pthreads->threads = thread_map__new(pid, tid, uid); in pyrf_thread_map__init()681 if (pthreads->threads == NULL) in pyrf_thread_map__init()686 static void pyrf_thread_map__delete(struct pyrf_thread_map *pthreads) in pyrf_thread_map__delete() argument688 perf_thread_map__put(pthreads->threads); in pyrf_thread_map__delete()689 Py_TYPE(pthreads)->tp_free((PyObject*)pthreads); in pyrf_thread_map__delete()694 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__length() local696 return pthreads->threads->nr; in pyrf_thread_map__length()701 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__item() local703 if (i >= pthreads->threads->nr) in pyrf_thread_map__item()[all …]
1320 pthread_t *pthreads; in worker_process() local1339 pthreads = zalloc(g->p.nr_threads * sizeof(pthread_t)); in worker_process()1359 ret = pthread_create(pthreads + t, NULL, worker_thread, td); in worker_process()1364 ret = pthread_join(pthreads[t], NULL); in worker_process()1369 free(pthreads); in worker_process()
424 Familiar tools like GDB and pthreads can be used to develop and debug