| /tools/perf/bench/ |
| A D | futex-hash.c | 44 struct worker { struct 76 struct worker *w = (struct worker *) arg; in workerfn() 134 struct worker *worker = NULL; in bench_futex_hash() local 162 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_hash() 163 if (!worker) in bench_futex_hash() 188 worker[i].tid = i; in bench_futex_hash() 189 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash() 202 (void *)(struct worker *) &worker[i]); in bench_futex_hash() 239 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash() 242 worker[i].tid, &worker[i].futex[0], in bench_futex_hash() [all …]
|
| A D | epoll-wait.c | 186 struct worker *w = (struct worker *) arg; in workerfn() 318 struct worker *w = &worker[i]; in do_threads() 382 struct worker *worker = p; in writerfn() local 398 struct worker *w = &worker[i]; in writerfn() 421 struct worker *w1 = (struct worker *) p1; in cmpworker() 422 struct worker *w2 = (struct worker *) p2; in cmpworker() 436 struct worker *worker = NULL; in bench_epoll_wait() local 476 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait() 516 (void *)(struct worker *) worker); in bench_epoll_wait() 547 worker[i].tid, &worker[i].fdmap[0], t); in bench_epoll_wait() [all …]
|
| A D | futex-lock-pi.c | 27 struct worker { struct 35 static struct worker *worker; argument 87 struct worker *w = (struct worker *) arg; in workerfn() 141 worker[i].tid = i; in create_threads() 145 if (!worker[i].futex) in create_threads() 195 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_lock_pi() 196 if (!worker) in bench_futex_lock_pi() 214 create_threads(worker, cpu); in bench_futex_lock_pi() 243 worker[i].tid, worker[i].futex, t); in bench_futex_lock_pi() 246 zfree(&worker[i].futex); in bench_futex_lock_pi() [all …]
|
| A D | epoll-ctl.c | 67 struct worker { struct 174 struct worker *w = (struct worker *) arg; in workerfn() 223 static int do_threads(struct worker *worker, struct perf_cpu_map *cpu) in do_threads() argument 241 struct worker *w = &worker[i]; in do_threads() 317 struct worker *worker = NULL; in bench_epoll_ctl() local 352 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl() 353 if (!worker) in bench_epoll_ctl() 412 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl() 416 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl() 426 free(worker[i].fdmap); in bench_epoll_ctl() [all …]
|
| A D | sched-messaging.c | 164 ret = pthread_create(&worker->thread, &attr, func, ctx); in create_thread_worker() 175 worker->pid = fork(); in create_process_worker() 177 if (worker->pid == -1) { in create_process_worker() 179 } else if (worker->pid == 0) { in create_process_worker() 185 static void create_worker(union messaging_worker *worker, in create_worker() argument 189 return create_process_worker(worker, ctx, func); in create_worker() 191 return create_thread_worker(worker, ctx, func); in create_worker() 194 static void reap_worker(union messaging_worker *worker) in reap_worker() argument 205 pthread_join(worker->thread, &thread_status); in reap_worker() 210 static unsigned int group(union messaging_worker *worker, in group() argument [all …]
|
| A D | futex-wake.c | 36 static pthread_t *worker; variable 172 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_wake() 173 if (!worker) in bench_futex_wake() 195 block_threads(worker, cpu); in bench_futex_wake() 224 ret = pthread_join(worker[i], NULL); in bench_futex_wake() 238 free(worker); in bench_futex_wake()
|
| A D | futex-requeue.c | 36 static pthread_t *worker; variable 197 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_requeue() 198 if (!worker) in bench_futex_requeue() 228 block_threads(worker, cpu); in bench_futex_requeue() 300 ret = pthread_join(worker[i], NULL); in bench_futex_requeue() 313 free(worker); in bench_futex_requeue()
|
| A D | futex-wake-parallel.c | 41 pthread_t worker; member 118 if (pthread_create(&td[i].worker, &thread_attr, in wakeup_threads() 126 if (pthread_join(td[i].worker, NULL)) in wakeup_threads()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | send_signal_sched_switch.c | 18 static void *worker(void *p) in worker() function 50 err = pthread_create(threads + i, NULL, worker, NULL); in serial_test_send_signal_sched_switch()
|
| /tools/testing/selftests/powerpc/tm/ |
| A D | tm-vmx-unavail.c | 26 void *worker(void *unused) in worker() function 104 pthread_create(&thread[i], NULL, &worker, NULL); in tm_vmx_unavail_test()
|
| /tools/testing/selftests/coredump/ |
| A D | stackdump_test.c | 1747 pid_t worker = fork(); 1748 if (worker == 0) { 1752 worker_pids[n_conns] = worker;
|