/tools/perf/bench/ |
D | futex-hash.c | 46 struct worker { struct 70 struct worker *w = (struct worker *) arg; in workerfn() argument 127 struct worker *worker = NULL; in bench_futex_hash() local 148 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash() 149 if (!worker) in bench_futex_hash() 167 worker[i].tid = i; in bench_futex_hash() 168 worker[i].futex = calloc(nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash() 169 if (!worker[i].futex) in bench_futex_hash() 179 ret = pthread_create(&worker[i].thread, &thread_attr, workerfn, in bench_futex_hash() 180 (void *)(struct worker *) &worker[i]); in bench_futex_hash() [all …]
|
D | futex-lock-pi.c | 26 struct worker { struct 34 static struct worker *worker; argument 81 struct worker *w = (struct worker *) arg; in workerfn() 118 static void create_threads(struct worker *w, pthread_attr_t thread_attr, in create_threads() 127 worker[i].tid = i; in create_threads() 130 worker[i].futex = calloc(1, sizeof(u_int32_t)); in create_threads() 131 if (!worker[i].futex) in create_threads() 134 worker[i].futex = &global_futex; in create_threads() 142 if (pthread_create(&w[i].thread, &thread_attr, workerfn, &worker[i])) in create_threads() 171 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_lock_pi() [all …]
|
D | epoll-wait.c | 118 struct worker { struct 186 struct worker *w = (struct worker *) arg; in workerfn() 240 static void nest_epollfd(struct worker *w) in nest_epollfd() 292 static int do_threads(struct worker *worker, struct perf_cpu_map *cpu) in do_threads() argument 311 struct worker *w = &worker[i]; in do_threads() 356 (void *)(struct worker *) w); in do_threads() 369 struct worker *worker = p; in writerfn() local 381 shuffle((void *)worker, nthreads, sizeof(*worker)); in writerfn() 385 struct worker *w = &worker[i]; in writerfn() 408 struct worker *w1 = (struct worker *) p1; in cmpworker() [all …]
|
D | epoll-ctl.c | 67 struct worker { struct 132 static inline void do_epoll_op(struct worker *w, int op, int fd) in do_epoll_op() 160 static inline void do_random_epoll_op(struct worker *w) in do_random_epoll_op() 174 struct worker *w = (struct worker *) arg; in workerfn() 204 static void init_fdmaps(struct worker *w, int pct) in init_fdmaps() 223 static int do_threads(struct worker *worker, struct perf_cpu_map *cpu) in do_threads() argument 234 struct worker *w = &worker[i]; in do_threads() 267 (void *)(struct worker *) w); in do_threads() 304 struct worker *worker = NULL; in bench_epoll_ctl() local 339 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl() [all …]
|
D | futex-requeue.c | 40 static pthread_t *worker; variable 139 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_requeue() 140 if (!worker) in bench_futex_requeue() 165 block_threads(worker, thread_attr, cpu); in bench_futex_requeue() 204 ret = pthread_join(worker[i], NULL); in bench_futex_requeue() 218 free(worker); in bench_futex_requeue()
|
D | futex-wake.c | 41 pthread_t *worker; variable 147 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_wake() 148 if (!worker) in bench_futex_wake() 170 block_threads(worker, thread_attr, cpu); in bench_futex_wake() 197 ret = pthread_join(worker[i], NULL); in bench_futex_wake() 212 free(worker); in bench_futex_wake()
|
D | futex-wake-parallel.c | 40 pthread_t worker; member 109 if (pthread_create(&td[i].worker, &thread_attr, in wakeup_threads() 117 if (pthread_join(td[i].worker, NULL)) in wakeup_threads()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | send_signal_sched_switch.c | 18 static void *worker(void *p) in worker() function 49 err = pthread_create(threads + i, NULL, worker, NULL); in test_send_signal_sched_switch()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-vmx-unavail.c | 27 void *worker(void *unused) in worker() function 104 pthread_create(&thread[i], NULL, &worker, NULL); in tm_vmx_unavail_test()
|