Home
last modified time | relevance | path

Searched refs:worker (Results 1 – 11 of 11) sorted by relevance

/tools/perf/bench/
A Dfutex-hash.c44 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 Depoll-wait.c186 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 Dfutex-lock-pi.c27 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 Depoll-ctl.c67 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 Dsched-messaging.c164 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 Dfutex-wake.c36 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 Dfutex-requeue.c36 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 Dfutex-wake-parallel.c41 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 Dsend_signal_sched_switch.c18 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 Dtm-vmx-unavail.c26 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 Dstackdump_test.c1747 pid_t worker = fork();
1748 if (worker == 0) {
1752 worker_pids[n_conns] = worker;

Completed in 15 milliseconds