Searched refs:worker (Results 1 – 3 of 3) sorted by relevance
/tools/perf/bench/ |
D | futex-hash.c | 37 struct worker { struct 62 struct worker *w = (struct worker *) arg; in workerfn() argument 117 struct worker *worker = NULL; in bench_futex_hash() local 134 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash() 135 if (!worker) in bench_futex_hash() 153 worker[i].tid = i; in bench_futex_hash() 154 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash() 155 if (!worker[i].futex) in bench_futex_hash() 165 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash() 166 (void *)(struct worker *) &worker[i]); in bench_futex_hash() [all …]
|
D | futex-wake.c | 33 pthread_t *worker; variable 131 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_wake() 132 if (!worker) in bench_futex_wake() 154 block_threads(worker, thread_attr); in bench_futex_wake() 181 ret = pthread_join(worker[i], NULL); in bench_futex_wake() 196 free(worker); in bench_futex_wake()
|
D | futex-requeue.c | 32 static pthread_t *worker; variable 128 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_requeue() 129 if (!worker) in bench_futex_requeue() 151 block_threads(worker, thread_attr); in bench_futex_requeue() 192 ret = pthread_join(worker[i], NULL); in bench_futex_requeue() 206 free(worker); in bench_futex_requeue()
|