/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | processor.h | 110 /* Allow breakpoints and watchpoints to be disabled for this thread. */ 184 static inline unsigned int thread_get_vl(struct thread_struct *thread, in thread_get_vl() argument 187 return thread->vl[type]; in thread_get_vl() 190 static inline unsigned int thread_get_sve_vl(struct thread_struct *thread) in thread_get_sve_vl() argument 192 return thread_get_vl(thread, ARM64_VEC_SVE); in thread_get_sve_vl() 195 static inline unsigned int thread_get_sme_vl(struct thread_struct *thread) in thread_get_sme_vl() argument 197 return thread_get_vl(thread, ARM64_VEC_SME); in thread_get_sme_vl() 200 static inline unsigned int thread_get_cur_vl(struct thread_struct *thread) in thread_get_cur_vl() argument 202 if (system_supports_sme() && (thread->svcr & SVCR_SM_MASK)) in thread_get_cur_vl() 203 return thread_get_sme_vl(thread); in thread_get_cur_vl() [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | vdso.c | 18 #include "thread.h" 144 struct thread *thread) in machine__thread_dso_type() 149 maps__for_each_entry(thread->maps, map) { in machine__thread_dso_type() 257 struct thread *thread, in __machine__findnew_vdso_compat() 263 dso_type = machine__thread_dso_type(machine, thread); in __machine__findnew_vdso_compat() 291 struct thread *thread) in machine__find_vdso() 296 dso_type = machine__thread_dso_type(machine, thread); in machine__find_vdso() 143 machine__thread_dso_type(struct machine *machine, struct thread *thread) machine__thread_dso_type() argument 256 __machine__findnew_vdso_compat(struct machine *machine, struct thread *thread, struct vdso_info *vdso_info, struct dso **dso) __machine__findnew_vdso_compat() argument 290 machine__find_vdso(struct machine *machine, struct thread *thread) machine__find_vdso() argument 320 machine__findnew_vdso(struct machine *machine, struct thread *thread) machine__findnew_vdso() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | shstk.c | 33 return current->thread.features & features; in features_enabled() 38 current->thread.features |= features; in features_set() 43 current->thread.features &= ~features; in features_clr() 159 struct thread_shstk *shstk = ¤t->thread.shstk; in shstk_setup() 189 memset(¤t->thread.shstk, 0, sizeof(struct thread_shstk)); in reset_thread_features() 190 current->thread.features = 0; in reset_thread_features() 191 current->thread.features_locked = 0; in reset_thread_features() 197 struct thread_shstk *shstk = &tsk->thread.shstk; in shstk_alloc_thread_stack() 201 * If shadow stack is not enabled on the new thread, skip any in shstk_alloc_thread_stack() 209 * Make sure to clear the internal tracking of the thread shado in shstk_alloc_thread_stack() [all...] |
H A D | tls.c | 24 struct thread_struct *t = ¤t->thread; in get_free_idx() 88 struct thread_struct *t = &p->thread; in set_tls_desc() 106 if (t == ¤t->thread) in set_tls_desc() 175 if (p->thread.fsindex == modified_sel) in do_set_thread_area() 176 p->thread.fsbase = info.base_addr; in do_set_thread_area() 178 if (p->thread.gsindex == modified_sel) in do_set_thread_area() 179 p->thread.gsbase = info.base_addr; in do_set_thread_area() 231 fill_user_desc(&info, idx, &p->thread.tls_array[index]); in do_get_thread_area() 246 struct thread_struct *t = &target->thread; in regset_tls_active() 260 for (pos = 0, tls = target->thread in regset_tls_get() [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | hists_link.c | 11 #include "thread.h" 20 struct thread *thread; member 98 thread__put(fake_common_samples[k].thread); in add_hist_entries() 99 fake_common_samples[k].thread = thread__get(al.thread); in add_hist_entries() 118 thread__put(fake_samples[i][k].thread); in add_hist_entries() 119 fake_samples[i][k].thread = thread__get(al.thread); in add_hist_entries() 148 struct thread * in find_sample() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | vdso.c | 18 #include "thread.h" 144 struct thread *thread) in machine__thread_dso_type() 149 maps__for_each_entry(thread__maps(thread), rb_node) { in machine__thread_dso_type() 258 struct thread *thread, in __machine__findnew_vdso_compat() 264 dso_type = machine__thread_dso_type(machine, thread); in __machine__findnew_vdso_compat() 292 struct thread *thread) in machine__find_vdso() 297 dso_type = machine__thread_dso_type(machine, thread); in machine__find_vdso() 143 machine__thread_dso_type(struct machine *machine, struct thread *thread) machine__thread_dso_type() argument 257 __machine__findnew_vdso_compat(struct machine *machine, struct thread *thread, struct vdso_info *vdso_info, struct dso **dso) __machine__findnew_vdso_compat() argument 291 machine__find_vdso(struct machine *machine, struct thread *thread) machine__find_vdso() argument 321 machine__findnew_vdso(struct machine *machine, struct thread *thread) machine__findnew_vdso() argument [all...] |
H A D | addr_location.c | 5 #include "thread.h" 9 al->thread = NULL; in addr_location__init() 31 thread__zput(al->thread); in addr_location__exit() 37 thread__put(dst->thread); in addr_location__copy() 41 dst->thread = thread__get(src->thread); in addr_location__copy()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | signal.c | 113 __put_user(get_fpr64(¤t->thread.fpu.fpr[i], 0), in copy_fpu_to_sigcontext() 116 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_fpu_to_sigcontext() 117 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext() 133 set_fpr64(¤t->thread.fpu.fpr[i], 0, fpr_val); in copy_fpu_from_sigcontext() 135 err |= __get_user(current->thread.fpu.fcc, fcc); in copy_fpu_from_sigcontext() 136 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_from_sigcontext() 150 err |= __put_user(get_fpr64(¤t->thread.fpu.fpr[i], 0), in copy_lsx_to_sigcontext() 152 err |= __put_user(get_fpr64(¤t->thread.fpu.fpr[i], 1), in copy_lsx_to_sigcontext() 155 err |= __put_user(current->thread.fpu.fcc, fcc); in copy_lsx_to_sigcontext() 156 err |= __put_user(current->thread in copy_lsx_to_sigcontext() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | kgdb.c | 186 memcpy((void *)¤t->thread.fpu.fcsr, mem, in dbg_set_reg() 191 memcpy((char *)¤t->thread.fpu.fcc + fp_reg, mem, in dbg_set_reg() 195 memcpy((void *)¤t->thread.fpu.fpr[fp_reg], mem, in dbg_set_reg() 223 memcpy(mem, (void *)¤t->thread.fpu.fcsr, in dbg_get_reg() 228 memcpy(mem, (char *)¤t->thread.fpu.fcc + fp_reg, in dbg_get_reg() 232 memcpy(mem, (void *)¤t->thread.fpu.fpr[fp_reg], in dbg_get_reg() 277 *(ptr++) = p->thread.reg01; in sleeping_thread_to_gdb_regs() 279 *(ptr++) = p->thread.reg03; in sleeping_thread_to_gdb_regs() 284 *(ptr++) = p->thread.reg23; in sleeping_thread_to_gdb_regs() 285 *(ptr++) = p->thread in sleeping_thread_to_gdb_regs() [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | signal.c | 109 save_access_regs(current->thread.acrs); in store_sigregs() 116 restore_access_regs(current->thread.acrs); in load_sigregs() 130 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs() 132 fpregs_store(&user_sregs.fpregs, ¤t->thread.fpu); in save_sigregs() 167 memcpy(¤t->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs() 168 sizeof(current->thread.acrs)); in restore_sigregs() 170 fpregs_load(&user_sregs.fpregs, ¤t->thread.fpu); in restore_sigregs() 186 vxrs[i] = *((__u64 *)(current->thread.fpu.vxrs + i) + 1); in save_sigregs_ext() 190 current->thread.fpu.vxrs + __NUM_VXRS_LOW, in save_sigregs_ext() 207 __copy_from_user(current->thread in restore_sigregs_ext() [all...] |
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | signal.c | 110 save_access_regs(current->thread.acrs); in store_sigregs() 117 restore_access_regs(current->thread.acrs); in load_sigregs() 131 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs() 133 fpregs_store(&user_sregs.fpregs, ¤t->thread.fpu); in save_sigregs() 168 memcpy(¤t->thread.acrs, &user_sregs.regs.acrs, in restore_sigregs() 169 sizeof(current->thread.acrs)); in restore_sigregs() 171 fpregs_load(&user_sregs.fpregs, ¤t->thread.fpu); in restore_sigregs() 187 vxrs[i] = current->thread.fpu.vxrs[i].low; in save_sigregs_ext() 191 current->thread.fpu.vxrs + __NUM_VXRS_LOW, in save_sigregs_ext() 208 __copy_from_user(current->thread in restore_sigregs_ext() [all...] |
/kernel/linux/linux-5.10/arch/um/kernel/skas/ |
H A D | process.c | 43 init_task.thread.request.u.thread.proc = start_kernel_proc; in start_uml() 44 init_task.thread.request.u.thread.arg = NULL; in start_uml() 46 &init_task.thread.switch_buf); in start_uml()
|
/kernel/linux/linux-6.6/arch/um/kernel/skas/ |
H A D | process.c | 43 init_task.thread.request.u.thread.proc = start_kernel_proc; in start_uml() 44 init_task.thread.request.u.thread.arg = NULL; in start_uml() 46 &init_task.thread.switch_buf); in start_uml()
|
/third_party/openssl/test/ |
H A D | threadstest.h | 27 static int wait_for_thread(thread_t thread) in wait_for_thread() argument 52 static int wait_for_thread(thread_t thread) in wait_for_thread() argument 54 return WaitForSingleObject(thread, INFINITE) == 0; in wait_for_thread() 76 static int wait_for_thread(thread_t thread) in wait_for_thread() argument 78 return pthread_join(thread, NULL) == 0; in wait_for_thread()
|
/kernel/linux/linux-5.10/arch/m68k/kernel/ |
H A D | ptrace.c | 42 /* Find the stack offset for a register, relative to thread.esp0. */ 79 addr = &task->thread.usp; in get_reg() 81 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in get_reg() 86 long stkadj = *(long *)(task->thread.esp0 + PT_REG(stkadj)); in get_reg() 104 addr = &task->thread.usp; in put_reg() 106 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in put_reg() 111 long stkadj = *(long *)(task->thread.esp0 + PT_REG(stkadj)); in put_reg() 178 tmp = child->thread.fp[regno - 21]; in arch_ptrace() 219 child->thread.fp[regno - 21] = data; in arch_ptrace() 249 if (copy_to_user(datap, &child->thread in arch_ptrace() [all...] |
/kernel/linux/linux-5.10/arch/mips/math-emu/ |
H A D | dsemul.c | 20 * page in response to a call to mips_dsemul(). Each thread may be allocated 26 * the thread. In these cases the allocated frame will either be reused by 28 * upon thread exit. 54 * frame allocated to each thread, allowing us to clean it up at later 55 * points such as signal delivery or thread exit. 60 * to the thread, and must not allow the user to do anything they 134 /* If some thread is waiting for a frame, now's its chance */ in free_emuframe() 157 fr_idx = atomic_xchg(&tsk->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_cleanup() 165 /* Free the frame that this thread had allocated */ in dsemul_thread_cleanup() 183 fr_idx = atomic_read(¤t->thread in dsemul_thread_rollback() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | tls.c | 23 struct thread_struct *t = ¤t->thread; in get_free_idx() 87 struct thread_struct *t = &p->thread; in set_tls_desc() 105 if (t == ¤t->thread) in set_tls_desc() 180 if (p->thread.fsindex == modified_sel) in do_set_thread_area() 181 p->thread.fsbase = info.base_addr; in do_set_thread_area() 183 if (p->thread.gsindex == modified_sel) in do_set_thread_area() 184 p->thread.gsbase = info.base_addr; in do_set_thread_area() 236 fill_user_desc(&info, idx, &p->thread.tls_array[index]); in do_get_thread_area() 251 struct thread_struct *t = &target->thread; in regset_tls_active() 265 for (pos = 0, tls = target->thread in regset_tls_get() [all...] |
/kernel/linux/linux-6.6/arch/mips/math-emu/ |
H A D | dsemul.c | 20 * page in response to a call to mips_dsemul(). Each thread may be allocated 26 * the thread. In these cases the allocated frame will either be reused by 28 * upon thread exit. 54 * frame allocated to each thread, allowing us to clean it up at later 55 * points such as signal delivery or thread exit. 60 * to the thread, and must not allow the user to do anything they 131 /* If some thread is waiting for a frame, now's its chance */ in free_emuframe() 154 fr_idx = atomic_xchg(&tsk->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_cleanup() 162 /* Free the frame that this thread had allocated */ in dsemul_thread_cleanup() 180 fr_idx = atomic_read(¤t->thread in dsemul_thread_rollback() [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | rtkit.c | 171 int rtkit_make_realtime(DBusConnection *connection, pid_t thread, int priority) { in rtkit_make_realtime() argument 180 if (thread == 0) in rtkit_make_realtime() 181 thread = _gettid(); in rtkit_make_realtime() 192 u64 = (dbus_uint64_t) thread; in rtkit_make_realtime() 230 int rtkit_make_high_priority(DBusConnection *connection, pid_t thread, int nice_level) { in rtkit_make_high_priority() argument 239 if (thread == 0) in rtkit_make_high_priority() 240 thread = _gettid(); in rtkit_make_high_priority() 251 u64 = (dbus_uint64_t) thread; in rtkit_make_high_priority() 293 int rtkit_make_realtime(DBusConnection *connection, pid_t thread, int priority) { in rtkit_make_realtime() argument 297 int rtkit_make_high_priority(DBusConnection *connection, pid_t thread, in argument [all...] |
/kernel/linux/linux-5.10/arch/x86/um/ |
H A D | syscalls_64.c | 27 * GDT or thread.fs being set instead). So, we let the host in arch_prctl() 28 * fiddle the registers and thread struct and restore the in arch_prctl() 39 ret = restore_pid_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 62 current->thread.arch.fs = (unsigned long) ptr; in arch_prctl() 63 ret = save_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 66 ret = save_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 86 if ((to->thread.arch.fs == 0) || (to->mm == NULL)) in arch_switch_to() 89 arch_prctl(to, ARCH_SET_FS, (void __user *) to->thread.arch.fs); in arch_switch_to()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-altivec.c | 26 return target->thread.used_vr ? regset->n : 0; in vr_active() 56 membuf_write(&to, &target->thread.vr_state, 33 * sizeof(vector128)); in vr_get() 61 vrsave.word = target->thread.vrsave; in vr_get() 91 &target->thread.vr_state, 0, in vr_set() 104 vrsave.word = target->thread.vrsave; in vr_set() 111 target->thread.vrsave = vrsave.word; in vr_set()
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/ |
H A D | fpu.c | 22 if (!tsk->thread.xstate) { in init_fpu() 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu() 25 if (!tsk->thread.xstate) in init_fpu() 30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu() 34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu() 51 tsk->thread.fpu_counter++; in __fpu_state_restore()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-altivec.c | 26 return target->thread.used_vr ? regset->n : 0; in vr_active() 56 membuf_write(&to, &target->thread.vr_state, 33 * sizeof(vector128)); in vr_get() 61 vrsave.word = target->thread.vrsave; in vr_get() 91 &target->thread.vr_state, 0, in vr_set() 104 vrsave.word = target->thread.vrsave; in vr_set() 111 target->thread.vrsave = vrsave.word; in vr_set()
|
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/ |
H A D | fpu.c | 22 if (!tsk->thread.xstate) { in init_fpu() 23 tsk->thread.xstate = kmem_cache_alloc(task_xstate_cachep, in init_fpu() 25 if (!tsk->thread.xstate) in init_fpu() 30 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu() 34 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu() 51 tsk->thread.fpu_counter++; in __fpu_state_restore()
|
/kernel/linux/linux-5.10/drivers/net/wireless/rsi/ |
H A D | rsi_common.h | 60 struct rsi_thread *thread, in rsi_create_kthread() 64 init_completion(&thread->completion); in rsi_create_kthread() 65 atomic_set(&thread->thread_done, 0); in rsi_create_kthread() 66 thread->task = kthread_run(func_ptr, common, "%s", name); in rsi_create_kthread() 67 if (IS_ERR(thread->task)) in rsi_create_kthread() 68 return (int)PTR_ERR(thread->task); in rsi_create_kthread() 59 rsi_create_kthread(struct rsi_common *common, struct rsi_thread *thread, void *func_ptr, u8 *name) rsi_create_kthread() argument
|