| /f-stack/freebsd/sys/ |
| H A D | syscallsubr.h | 112 int kern_close(struct thread *td, int fd); 160 int kern_getppid(struct thread *); 165 int kern_getsid(struct thread *td, pid_t pid); 256 int kern_sched_getparam(struct thread *td, struct thread *targettd, 258 int kern_sched_getscheduler(struct thread *td, struct thread *targettd, 260 int kern_sched_setparam(struct thread *td, struct thread *targettd, 262 int kern_sched_setscheduler(struct thread *td, struct thread *targettd, 266 int kern_sched_rr_get_interval_td(struct thread *td, struct thread *targettd, 312 int kern_sync(struct thread *td); 315 int kern_ktimer_delete(struct thread *, int); [all …]
|
| H A D | sched.h | 85 void sched_fork(struct thread *td, struct thread *childtd); 94 void sched_exit_thread(struct thread *td, struct thread *child); 95 u_int sched_estcpu(struct thread *td); 96 void sched_fork_thread(struct thread *td, struct thread *child); 104 void sched_throw(struct thread *td); 115 sched_userret(struct thread *td) in sched_userret() 137 struct thread *sched_choose(void); 140 void sched_preempt(struct thread *td); 142 void sched_rem(struct thread *td); 151 void sched_unbind(struct thread *td); [all …]
|
| H A D | sysproto.h | 24 struct thread; 1850 int nosys(struct thread *, struct nosys_args *); 1852 int sys_fork(struct thread *, struct fork_args *); 1853 int sys_read(struct thread *, struct read_args *); 1855 int sys_open(struct thread *, struct open_args *); 1884 int sys_dup(struct thread *, struct dup_args *); 2383 int ostat(struct thread *, struct ostat_args *); 2391 int ommap(struct thread *, struct ommap_args *); 2392 int owait(struct thread *, struct owait_args *); 2396 int osend(struct thread *, struct osend_args *); [all …]
|
| H A D | ptrace.h | 181 int ptrace_set_pc(struct thread *_td, unsigned long _addr); 182 int ptrace_single_step(struct thread *_td); 183 int ptrace_clear_single_step(struct thread *_td); 199 int proc_read_regs(struct thread *_td, struct reg *_reg); 200 int proc_write_regs(struct thread *_td, struct reg *_reg); 201 int proc_read_fpregs(struct thread *_td, struct fpreg *_fpreg); 202 int proc_write_fpregs(struct thread *_td, struct fpreg *_fpreg); 203 int proc_read_dbregs(struct thread *_td, struct dbreg *_dbreg); 204 int proc_write_dbregs(struct thread *_td, struct dbreg *_dbreg); 205 int proc_sstep(struct thread *_td); [all …]
|
| H A D | proc.h | 196 struct thread; 229 struct thread { struct 384 struct thread t0st_thread; argument 1132 void cpu_switch(struct thread *, struct thread *, struct mtx *); 1133 void cpu_throw(struct thread *, struct thread *) __dead2; 1134 void unsleep(struct thread *); 1139 void cpu_copy_thread(struct thread *td, struct thread *td0); 1142 void cpu_fork(struct thread *, struct proc *, struct thread *, int); 1160 void thread_cow_get(struct thread *newtd, struct thread *td); 1189 struct thread *td; in curthread_pflags_set() [all …]
|
| H A D | runq.h | 36 struct thread; 48 TAILQ_HEAD(rqhead, thread); 67 void runq_add(struct runq *, struct thread *, int); 68 void runq_add_pri(struct runq *, struct thread *, u_char, int); 70 struct thread *runq_choose(struct runq *); 71 struct thread *runq_choose_from(struct runq *, u_char); 72 struct thread *runq_choose_fuzz(struct runq *, int); 74 void runq_remove(struct runq *, struct thread *); 75 void runq_remove_idx(struct runq *, struct thread *, u_char *);
|
| H A D | kdb.h | 38 struct thread; 43 typedef void dbbe_trace_thread_f(struct thread *); 73 extern struct thread *kdb_thread; /* Current thread. */ 79 void kdb_backtrace_thread(struct thread *); 88 struct pcb *kdb_thr_ctx(struct thread *); 89 struct thread *kdb_thr_first(void); 90 struct thread *kdb_thr_from_pid(pid_t); 91 struct thread *kdb_thr_lookup(lwpid_t); 92 struct thread *kdb_thr_next(struct thread *); 93 int kdb_thr_select(struct thread *);
|
| H A D | file.h | 51 struct thread; 102 struct thread *td); 121 struct thread *td); 343 struct thread *td) in fo_truncate() 351 struct thread *td) in fo_ioctl() 359 struct thread *td) in fo_poll() 367 struct thread *td) in fo_stat() 389 struct thread *td) in fo_chmod() 397 struct thread *td) in fo_chown() 406 struct thread *td) in fo_sendfile() [all …]
|
| H A D | protosw.h | 41 struct thread; 193 struct thread *td); 195 struct thread *td); 202 struct thread *td); 208 struct thread *td); 243 struct thread *td); 245 struct thread *td); 247 struct thread *td); 249 struct thread *td); 266 struct thread *td); [all …]
|
| H A D | filedesc.h | 217 struct thread; 231 int closef(struct file *fp, struct thread *td); 248 int fdcheckstd(struct thread *td); 250 void fdcloseexec(struct thread *td); 251 void fdsetugidsafety(struct thread *td); 256 void fdunshare(struct thread *td); 257 void fdescfree(struct thread *td); 329 void pdescfree(struct thread *td); 332 void pdunshare(struct thread *td); 334 void pwd_chdir(struct thread *td, struct vnode *vp); [all …]
|
| /f-stack/app/micro_thread/ |
| H A D | micro_thread.cpp | 379 thread->Run(); in ScheduleStartRun() 393 if ((NULL == thread) || (false == thread->Initial())) in InitialPool() 396 if (thread) delete thread; in InitialPool() 457 if ((NULL == thread) || (false == thread->Initial())) in AllocThread() 461 if (thread) delete thread; in AllocThread() 479 thread->Reset(); in FreeThread() 599 while (thread) in Destroy() 651 return thread; in CreateThread() 698 thread = thread->GetParent(); in GetRootThread() 753 while (thread && (thread->GetWakeupTime() <= now)) in WakeupTimeout() [all …]
|
| /f-stack/freebsd/contrib/ck/src/ |
| H A D | ck_hp.c | 230 cache = thread->cache; in ck_hp_reclaim() 254 thread->n_pending -= 1; in ck_hp_reclaim() 264 thread->n_reclamations++; in ck_hp_reclaim() 281 thread->n_pending += 1; in ck_hp_retire() 282 if (thread->n_pending > thread->n_peak) in ck_hp_retire() 283 thread->n_peak = thread->n_pending; in ck_hp_retire() 301 thread->n_pending += 1; in ck_hp_free() 302 if (thread->n_pending > thread->n_peak) in ck_hp_free() 303 thread->n_peak = thread->n_pending; in ck_hp_free() 306 ck_hp_reclaim(thread); in ck_hp_free() [all …]
|
| /f-stack/freebsd/arm/linux/ |
| H A D | linux_proto.h | 24 struct thread; 1234 int linux_exit(struct thread *, struct linux_exit_args *); 1235 int linux_fork(struct thread *, struct linux_fork_args *); 1236 int linux_open(struct thread *, struct linux_open_args *); 1238 int linux_link(struct thread *, struct linux_link_args *); 1252 int linux_nice(struct thread *, struct linux_nice_args *); 1253 int linux_kill(struct thread *, struct linux_kill_args *); 1257 int linux_pipe(struct thread *, struct linux_pipe_args *); 1259 int linux_brk(struct thread *, struct linux_brk_args *); 1416 int linux_bind(struct thread *, struct linux_bind_args *); [all …]
|
| /f-stack/freebsd/contrib/zstd/lib/common/ |
| H A D | threading.c | 40 ZSTD_pthread_t* const thread = (ZSTD_pthread_t*) arg; in worker() local 41 thread->arg = thread->start_routine(thread->arg); in worker() 45 int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused, in ZSTD_pthread_create() argument 49 thread->arg = arg; in ZSTD_pthread_create() 50 thread->start_routine = start_routine; in ZSTD_pthread_create() 51 thread->handle = (HANDLE) _beginthreadex(NULL, 0, worker, thread, 0, NULL); in ZSTD_pthread_create() 53 if (!thread->handle) in ZSTD_pthread_create() 59 int ZSTD_pthread_join(ZSTD_pthread_t thread, void **value_ptr) in ZSTD_pthread_join() argument 63 if (!thread.handle) return 0; in ZSTD_pthread_join() 65 result = WaitForSingleObject(thread.handle, INFINITE); in ZSTD_pthread_join() [all …]
|
| /f-stack/freebsd/i386/linux/ |
| H A D | linux_proto.h | 24 struct thread; 1590 int linux_exit(struct thread *, struct linux_exit_args *); 1591 int linux_fork(struct thread *, struct linux_fork_args *); 1592 int linux_open(struct thread *, struct linux_open_args *); 1595 int linux_link(struct thread *, struct linux_link_args *); 1599 int linux_time(struct thread *, struct linux_time_args *); 1603 int linux_stat(struct thread *, struct linux_stat_args *); 1624 int linux_brk(struct thread *, struct linux_brk_args *); 1676 int linux_ipc(struct thread *, struct linux_ipc_args *); 1833 int linux_tee(struct thread *, struct linux_tee_args *); [all …]
|
| /f-stack/freebsd/amd64/linux32/ |
| H A D | linux32_proto.h | 24 struct thread; 1597 int linux_exit(struct thread *, struct linux_exit_args *); 1598 int linux_fork(struct thread *, struct linux_fork_args *); 1599 int linux_open(struct thread *, struct linux_open_args *); 1602 int linux_link(struct thread *, struct linux_link_args *); 1606 int linux_time(struct thread *, struct linux_time_args *); 1610 int linux_stat(struct thread *, struct linux_stat_args *); 1630 int linux_brk(struct thread *, struct linux_brk_args *); 1682 int linux_ipc(struct thread *, struct linux_ipc_args *); 1838 int linux_tee(struct thread *, struct linux_tee_args *); [all …]
|
| /f-stack/freebsd/arm64/include/ |
| H A D | reg.h | 90 int fill_regs(struct thread *, struct reg *); 91 int set_regs(struct thread *, struct reg *); 92 int fill_fpregs(struct thread *, struct fpreg *); 93 int set_fpregs(struct thread *, struct fpreg *); 94 int fill_dbregs(struct thread *, struct dbreg *); 95 int set_dbregs(struct thread *, struct dbreg *); 97 int fill_regs32(struct thread *, struct reg32 *); 98 int set_regs32(struct thread *, struct reg32 *); 99 int fill_fpregs32(struct thread *, struct fpreg32 *); 100 int set_fpregs32(struct thread *, struct fpreg32 *); [all …]
|
| /f-stack/freebsd/amd64/linux/ |
| H A D | linux_proto.h | 24 struct thread; 1335 int linux_open(struct thread *, struct linux_open_args *); 1342 int linux_brk(struct thread *, struct linux_brk_args *); 1350 int linux_pipe(struct thread *, struct linux_pipe_args *); 1374 int linux_bind(struct thread *, struct linux_bind_args *); 1382 int linux_fork(struct thread *, struct linux_fork_args *); 1385 int linux_exit(struct thread *, struct linux_exit_args *); 1387 int linux_kill(struct thread *, struct linux_kill_args *); 1408 int linux_link(struct thread *, struct linux_link_args *); 1554 int linux_tee(struct thread *, struct linux_tee_args *); [all …]
|
| /f-stack/freebsd/contrib/ck/include/spinlock/ |
| H A D | hclh.h | 76 struct ck_spinlock_hclh *thread) in ck_spinlock_hclh_lock() argument 81 thread->wait = true; in ck_spinlock_hclh_lock() 82 thread->splice = false; in ck_spinlock_hclh_lock() 83 thread->cluster_id = (*local_queue)->cluster_id; in ck_spinlock_hclh_lock() 85 thread->previous = *local_queue; in ck_spinlock_hclh_lock() 91 previous = ck_pr_fas_ptr(local_queue, thread); in ck_spinlock_hclh_lock() 92 thread->previous = previous; in ck_spinlock_hclh_lock() 123 ck_spinlock_hclh_unlock(struct ck_spinlock_hclh **thread) in ck_spinlock_hclh_unlock() argument 134 previous = thread[0]->previous; in ck_spinlock_hclh_unlock() 138 ck_pr_store_uint(&(*thread)->wait, false); in ck_spinlock_hclh_unlock() [all …]
|
| /f-stack/freebsd/mips/include/ |
| H A D | reg.h | 89 int fill_fpregs(struct thread *, struct fpreg *); 90 int fill_regs(struct thread *, struct reg *); 91 int set_fpregs(struct thread *, struct fpreg *); 92 int set_regs(struct thread *, struct reg *); 93 int fill_dbregs(struct thread *, struct dbreg *); 94 int set_dbregs(struct thread *, struct dbreg *); 100 int fill_regs32(struct thread *, struct reg32 *); 101 int set_regs32(struct thread *, struct reg32 *); 102 int fill_fpregs32(struct thread *, struct fpreg32 *); 103 int set_fpregs32(struct thread *, struct fpreg32 *);
|
| /f-stack/freebsd/arm64/linux/ |
| H A D | linux_proto.h | 24 struct thread; 1137 int linux_dup3(struct thread *, struct linux_dup3_args *); 1138 int linux_fcntl(struct thread *, struct linux_fcntl_args *); 1142 int linux_ioctl(struct thread *, struct linux_ioctl_args *); 1177 int linux_tee(struct thread *, struct linux_tee_args *); 1190 int linux_exit(struct thread *, struct linux_exit_args *); 1224 int linux_kill(struct thread *, struct linux_kill_args *); 1277 int linux_bind(struct thread *, struct linux_bind_args *); 1290 int linux_brk(struct thread *, struct linux_brk_args *); 1326 int linux_kcmp(struct thread *, struct linux_kcmp_args *); [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | p1003_1b.c | 115 struct thread *targettd; 141 kern_sched_setparam(struct thread *td, struct thread *targettd, 162 struct thread *targettd; 185 kern_sched_getparam(struct thread *td, struct thread *targettd, 205 struct thread *targettd; 230 kern_sched_setscheduler(struct thread *td, struct thread *targettd, 255 struct thread *targettd; 278 kern_sched_getscheduler(struct thread *td, struct thread *targettd, 324 sys_sched_rr_get_interval(struct thread *td, 341 struct thread *targettd; [all …]
|
| /f-stack/dpdk/examples/performance-thread/l3fwd-thread/ |
| H A D | test.sh | 13 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3 \ 25 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3 \ 36 ./build/l3fwd-thread -c 1ff -n 2 -- -P -p 3 \ 47 ./build/l3fwd-thread -c 3ffff -n 2 -- -P -p 3 \ 63 ./build/l3fwd-thread -c ff -n 2 --lcores="2,(0-1)@0" -- -P -p 3 \ 75 ./build/l3fwd-thread -c ff -n 2 --lcores="(0-3)@0,4" -- -P -p 3 \ 86 ./build/l3fwd-thread -c 3ffff -n 2 --lcores="(0-7)@0,8" -- -P -p 3 \ 97 ./build/l3fwd-thread -c 3ffff -n 2 --lcores="(0-15)@0,16" -- -P -p 3 \ 113 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3 \ 123 ./build/l3fwd-thread -c ff -n 2 -- -P -p 3 \ [all …]
|
| /f-stack/tools/compat/include/sys/ |
| H A D | protosw.h | 39 struct thread; 191 struct thread *td); 193 struct thread *td); 200 struct thread *td); 206 struct thread *td); 240 struct thread *td); 242 struct thread *td); 244 struct thread *td); 246 struct thread *td); 263 struct thread *td); [all …]
|
| /f-stack/freebsd/arm/arm/ |
| H A D | vm_machdep.c | 96 cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) in cpu_fork() 155 cpu_thread_swapin(struct thread *td) in cpu_thread_swapin() 160 cpu_thread_swapout(struct thread *td) in cpu_thread_swapout() 165 cpu_set_syscall_retval(struct thread *td, int error) in cpu_set_syscall_retval() 205 cpu_copy_thread(struct thread *td, struct thread *td0) in cpu_copy_thread() 241 cpu_set_user_tls(struct thread *td, void *tls_base) in cpu_set_user_tls() 251 cpu_thread_exit(struct thread *td) in cpu_thread_exit() 256 cpu_thread_alloc(struct thread *td) in cpu_thread_alloc() 269 cpu_thread_free(struct thread *td) in cpu_thread_free() 274 cpu_thread_clean(struct thread *td) in cpu_thread_clean() [all …]
|