/kernel/linux/linux-6.6/arch/x86/um/ |
H A D | tls_32.c | 65 struct thread_struct *t = &task->thread; in get_free_idx() 96 &to->thread.arch.tls_array[idx - GDT_ENTRY_TLS_MIN]; in load_TLS() 136 &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN]; in needs_TLS_update() 160 &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN]; in clear_flushed_tls() 177 * However, if each thread had a different host process (and this was discussed 203 struct thread_struct *t = &task->thread; in set_tls_entry() 238 struct thread_struct *t = &task->thread; in get_tls_entry()
|
H A D | signal.c | 242 struct faultinfo * fi = ¤t->thread.arch.faultinfo; in copy_sc_to_user() 334 err |= copy_sc_to_user(&uc->uc_mcontext, fp, ¤t->thread.regs, 0); in copy_ucontext_to_user() 455 unsigned long sp = PT_REGS_SP(¤t->thread.regs); in sys_sigreturn() 467 if (copy_sc_from_user(¤t->thread.regs, sc)) in sys_sigreturn() 471 PT_REGS_SYSCALL_NR(¤t->thread.regs) = -1; in sys_sigreturn() 472 return PT_REGS_SYSCALL_RET(¤t->thread.regs); in sys_sigreturn() 562 unsigned long sp = PT_REGS_SP(¤t->thread.regs); in sys_rt_sigreturn() 573 if (copy_sc_from_user(¤t->thread.regs, &uc->uc_mcontext)) in sys_rt_sigreturn() 577 PT_REGS_SYSCALL_NR(¤t->thread.regs) = -1; in sys_rt_sigreturn() 578 return PT_REGS_SYSCALL_RET(¤t->thread in sys_rt_sigreturn() [all...] |
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
H A D | thread_notify.h | 29 static inline void thread_notify(unsigned long rc, struct thread_info *thread) in thread_notify() argument 32 atomic_notifier_call_chain(&thread_notify_head, rc, thread); in thread_notify() 38 * These are the reason codes for the thread notifier.
|
/kernel/linux/linux-6.6/arch/arm/include/asm/ |
H A D | thread_notify.h | 29 static inline void thread_notify(unsigned long rc, struct thread_info *thread) in thread_notify() argument 32 atomic_notifier_call_chain(&thread_notify_head, rc, thread); in thread_notify() 38 * These are the reason codes for the thread notifier.
|
/kernel/linux/linux-5.10/include/linux/iio/ |
H A D | triggered_buffer.h | 12 irqreturn_t (*thread)(int irq, void *p), 19 irqreturn_t (*thread)(int irq, void *p),
|
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-record.c | 121 static __thread struct record_thread *thread; variable 252 thread->bytes_written += size; in record__write() 640 thread->samples++; in record__pushfn() 1138 pr_err("Failed to duplicate descriptor in main thread pollfd\n"); in record__dup_non_perf_events() 1145 pr_err("Failed to map thread and evlist pollfd indexes\n"); in record__dup_non_perf_events() 1159 pr_err("Failed to allocate thread data\n"); in record__alloc_thread_data() 1172 pr_err("Failed to initialize thread[%d] maps\n", t); in record__alloc_thread_data() 1177 pr_err("Failed to initialize thread[%d] pollfd\n", t); in record__alloc_thread_data() 1184 pr_err("Failed to open thread[%d] communication pipes\n", t); in record__alloc_thread_data() 1190 pr_err("Failed to add descriptor to thread[ in record__alloc_thread_data() [all...] |
/kernel/linux/linux-6.6/tools/perf/ui/browsers/ |
H A D | hists.c | 30 #include "../../util/thread.h" 2277 static struct thread *hist_browser__selected_thread(struct hist_browser *browser) in hist_browser__selected_thread() 2279 return browser->he_selection->thread; in hist_browser__selected_thread() 2418 struct thread *thread; member 2514 struct thread *thread = act->thread; in do_zoom_thread() local 2516 if ((!hists__has(browser->hists, thread) && in do_zoom_thread() 2517 !hists__has(browser->hists, comm)) || thread in do_zoom_thread() 2548 add_thread_opt(struct hist_browser *browser, struct popup_action *act, char **optstr, struct thread *thread) add_thread_opt() argument 2723 add_script_opt_2(struct hist_browser *browser __maybe_unused, struct popup_action *act, char **optstr, struct thread *thread, struct symbol *sym, struct evsel *evsel, const char *tstr) add_script_opt_2() argument 2750 add_script_opt(struct hist_browser *browser, struct popup_action *act, char **optstr, struct thread *thread, struct symbol *sym, struct evsel *evsel) add_script_opt() argument 3028 struct thread *thread = NULL; evsel__hists_browse() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process.c | 66 static struct kfd_process *find_process(const struct task_struct *thread); 68 static struct kfd_process *create_process(const struct task_struct *thread); 747 struct task_struct *thread = current; in kfd_create_process() local 750 if (!thread->mm) in kfd_create_process() 754 if (thread->group_leader->mm != thread->mm) in kfd_create_process() 765 process = find_process(thread); in kfd_create_process() 769 process = create_process(thread); in kfd_create_process() 827 struct kfd_process *kfd_get_process(const struct task_struct *thread) in kfd_get_process() argument 831 if (!thread in kfd_get_process() 857 find_process(const struct task_struct *thread) find_process() argument 1150 create_process(const struct task_struct *thread) create_process() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/um/ |
H A D | signal.c | 241 struct faultinfo * fi = ¤t->thread.arch.faultinfo; in copy_sc_to_user() 333 err |= copy_sc_to_user(&uc->uc_mcontext, fp, ¤t->thread.regs, 0); in copy_ucontext_to_user() 454 unsigned long sp = PT_REGS_SP(¤t->thread.regs); in sys_sigreturn() 466 if (copy_sc_from_user(¤t->thread.regs, sc)) in sys_sigreturn() 470 PT_REGS_SYSCALL_NR(¤t->thread.regs) = -1; in sys_sigreturn() 471 return PT_REGS_SYSCALL_RET(¤t->thread.regs); in sys_sigreturn() 561 unsigned long sp = PT_REGS_SP(¤t->thread.regs); in sys_rt_sigreturn() 572 if (copy_sc_from_user(¤t->thread.regs, &uc->uc_mcontext)) in sys_rt_sigreturn() 576 PT_REGS_SYSCALL_NR(¤t->thread.regs) = -1; in sys_rt_sigreturn() 577 return PT_REGS_SYSCALL_RET(¤t->thread in sys_rt_sigreturn() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/pt3/ |
H A D | pt3.c | 439 adap->thread->comm); in pt3_fetch_thread() 454 adap->thread->comm); in pt3_fetch_thread() 460 struct task_struct *thread; in pt3_start_streaming() local 462 /* start fetching thread */ in pt3_start_streaming() 463 thread = kthread_run(pt3_fetch_thread, adap, "pt3-ad%i-dmx%i", in pt3_start_streaming() 465 if (IS_ERR(thread)) { in pt3_start_streaming() 466 int ret = PTR_ERR(thread); in pt3_start_streaming() 468 adap->thread = NULL; in pt3_start_streaming() 474 adap->thread = thread; in pt3_start_streaming() [all...] |
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | mips_ejtag_fdc.c | 95 * This protects between user context and kernel thread. 127 * @thread: KThread for writing out data to FDC. 150 struct task_struct *thread; member 477 * mips_ejtag_fdc_put() - Kernel thread to write out channel data to FDC. 480 * This kernel thread runs while @priv->xmit_total != 0, and round robins the 736 * writer thread to drain the buffer. in mips_ejtag_fdc_tty_port_shutdown() 958 priv->thread = kthread_create(mips_ejtag_fdc_put, priv, priv->fdc_name); in mips_ejtag_fdc_tty_probe() 959 if (IS_ERR(priv->thread)) { in mips_ejtag_fdc_tty_probe() 960 ret = PTR_ERR(priv->thread); in mips_ejtag_fdc_tty_probe() 965 * Bind the writer thread t in mips_ejtag_fdc_tty_probe() [all...] |
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-inject.c | 26 #include "util/thread.h" 330 struct thread *thread; in findnew_dso() local 336 thread = machine__findnew_thread(machine, pid, tid); in findnew_dso() 337 if (thread == NULL) { in findnew_dso() 343 nsi = nsinfo__get(thread->nsinfo); in findnew_dso() 356 dso = machine__findnew_vdso(machine, thread); in findnew_dso() 367 thread__put(thread); in findnew_dso() 564 struct thread *thread; in perf_event__inject_buildid() local [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/pt3/ |
H A D | pt3.c | 439 adap->thread->comm); in pt3_fetch_thread() 454 adap->thread->comm); in pt3_fetch_thread() 460 struct task_struct *thread; in pt3_start_streaming() local 462 /* start fetching thread */ in pt3_start_streaming() 463 thread = kthread_run(pt3_fetch_thread, adap, "pt3-ad%i-dmx%i", in pt3_start_streaming() 465 if (IS_ERR(thread)) { in pt3_start_streaming() 466 int ret = PTR_ERR(thread); in pt3_start_streaming() 468 adap->thread = NULL; in pt3_start_streaming() 474 adap->thread = thread; in pt3_start_streaming() [all...] |
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | process.c | 255 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_save_extra() 256 ia64_save_debug_regs(&task->thread.dbr[0]); in ia64_save_extra() 262 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_load_extra() 263 ia64_load_debug_regs(&task->thread.dbr[0]); in ia64_load_extra() 267 * Copy the state of an ia-64 thread. 315 p->thread.ksp = (unsigned long) child_stack - 16; in copy_thread() 336 p->thread.flags = ((current->thread.flags & ~THREAD_FLAGS_TO_CLEAR) in copy_thread() 504 * Flush thread state. This is called when a thread doe [all...] |
/kernel/linux/linux-5.10/arch/xtensa/kernel/ |
H A D | ptrace.c | 375 if (current->thread.ptrace_bp[i] == bp) in ptrace_hbptriggered() 380 if (current->thread.ptrace_wp[i] == bp) in ptrace_hbptriggered() 429 bp = child->thread.ptrace_wp[idx]; in ptrace_gethbpregs() 431 bp = child->thread.ptrace_bp[idx]; in ptrace_gethbpregs() 468 bp = child->thread.ptrace_wp[idx]; in ptrace_sethbpregs() 474 bp = child->thread.ptrace_bp[idx]; in ptrace_sethbpregs() 484 child->thread.ptrace_wp[idx] = bp; in ptrace_sethbpregs() 486 child->thread.ptrace_bp[idx] = bp; in ptrace_sethbpregs()
|
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | process.c | 257 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_save_extra() 258 ia64_save_debug_regs(&task->thread.dbr[0]); in ia64_save_extra() 264 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_load_extra() 265 ia64_load_debug_regs(&task->thread.dbr[0]); in ia64_load_extra() 269 * Copy the state of an ia-64 thread. 320 p->thread.ksp = (unsigned long) child_stack - 16; in copy_thread() 341 p->thread.flags = ((current->thread.flags & ~THREAD_FLAGS_TO_CLEAR) in copy_thread() 509 * Flush thread state. This is called when a thread doe [all...] |
/kernel/linux/linux-6.6/arch/xtensa/kernel/ |
H A D | ptrace.c | 373 if (current->thread.ptrace_bp[i] == bp) in ptrace_hbptriggered() 378 if (current->thread.ptrace_wp[i] == bp) in ptrace_hbptriggered() 427 bp = child->thread.ptrace_wp[idx]; in ptrace_gethbpregs() 429 bp = child->thread.ptrace_bp[idx]; in ptrace_gethbpregs() 466 bp = child->thread.ptrace_wp[idx]; in ptrace_sethbpregs() 472 bp = child->thread.ptrace_bp[idx]; in ptrace_sethbpregs() 482 child->thread.ptrace_wp[idx] = bp; in ptrace_sethbpregs() 484 child->thread.ptrace_bp[idx] = bp; in ptrace_sethbpregs()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | intel-pt.c | 26 #include "thread.h" 27 #include "thread-stack.h" 62 struct thread *unknown_thread; 164 struct thread *thread; member 566 struct thread *thread; in intel_pt_walk_next_insn() local 583 thread = ptq->thread; in intel_pt_walk_next_insn() 584 if (!thread) { in intel_pt_walk_next_insn() 732 struct thread *thread; __intel_pt_pgd_ip() local 948 struct thread *thread = machine__findnew_thread(pt->machine, intel_pt_add_callchain() local 986 struct thread *thread = machine__findnew_thread(pt->machine, intel_pt_add_br_stack() local 2648 intel_pt_find_map(struct thread *thread, u8 cpumode, u64 addr, struct addr_location *al) intel_pt_find_map() argument 2666 struct thread *thread = pt->unknown_thread; intel_pt_text_poke() local [all...] |
/kernel/linux/linux-5.10/arch/x86/um/asm/ |
H A D | processor.h | 20 (address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(¤t->thread.regs.regs)) 39 #define task_pt_regs(t) (&(t)->thread.regs)
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
H A D | switch_to.h | 13 save_to_user_fp(&prev->thread.user_fp); in __switch_to_fpu() 14 restore_from_user_fp(&next->thread.user_fp); in __switch_to_fpu()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-novsx.c | 29 return membuf_write(&to, &target->thread.fp_state, 33 * sizeof(u64)); in fpr_get() 55 &target->thread.fp_state, 0, -1); in fpr_set()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | suspend_64.h | 57 #define loaddebug(thread,register) \ 58 set_debugreg((thread)->debugreg##register, register)
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | thumbee.c | 32 struct thread_info *thread = t; in thumbee_notifier() local 40 teehbr_write(thread->thumbee_state); in thumbee_notifier()
|
/kernel/linux/linux-6.6/arch/csky/include/asm/ |
H A D | switch_to.h | 12 save_to_user_fp(&prev->thread.user_fp); in __switch_to_fpu() 13 restore_from_user_fp(&next->thread.user_fp); in __switch_to_fpu()
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | thumbee.c | 32 struct thread_info *thread = t; in thumbee_notifier() local 40 teehbr_write(thread->thumbee_state); in thumbee_notifier()
|