/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | signal.c | 48 err = __copy_from_user(¤t->thread.fstate, state, sizeof(*state)); in restore_fp_state() 63 err = __copy_to_user(state, ¤t->thread.fstate, sizeof(*state)); in save_fp_state() 91 err = __copy_to_user(&state->v_state, ¤t->thread.vstate, in save_v_state() 96 err |= __copy_to_user(datap, current->thread.vstate.datap, riscv_v_vsize); in save_v_state() 120 err = __copy_from_user(¤t->thread.vstate, &state->v_state, in __restore_v_state() 133 err = copy_from_user(current->thread.vstate.datap, datap, riscv_v_vsize); in __restore_v_state()
|
/kernel/linux/linux-5.10/drivers/md/ |
H A D | md.h | 345 struct md_thread *thread; /* management thread */ member 351 * when the sync thread is "frozen" (interrupted) or "idle" (stopped 517 MD_RECOVERY_RUNNING, /* a thread is running, or about to be started */ 521 MD_RECOVERY_DONE, /* thread is done and is waiting to be reaped */ 529 MD_RESYNCING_REMOTE, /* remote node is running resync thread */ 677 void (*run) (struct md_thread *thread); 701 void (*run)(struct md_thread *thread), 705 extern void md_wakeup_thread(struct md_thread *thread); 723 extern void md_do_sync(struct md_thread *thread); [all...] |
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | hists_cumulate.c | 11 #include "util/thread.h" 20 struct thread *thread; member 114 fake_samples[i].thread = al.thread; in add_hist_entries() 152 #define COMM(he) (thread__comm_str(he->thread)) 156 #define PID(he) (he->thread->tid)
|
/kernel/linux/linux-5.10/kernel/ |
H A D | stop_machine.c | 38 struct task_struct *thread; member 73 wake_q_add(wakeq, stopper->thread); in __cpu_stop_queue_work() 142 /* Dummy starting state for thread. */ 517 kthread_park(stopper->thread); in stop_machine_park() 524 sched_set_stop_task(cpu, per_cpu(cpu_stopper.thread, cpu)); in cpu_stop_create() 539 kthread_unpark(stopper->thread); in stop_machine_unpark() 543 .store = &cpu_stopper.thread,
|
/kernel/linux/linux-6.6/arch/x86/math-emu/ |
H A D | fpu_entry.c | 232 current->thread.trap_nr = X86_TRAP_MF; in math_emulate() 233 current->thread.error_code = 0; in math_emulate() 625 current->thread.trap_nr = X86_TRAP_MF; in math_abort() 626 current->thread.error_code = 0; in math_abort() 644 struct swregs_state *s387 = &target->thread.fpu.fpstate->regs.soft; in fpregs_soft_set() 695 struct swregs_state *s387 = &target->thread.fpu.fpstate->regs.soft; in fpregs_soft_get()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | md.h | 371 struct md_thread __rcu *thread; /* management thread */ member 377 * when the sync thread is "frozen" (interrupted) or "idle" (stopped 543 /* The sequence number for sync thread */ 555 MD_RECOVERY_RUNNING, /* a thread is running, or about to be started */ 559 MD_RECOVERY_DONE, /* thread is done and is waiting to be reaped */ 567 MD_RESYNCING_REMOTE, /* remote node is running resync thread */ 733 void (*run) (struct md_thread *thread); 764 void (*run)(struct md_thread *thread), 768 extern void md_wakeup_thread(struct md_thread __rcu *thread); [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | data-convert-json.c | 27 #include "util/thread.h" 177 output_json_key_format(out, true, 3, "pid", "%i", thread__pid(al.thread)); in process_sample_event() 178 output_json_key_format(out, true, 3, "tid", "%i", thread__tid(al.thread)); in process_sample_event() 182 else if (thread__cpu(al.thread) >= 0) in process_sample_event() 183 output_json_key_format(out, true, 3, "cpu", "%i", thread__cpu(al.thread)); in process_sample_event() 185 output_json_key_string(out, true, 3, "comm", thread__comm_str(al.thread)); in process_sample_event() 222 ok = thread__find_symbol(al.thread, cpumode, ip, &tal); in process_sample_event()
|
/third_party/elfutils/tests/ |
H A D | backtrace.c | 88 // For the main thread we are only interested if we can unwind till in callback_verify() 227 Dwfl_Thread *thread = dwfl_frame_thread (state); in frame_callback() local 228 Dwfl *dwfl = dwfl_thread_dwfl (thread); in frame_callback() 236 pid_t tid = dwfl_thread_tid (thread); in frame_callback() 244 thread_callback (Dwfl_Thread *thread, void *thread_arg __attribute__((unused))) in thread_callback() argument 246 printf ("TID %ld:\n", (long) dwfl_thread_tid (thread)); in thread_callback() 248 switch (dwfl_thread_getframes (thread, frame_callback, &frameno)) in thread_callback() 399 /* Catch the main thread. Catch it first otherwise the /proc evaluation of in exec_dump() 406 // Main thread will signal SIGUSR2. Other thread wil in exec_dump() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_rwlock_test.cpp | 9 #include <thread> 98 pthread_t thread; in TestPthreadRwlockWakeupWriter() local 102 pthread_create(&thread, nullptr, reinterpret_cast<void* (*)(void*)>(PthreadRwlockWakeupHelper), arg)); in TestPthreadRwlockWakeupWriter() 105 EXPECT_EQ(0, pthread_join(thread, nullptr)); in TestPthreadRwlockWakeupWriter() 109 pthread_create(&thread, nullptr, reinterpret_cast<void* (*)(void*)>(PthreadRwlockTimeoutHelper), arg)); in TestPthreadRwlockWakeupWriter() 111 EXPECT_EQ(0, pthread_join(thread, nullptr)); in TestPthreadRwlockWakeupWriter() 129 * @tc.desc: Set up a sleep thread to test the normal use of this interface in the current scenario 143 * in the sleep thread 177 * operation in the sleep thread 195 * operation in the sleep thread [all...] |
/third_party/openssl/test/ |
H A D | threadstest.c | 10 /* test_multi below tests the thread safety of a deprecated function */ 67 thread_t thread; in test_once() local 69 if (!TEST_true(run_thread(&thread, once_run_thread_cb)) in test_once() 70 || !TEST_true(wait_for_thread(thread)) in test_once() 112 thread_t thread; in test_thread_local() local 121 || !TEST_true(run_thread(&thread, thread_local_thread_cb)) in test_thread_local() 122 || !TEST_true(wait_for_thread(thread)) in test_thread_local() 568 * run with a thread sanitizer, should crash if the core provider code
|
/third_party/python/Lib/idlelib/ |
H A D | run.py | 16 import _thread as thread namespace 103 # the socket) and the main thread (which runs user code), plus global 104 # completion, exit and interruptable (the main thread) flags: 409 thread.interrupt_main() 428 thread.interrupt_main() 549 "Override SocketIO method - terminate wait on callback and exit thread" 552 thread.interrupt_main() 555 "interrupt awakened thread" 558 thread.interrupt_main() 607 thread [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_windows_events.py | 47 thread = threading.Thread(target=SIGINT_after_delay) 51 loop.call_soon(thread.start) 58 thread.join() 76 thread = threading.Thread(target=func) 77 thread.start() 78 thread.join() 219 # Start an operation in another thread so that the self-pipe is used.
|
/third_party/pulseaudio/src/modules/ |
H A D | module-null-sink.c | 41 #include <pulsecore/thread.h> 42 #include <pulsecore/thread-mq.h> 68 pa_thread *thread; member 115 /* Called from the IO thread. */ 134 /* Called from the IO thread. */ 156 /* Called from the IO thread. */ 424 if (!(u->thread = pa_thread_new("null-sink", thread_func, u))) { in pa__init() 425 pa_log("Failed to create thread."); in pa__init() 466 if (u->thread) { in pa__done() 468 pa_thread_free(u->thread); in pa__done() [all...] |
/third_party/pulseaudio/src/modules/jack/ |
H A D | module-jack-sink.c | 42 #include <pulsecore/thread.h> 43 #include <pulsecore/thread-mq.h> 50 * doesn't allow us to add our own event sources to the event thread 51 * we cannot use the JACK real-time thread for dispatching our PA 52 * work. Instead, we run an additional RT thread which does most of 53 * the PA handling, and have the JACK RT thread request data from it 94 pa_thread *thread; member 125 /* Handle the request from the JACK thread */ in sink_process_msg() 213 /* We just forward the request to our other RT thread */ in jack_process() 272 pa_log_info("JACK thread startin in jack_init() [all...] |
H A D | module-jack-source.c | 42 #include <pulsecore/thread.h> 43 #include <pulsecore/thread-mq.h> 82 pa_thread *thread; member 111 /* Handle the new block from the JACK thread */ in source_process_msg() 169 /* We interleave the data and pass it on to the other RT thread */ in jack_process() 230 pa_log_info("JACK thread starting up."); in jack_init() 239 pa_log_info("JACK thread shutting down.."); in jack_shutdown() 389 if (!(u->thread = pa_thread_new("jack-source", thread_func, u))) { in pa__init() 390 pa_log("Failed to create thread."); in pa__init() 462 if (u->thread) { in pa__done() [all...] |
/third_party/python/Lib/test/ |
H A D | test_smtplib.py | 191 # Test server thread using the specified SMTP server class 256 self.thread = threading.Thread(target=debugging_server, args=serv_args) 257 self.thread.start() 259 # wait until server thread has assigned a port number 267 # wait for the server thread to terminate 269 threading_helper.join_thread(self.thread) 275 del self.thread 789 self.thread = threading.Thread(target=server, args=servargs) 790 self.thread.start() 797 threading_helper.join_thread(self.thread) [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | mxs-dcp.c | 79 struct task_struct *thread[DCP_MAX_CHANS]; member 466 wake_up_process(sdcp->thread[actx->chan]); in mxs_dcp_aes_enqueue() 779 wake_up_process(sdcp->thread[actx->chan]); in dcp_sha_update_fx() 1073 sdcp->thread[DCP_CHAN_HASH_SHA] = kthread_run(dcp_chan_thread_sha, in mxs_dcp_probe() 1075 if (IS_ERR(sdcp->thread[DCP_CHAN_HASH_SHA])) { in mxs_dcp_probe() 1076 dev_err(dev, "Error starting SHA thread!\n"); in mxs_dcp_probe() 1077 ret = PTR_ERR(sdcp->thread[DCP_CHAN_HASH_SHA]); in mxs_dcp_probe() 1081 sdcp->thread[DCP_CHAN_CRYPTO] = kthread_run(dcp_chan_thread_aes, in mxs_dcp_probe() 1083 if (IS_ERR(sdcp->thread[DCP_CHAN_CRYPTO])) { in mxs_dcp_probe() 1084 dev_err(dev, "Error starting SHA thread!\ in mxs_dcp_probe() [all...] |
/kernel/linux/linux-5.10/drivers/hv/ |
H A D | hv_balloon.c | 537 * This thread handles hot-add 542 struct task_struct *thread; member 1220 * We execute this code in a thread context. Furthermore, in alloc_balloon_pages() 1715 dm_device.thread = in balloon_probe() 1717 if (IS_ERR(dm_device.thread)) { in balloon_probe() 1718 ret = PTR_ERR(dm_device.thread); in balloon_probe() 1726 dm_device.thread = NULL; in balloon_probe() 1748 kthread_stop(dm->thread); in balloon_remove() 1777 if (dm->thread) { in balloon_suspend() 1778 kthread_stop(dm->thread); in balloon_suspend() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | mxs-dcp.c | 80 struct task_struct *thread[DCP_MAX_CHANS]; member 467 wake_up_process(sdcp->thread[actx->chan]); in mxs_dcp_aes_enqueue() 780 wake_up_process(sdcp->thread[actx->chan]); in dcp_sha_update_fx() 1068 sdcp->thread[DCP_CHAN_HASH_SHA] = kthread_run(dcp_chan_thread_sha, in mxs_dcp_probe() 1070 if (IS_ERR(sdcp->thread[DCP_CHAN_HASH_SHA])) { in mxs_dcp_probe() 1071 dev_err(dev, "Error starting SHA thread!\n"); in mxs_dcp_probe() 1072 ret = PTR_ERR(sdcp->thread[DCP_CHAN_HASH_SHA]); in mxs_dcp_probe() 1076 sdcp->thread[DCP_CHAN_CRYPTO] = kthread_run(dcp_chan_thread_aes, in mxs_dcp_probe() 1078 if (IS_ERR(sdcp->thread[DCP_CHAN_CRYPTO])) { in mxs_dcp_probe() 1079 dev_err(dev, "Error starting SHA thread!\ in mxs_dcp_probe() [all...] |
/kernel/linux/linux-6.6/drivers/hv/ |
H A D | hv_balloon.c | 545 * This thread handles hot-add 550 struct task_struct *thread; member 1250 * We execute this code in a thread context. Furthermore, in alloc_balloon_pages() 2017 dm_device.thread = in balloon_probe() 2019 if (IS_ERR(dm_device.thread)) { in balloon_probe() 2020 ret = PTR_ERR(dm_device.thread); in balloon_probe() 2030 dm_device.thread = NULL; in balloon_probe() 2055 kthread_stop(dm->thread); in balloon_remove() 2091 if (dm->thread) { in balloon_suspend() 2092 kthread_stop(dm->thread); in balloon_suspend() [all...] |
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
H A D | mmu_context_mm.h | 120 tsk->thread.pgdir = next->pgd; in switch_mm() 132 current->thread.pgdir = mm->pgd; in activate_mm()
|
/kernel/linux/linux-5.10/arch/arm/nwfpe/ |
H A D | fpmodule.c | 50 struct thread_info *thread = v; in nwfpe_notify() local 53 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
|
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | lbt.h | 110 restore_lbt_registers(¤t->thread.lbt); in own_lbt_inatomic() 118 save_lbt_registers(&tsk->thread.lbt); in lose_lbt_inatomic()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | stacktrace.c | 86 regs->regs[29] = tsk->thread.reg29; in save_stack_trace_tsk() 88 regs->cp0_epc = tsk->thread.reg31; in save_stack_trace_tsk()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | cputhreads.h | 41 * bit set for each core that has at least one thread set in the argument. 140 void book3e_start_thread(int thread, unsigned long addr); 141 void book3e_stop_thread(int thread);
|