/kernel/linux/linux-5.10/arch/arm/vfp/ |
H A D | vfphw.S | 11 * r10 points at the start of the private FP workspace in the thread structure 92 cmp r4, r10 @ this thread owns the hw context? 94 @ For UP, checking that this thread owns the hw context is 99 @ thread wants ownership of the VFP hardware, save the old 124 @ For SMP, if this thread does not own the hw context, then we 126 @ we always save the state when we switch away from a thread. 129 @ This thread has ownership of the current hardware context. 165 @ The context stored in the VFP hardware is up to date with this thread
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/ |
H A D | cbe_regs.c | 283 struct cbe_thread_map *thread = &cbe_thread_map[i]; in cbe_regs_init() local 285 if (thread->cpu_node == cpu) { in cbe_regs_init() 286 thread->regs = map; in cbe_regs_init() 287 thread->cbe_id = cbe_id; in cbe_regs_init() 288 map->be_node = thread->be_node; in cbe_regs_init() 290 if(thread->thread_id == 0) in cbe_regs_init()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | hists_filter.c | 18 struct thread *thread; member 91 fake_samples[i].thread = al.thread; in add_hist_entries() 167 /* now applying thread filter for 'bash' */ in test__hists_filter() 168 hists->thread_filter = fake_samples[9].thread; in test__hists_filter() 172 pr_info("Histogram for thread filter\n"); in test__hists_filter() 185 TEST_ASSERT_VAL("Unmatched nr samples for thread filter", in test__hists_filter() 187 TEST_ASSERT_VAL("Unmatched nr hist entries for thread filter", in test__hists_filter() 189 TEST_ASSERT_VAL("Unmatched total period for thread filte in test__hists_filter() [all...] |
/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...] |
/third_party/libuv/src/win/ |
H A D | thread.c | 126 HANDLE thread; in uv_thread_create_ex() local 151 /* Create the thread in suspended state so we have a chance to pass in uv_thread_create_ex() 153 thread = (HANDLE) _beginthreadex(NULL, in uv_thread_create_ex() 159 if (thread == NULL) { in uv_thread_create_ex() 164 *tid = thread; in uv_thread_create_ex() 165 ctx->self = thread; in uv_thread_create_ex() 166 ResumeThread(thread); in uv_thread_create_ex() 264 /* If the thread wasn't started by uv_thread_create (such as the main in uv_thread_self() 265 * thread), we assign an id to it now. */ in uv_thread_self()
|
/third_party/node/deps/uv/src/win/ |
H A D | thread.c | 126 HANDLE thread; in uv_thread_create_ex() local 151 /* Create the thread in suspended state so we have a chance to pass in uv_thread_create_ex() 153 thread = (HANDLE) _beginthreadex(NULL, in uv_thread_create_ex() 159 if (thread == NULL) { in uv_thread_create_ex() 164 *tid = thread; in uv_thread_create_ex() 165 ctx->self = thread; in uv_thread_create_ex() 166 ResumeThread(thread); in uv_thread_create_ex() 189 /* If the thread wasn't started by uv_thread_create (such as the main in uv_thread_self() 190 * thread), we assign an id to it now. */ in uv_thread_self()
|
/third_party/pulseaudio/src/modules/ |
H A D | module-sine-source.c | 38 #include <pulsecore/thread.h> 39 #include <pulsecore/thread-mq.h> 60 pa_thread *thread; member 105 /* Called from the IO thread. */ 276 if (!(u->thread = pa_thread_new("sine-source", thread_func, u))) { in pa__init() 277 pa_log("Failed to create thread."); in pa__init() 316 if (u->thread) { in pa__done() 318 pa_thread_free(u->thread); in pa__done()
|
H A D | module-null-source.c | 42 #include <pulsecore/thread-mq.h> 43 #include <pulsecore/thread.h> 67 pa_thread *thread; member 105 /* Called from the IO thread. */ 269 if (!(u->thread = pa_thread_new("null-source", thread_func, u))) { in pa__init() 270 pa_log("Failed to create thread."); in pa__init() 300 if (u->thread) { in pa__done() 302 pa_thread_free(u->thread); in pa__done()
|
H A D | module-pipe-source.c | 44 #include <pulsecore/thread.h> 45 #include <pulsecore/thread-mq.h> 70 pa_thread *thread; member 303 if (!(u->thread = pa_thread_new("pipe-source", thread_func, u))) { in pa__init() 304 pa_log("Failed to create thread."); in pa__init() 343 if (u->thread) { in pa__done() 345 pa_thread_free(u->thread); in pa__done()
|
/third_party/python/Lib/test/ |
H A D | test_largefile.py | 195 self.thread = None 199 if self.thread is not None: 200 self.thread.join(self.timeout) 201 self.thread = None 218 self.thread = threading.Thread(target=run, args=(sock, )) 219 self.thread.start()
|
/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/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/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...] |
/third_party/backends/backend/ |
H A D | kvs40xx.c | 561 if (s->thread) in sane_start() 563 pthread_join (s->thread, NULL); in sane_start() 564 s->thread = 0; in sane_start() 639 if (pthread_create (&s->thread, NULL, read_data, s)) in sane_start() 647 pthread_join (s->thread, NULL); in sane_start() 648 s->thread = 0; in sane_start() 722 if (s->thread) in sane_cancel() 724 pthread_cancel (s->thread); in sane_cancel() 725 pthread_join (s->thread, NULL); in sane_cancel() 726 s->thread in sane_cancel() [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),
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_tls_get_addr_test.cpp | 2 #include <thread> 29 std::thread t(ThreadFunc); in HWTEST_F()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | rtkit.h | 45 /* This is mostly equivalent to sched_setparam(thread, SCHED_RR, { 46 * .sched_priority = priority }). 'thread' needs to be a kernel thread 47 * id as returned by gettid(), not a pthread_t! If 'thread' is 0 the 48 * current thread is used. The returned value is a negative errno 50 int rtkit_make_realtime(DBusConnection *system_bus, pid_t thread, int priority); 52 /* This is mostly equivalent to setpriority(PRIO_PROCESS, thread, 53 * nice_level). 'thread' needs to be a kernel thread id as returned by 54 * gettid(), not a pthread_t! If 'thread' i [all...] |