Home
last modified time | relevance | path

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

1234567

/openbmc/linux/io_uring/
H A Dio-wq.c168 return io_get_acct(worker->wq, worker->flags & IO_WORKER_F_BOUND); in io_wq_get_acct()
343 wq = worker->wq; in create_worker_cb()
696 if (!worker) in io_wq_worker_running()
714 if (!worker) in io_wq_worker_sleeping()
798 kfree(worker); in create_worker_cont()
813 kfree(worker); in io_workqueue_create()
824 worker = kzalloc(sizeof(*worker), GFP_KERNEL); in create_io_worker()
825 if (!worker) { in create_io_worker()
847 kfree(worker); in create_io_worker()
1008 if (__io_wq_worker_cancel(worker, match, worker->cur_work) || in io_wq_worker_cancel()
[all …]
/openbmc/linux/kernel/
H A Dkthread.c846 worker = kzalloc(sizeof(*worker), GFP_KERNEL); in __kthread_create_worker()
965 WARN_ON_ONCE(work->worker && work->worker != worker); in kthread_insert_work_sanity_check()
978 work->worker = worker; in kthread_insert_work()
1023 struct kthread_worker *worker = work->worker; in kthread_delayed_work_timer_fn() local
1035 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn()
1071 work->worker = worker; in __kthread_queue_delayed_work()
1138 worker = work->worker; in kthread_flush_work()
1144 WARN_ON_ONCE(work->worker != worker); in kthread_flush_work()
1173 struct kthread_worker *worker = work->worker; in kthread_cancel_delayed_work_timer() local
1255 WARN_ON_ONCE(work->worker != worker); in kthread_mod_delayed_work()
[all …]
H A Dworkqueue.c1007 struct worker *worker; in find_worker_executing_work() local
1665 struct worker *worker; in is_chained_work() local
1748 struct worker *worker; in __queue_work() local
2070 struct worker *worker; in alloc_worker() local
2168 struct worker *worker; in create_worker() local
2323 struct worker *worker; in idle_worker_timeout() local
2366 struct worker *worker; in idle_cull_fn() local
2954 struct worker *worker; in check_flush_dependency() local
3962 struct worker *worker; in put_unbound_pool() local
5049 struct worker *worker; in print_worker_info() local
[all …]
/openbmc/linux/tools/perf/bench/
H A Dfutex-hash.c43 struct worker { struct
73 struct worker *w = (struct worker *) arg; in workerfn()
130 struct worker *worker = NULL; in bench_futex_hash() local
158 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_hash()
159 if (!worker) in bench_futex_hash()
183 worker[i].tid = i; in bench_futex_hash()
184 worker[i].futex = calloc(params.nfutexes, sizeof(*worker[i].futex)); in bench_futex_hash()
197 (void *)(struct worker *) &worker[i]); in bench_futex_hash()
234 worker[i].tid, &worker[i].futex[0], t); in bench_futex_hash()
237 worker[i].tid, &worker[i].futex[0], in bench_futex_hash()
[all …]
H 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()
431 struct worker *worker = NULL; in bench_epoll_wait() local
471 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
511 (void *)(struct worker *) worker); in bench_epoll_wait()
542 worker[i].tid, &worker[i].fdmap[0], t); in bench_epoll_wait()
[all …]
H A Dfutex-lock-pi.c27 struct worker { struct
35 static struct worker *worker; variable
84 struct worker *w = (struct worker *) arg; in workerfn()
138 worker[i].tid = i; in create_threads()
142 if (!worker[i].futex) in create_threads()
192 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_lock_pi()
193 if (!worker) in bench_futex_lock_pi()
210 create_threads(worker, cpu); in bench_futex_lock_pi()
239 worker[i].tid, worker[i].futex, t); in bench_futex_lock_pi()
242 zfree(&worker[i].futex); in bench_futex_lock_pi()
[all …]
H 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 …]
H A Dfutex-wake.c36 static pthread_t *worker; variable
169 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_wake()
170 if (!worker) in bench_futex_wake()
192 block_threads(worker, cpu); in bench_futex_wake()
221 ret = pthread_join(worker[i], NULL); in bench_futex_wake()
235 free(worker); in bench_futex_wake()
H A Dfutex-requeue.c36 static pthread_t *worker; variable
194 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_requeue()
195 if (!worker) in bench_futex_requeue()
223 block_threads(worker, cpu); in bench_futex_requeue()
295 ret = pthread_join(worker[i], NULL); in bench_futex_requeue()
308 free(worker); in bench_futex_requeue()
/openbmc/linux/include/linux/
H A Dkthread.h134 struct kthread_worker *worker; member
162 extern void __kthread_init_worker(struct kthread_worker *worker,
165 #define kthread_init_worker(worker) \ argument
168 __kthread_init_worker((worker), "("#worker")->lock", &__key); \
196 bool kthread_queue_work(struct kthread_worker *worker,
199 bool kthread_queue_delayed_work(struct kthread_worker *worker,
203 bool kthread_mod_delayed_work(struct kthread_worker *worker,
208 void kthread_flush_worker(struct kthread_worker *worker);
213 void kthread_destroy_worker(struct kthread_worker *worker);
H A Ddevm-helpers.h48 work_func_t worker) in devm_delayed_work_autocancel() argument
50 INIT_DELAYED_WORK(w, worker); in devm_delayed_work_autocancel()
73 work_func_t worker) in devm_work_autocancel() argument
75 INIT_WORK(w, worker); in devm_work_autocancel()
/openbmc/linux/drivers/net/wireguard/
H A Dqueueing.c13 struct multicore_worker __percpu *worker = alloc_percpu(struct multicore_worker); in wg_packet_percpu_multicore_worker_alloc() local
15 if (!worker) in wg_packet_percpu_multicore_worker_alloc()
19 per_cpu_ptr(worker, cpu)->ptr = ptr; in wg_packet_percpu_multicore_worker_alloc()
20 INIT_WORK(&per_cpu_ptr(worker, cpu)->work, function); in wg_packet_percpu_multicore_worker_alloc()
22 return worker; in wg_packet_percpu_multicore_worker_alloc()
35 queue->worker = wg_packet_percpu_multicore_worker_alloc(function, queue); in wg_packet_queue_init()
36 if (!queue->worker) { in wg_packet_queue_init()
45 free_percpu(queue->worker); in wg_packet_queue_free()
/openbmc/openbmc/poky/meta/recipes-devtools/librepo/librepo/
H A D0001-gpg_gpgme.c-fix-build-errors-with-older-gcc.patch11worker/oe-selftest-armhost/build/build-st-1938845/tmp-mc-tiny/hosttools/gcc -DG_LOG_DOMAIN=\"libre…
12 | /home/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1938845/tmp-mc-tiny/work/aarch64-…
13 | /home/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1938845/tmp-mc-tiny/work/aarch64-…
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_vblank_work.c60 kthread_queue_work(vblank->worker, &work->base); in drm_handle_vblank_works()
147 ret = kthread_queue_work(vblank->worker, &work->base); in drm_vblank_work_schedule()
251 struct kthread_worker *worker; in drm_vblank_worker_init() local
255 worker = kthread_create_worker(0, "card%d-crtc%d", in drm_vblank_worker_init()
258 if (IS_ERR(worker)) in drm_vblank_worker_init()
259 return PTR_ERR(worker); in drm_vblank_worker_init()
261 vblank->worker = worker; in drm_vblank_worker_init()
263 sched_set_fifo(worker->task); in drm_vblank_worker_init()
/openbmc/linux/drivers/vhost/
H A Dvhost.c255 worker = rcu_dereference(vq->worker); in vhost_vq_work_queue()
256 if (worker) { in vhost_vq_work_queue()
320 worker = rcu_dereference(vq->worker); in vhost_vq_has_work()
321 if (worker && !llist_empty(&worker->work_list)) in vhost_vq_has_work()
594 if (!worker) in vhost_worker_destroy()
630 worker = kzalloc(sizeof(*worker), GFP_KERNEL_ACCOUNT); in vhost_worker_create()
631 if (!worker) in vhost_worker_create()
673 rcu_assign_pointer(vq->worker, worker); in __vhost_vq_attach_worker()
724 if (!worker || worker->id != info->worker_id) in vhost_vq_attach_worker()
753 if (!worker || worker->id != info->worker_id) in vhost_free_worker()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/subversion/
H A Dsubversion_1.14.3.bb52worker/nightly-qa-logrotate/build/build/tmp/work/x86_64-linux/subversion-native/1.8.9-r0/build/sub…
54 …1.la' has not been installed in `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrota…
55 #| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/work/x86_64-…
/openbmc/linux/samples/seccomp/
H A Duser-trap.c204 pid_t worker = 0 , tracer = 0; in main() local
211 worker = fork(); in main()
212 if (worker < 0) { in main()
217 if (worker == 0) { in main()
343 if (waitpid(worker, &status, 0) != worker) { in main()
368 if (worker > 0) in main()
369 kill(worker, SIGKILL); in main()
/openbmc/linux/drivers/gpu/drm/msm/
H A Dmsm_atomic.c118 timer->worker = kthread_create_worker(0, "atomic-worker-%d", crtc_idx); in msm_atomic_init_pending_timer()
119 if (IS_ERR(timer->worker)) { in msm_atomic_init_pending_timer()
120 int ret = PTR_ERR(timer->worker); in msm_atomic_init_pending_timer()
121 timer->worker = NULL; in msm_atomic_init_pending_timer()
124 sched_set_fifo(timer->worker->task); in msm_atomic_init_pending_timer()
126 msm_hrtimer_work_init(&timer->work, timer->worker, in msm_atomic_init_pending_timer()
135 if (timer->worker) in msm_atomic_destroy_pending_timer()
136 kthread_destroy_worker(timer->worker); in msm_atomic_destroy_pending_timer()
H A Dmsm_io_utils.c107 kthread_queue_work(work->worker, &work->work); in msm_hrtimer_worktimer()
120 struct kthread_worker *worker, in msm_hrtimer_work_init() argument
127 work->worker = worker; in msm_hrtimer_work_init()
/openbmc/qemu/io/
H A Dtask.c29 QIOTaskWorker worker; member
124 task->thread->worker(task, task->thread->opaque); in qio_task_thread_worker()
151 QIOTaskWorker worker, in qio_task_run_in_thread() argument
163 data->worker = worker; in qio_task_run_in_thread()
170 trace_qio_task_thread_start(task, worker, opaque); in qio_task_run_in_thread()
/openbmc/linux/Documentation/core-api/
H A Dworkqueue.rst20 queue is called workqueue and the thread is called worker.
22 While there are work items on the workqueue the worker executes the
32 worker thread per CPU and a single threaded (ST) wq had one worker
60 * Use per-CPU unified worker pools shared by all wq to provide
82 worker threads become idle. These worker threads are managed in so
83 called worker-pools.
115 Each worker-pool bound to an actual CPU implements concurrency
169 worker-pools which host workers which are not bound to any
196 worker-pool of the target cpu. Highpri worker-pools are
197 served by worker threads with elevated nice level.
[all …]
/openbmc/linux/drivers/i2c/
H A Di2c-slave-testunit.c43 struct delayed_work worker; member
48 struct testunit_data *tu = container_of(work, struct testunit_data, worker.work); in i2c_slave_testunit_work()
118 queue_delayed_work(system_long_wq, &tu->worker, in i2c_slave_testunit_slave_cb()
151 INIT_DELAYED_WORK(&tu->worker, i2c_slave_testunit_work); in i2c_slave_testunit_probe()
160 cancel_delayed_work_sync(&tu->worker); in i2c_slave_testunit_remove()
/openbmc/sdbusplus/src/async/
H A Dcontext.cpp240 auto worker = std::exchange(pending, nullptr); in wait_for_wait_process_stopped() local
241 while (worker == nullptr) in wait_for_wait_process_stopped()
249 worker = std::exchange(staged, nullptr); in wait_for_wait_process_stopped()
250 if (!worker) in wait_for_wait_process_stopped()
255 if (worker) in wait_for_wait_process_stopped()
257 worker->stop(); in wait_for_wait_process_stopped()
/openbmc/linux/drivers/block/
H A Dloop.c847 worker = cur_worker; in loop_queue_work()
855 if (worker) in loop_queue_work()
863 if (!worker) { in loop_queue_work()
872 css_get(worker->blkcg_css); in loop_queue_work()
876 worker->lo = lo; in loop_queue_work()
880 if (worker) { in loop_queue_work()
888 work = &worker->work; in loop_queue_work()
917 css_put(worker->blkcg_css); in loop_free_idle_workers()
918 kfree(worker); in loop_free_idle_workers()
1959 if (worker && !work_pending(&worker->work)) { in loop_process_work()
[all …]
/openbmc/linux/fs/erofs/
H A Dzdata.c345 struct kthread_worker *worker; in erofs_destroy_percpu_workers() local
352 if (worker) in erofs_destroy_percpu_workers()
363 if (IS_ERR(worker)) in erofs_init_percpu_worker()
364 return worker; in erofs_init_percpu_worker()
367 return worker; in erofs_init_percpu_worker()
382 if (!IS_ERR(worker)) in erofs_init_percpu_workers()
401 if (IS_ERR(worker)) in erofs_cpu_online()
402 return PTR_ERR(worker); in erofs_cpu_online()
426 if (worker) in erofs_cpu_offline()
1418 worker = rcu_dereference( in z_erofs_decompress_kickoff()
[all …]

1234567