Home
last modified time | relevance | path

Searched refs:pthreads (Results 1 – 2 of 2) sorted by relevance

/tools/perf/util/
Dpython.c643 static int pyrf_thread_map__init(struct pyrf_thread_map *pthreads, in pyrf_thread_map__init() argument
653 pthreads->threads = thread_map__new(pid, tid, uid); in pyrf_thread_map__init()
654 if (pthreads->threads == NULL) in pyrf_thread_map__init()
659 static void pyrf_thread_map__delete(struct pyrf_thread_map *pthreads) in pyrf_thread_map__delete() argument
661 perf_thread_map__put(pthreads->threads); in pyrf_thread_map__delete()
662 Py_TYPE(pthreads)->tp_free((PyObject*)pthreads); in pyrf_thread_map__delete()
667 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__length() local
669 return pthreads->threads->nr; in pyrf_thread_map__length()
674 struct pyrf_thread_map *pthreads = (void *)obj; in pyrf_thread_map__item() local
676 if (i >= pthreads->threads->nr) in pyrf_thread_map__item()
[all …]
/tools/perf/bench/
Dnuma.c1304 pthread_t *pthreads; in worker_process() local
1323 pthreads = zalloc(g->p.nr_threads * sizeof(pthread_t)); in worker_process()
1343 ret = pthread_create(pthreads + t, NULL, worker_thread, td); in worker_process()
1348 ret = pthread_join(pthreads[t], NULL); in worker_process()
1353 free(pthreads); in worker_process()