Home
last modified time | relevance | path

Searched refs:thread (Results 576 - 600 of 2548) sorted by relevance

1...<<21222324252627282930>>...102

/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Ddsmethod.c286 * increments the thread count, and waits at the method semaphore
306 /* Prevent wraparound of thread count */ in acpi_ds_begin_method_execution()
331 * The current_sync_level (per-thread) must be less than or equal to in acpi_ds_begin_method_execution()
344 && (walk_state->thread->current_sync_level > in acpi_ds_begin_method_execution()
350 walk_state->thread->current_sync_level)); in acpi_ds_begin_method_execution()
361 (walk_state->thread->thread_id != in acpi_ds_begin_method_execution()
380 walk_state->thread->current_sync_level; in acpi_ds_begin_method_execution()
383 walk_state->thread->thread_id; in acpi_ds_begin_method_execution()
394 walk_state->thread->current_sync_level = in acpi_ds_begin_method_execution()
413 * Allocate an Owner ID for this method, only if this is the first thread in acpi_ds_begin_method_execution()
456 acpi_ds_call_control_method(struct acpi_thread_state *thread, struct acpi_walk_state *this_walk_state, union acpi_parse_object *op) acpi_ds_call_control_method() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
H A Dptrace.c61 || (child->thread.regs == NULL)) in arch_ptrace()
68 CHECK_FULL_REGS(child->thread.regs); in arch_ptrace()
80 tmp = ((u32 *)child->thread.fp_state.fpr)[fpidx]; in arch_ptrace()
82 memcpy(&tmp, &child->thread.TS_FPR(fpidx), in arch_ptrace()
86 tmp = child->thread.fp_state.fpscr; in arch_ptrace()
101 || (child->thread.regs == NULL)) in arch_ptrace()
108 CHECK_FULL_REGS(child->thread.regs); in arch_ptrace()
118 ((u32 *)child->thread.fp_state.fpr)[fpidx] = data; in arch_ptrace()
120 memcpy(&child->thread.TS_FPR(fpidx), &data, in arch_ptrace()
124 child->thread in arch_ptrace()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Ddsmethod.c286 * increments the thread count, and waits at the method semaphore
306 /* Prevent wraparound of thread count */ in acpi_ds_begin_method_execution()
331 * The current_sync_level (per-thread) must be less than or equal to in acpi_ds_begin_method_execution()
344 && (walk_state->thread->current_sync_level > in acpi_ds_begin_method_execution()
350 walk_state->thread->current_sync_level)); in acpi_ds_begin_method_execution()
361 (walk_state->thread->thread_id != in acpi_ds_begin_method_execution()
380 walk_state->thread->current_sync_level; in acpi_ds_begin_method_execution()
383 walk_state->thread->thread_id; in acpi_ds_begin_method_execution()
394 walk_state->thread->current_sync_level = in acpi_ds_begin_method_execution()
413 * Allocate an Owner ID for this method, only if this is the first thread in acpi_ds_begin_method_execution()
456 acpi_ds_call_control_method(struct acpi_thread_state *thread, struct acpi_walk_state *this_walk_state, union acpi_parse_object *op) acpi_ds_call_control_method() argument
[all...]
/third_party/musl/src/thread/
H A Dpthread_create.c84 * call; the loser is responsible for freeing thread resources. */ in __pthread_exit()
95 /* Access to target the exiting thread with syscalls that use in __pthread_exit()
102 /* The thread list lock must be AS-safe, and thus depends on in __pthread_exit()
106 /* If this is the only thread in the list, don't proceed with in __pthread_exit()
107 * termination of the thread, but restore the previous lock and in __pthread_exit()
117 /* At this point we are committed to thread termination. */ in __pthread_exit()
119 /* After the kernel thread exits, its tid may be reused. Clear it in __pthread_exit()
123 * see the thread as having exited. Release it now so that no in __pthread_exit()
124 * remaining locks (except thread list) are held if we end up in __pthread_exit()
130 * and the detached thread cas in __pthread_exit()
410 struct pthread *thread = (struct pthread *)thread_id; __pthread_list_find() local
433 struct pthread* thread = __pthread_list_find(t, "pthread_gettid_np"); __pthread_gettid_np() local
[all...]
/third_party/musl/src/thread/linux/
H A Dpthread_create.c219 * call; the loser is responsible for freeing thread resources. */ in __pthread_exit()
230 /* Access to target the exiting thread with syscalls that use in __pthread_exit()
237 /* The thread list lock must be AS-safe, and thus depends on in __pthread_exit()
244 /* If this is the only thread in the list, don't proceed with in __pthread_exit()
245 * termination of the thread, but restore the previous lock and in __pthread_exit()
258 /* At this point we are committed to thread termination. */ in __pthread_exit()
260 /* After the kernel thread exits, its tid may be reused. Clear it in __pthread_exit()
264 * see the thread as having exited. Release it now so that no in __pthread_exit()
265 * remaining locks (except thread list) are held if we end up in __pthread_exit()
271 * and the detached thread cas in __pthread_exit()
599 struct pthread *thread = (struct pthread *)thread_id; __pthread_list_find() local
622 struct pthread* thread = __pthread_list_find(t, "pthread_gettid_np"); __pthread_gettid_np() local
[all...]
/third_party/musl/porting/linux/user/src/thread/
H A Dpthread_create.c167 * call; the loser is responsible for freeing thread resources. */ in __pthread_exit()
178 /* Access to target the exiting thread with syscalls that use in __pthread_exit()
185 /* The thread list lock must be AS-safe, and thus depends on in __pthread_exit()
192 /* If this is the only thread in the list, don't proceed with in __pthread_exit()
193 * termination of the thread, but restore the previous lock and in __pthread_exit()
206 /* At this point we are committed to thread termination. */ in __pthread_exit()
209 * and the detached thread case where the robust list head will in __pthread_exit()
230 /* Last, unlink thread from the list. This change will not be visible in __pthread_exit()
251 /* The following call unmaps the thread's stack mapping in __pthread_exit()
260 /* After the kernel thread exit in __pthread_exit()
535 struct pthread *thread = (struct pthread *)thread_id; __pthread_list_find() local
558 struct pthread* thread = __pthread_list_find(t, "pthread_gettid_np"); __pthread_gettid_np() local
[all...]
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dsignal.c73 struct mips_abi *abi = current->thread.abi; in copy_fp_to_sigcontext()
82 __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_fp_to_sigcontext()
85 err |= __put_user(current->thread.fpu.fcr31, csr); in copy_fp_to_sigcontext()
92 struct mips_abi *abi = current->thread.abi; in copy_fp_from_sigcontext()
102 set_fpr64(&current->thread.fpu.fpr[i], 0, fpr_val); in copy_fp_from_sigcontext()
104 err |= __get_user(current->thread.fpu.fcr31, csr); in copy_fp_from_sigcontext()
128 struct mips_abi *abi = current->thread.abi; in save_hw_fp_context()
137 struct mips_abi *abi = current->thread.abi; in restore_hw_fp_context()
195 err = __put_user(current->thread.fpu.msacsr, &msa->csr); in save_msa_extcontext()
198 val = get_fpr64(&current->thread in save_msa_extcontext()
[all...]
/kernel/linux/linux-6.6/arch/mips/kernel/
H A Dsignal.c72 struct mips_abi *abi = current->thread.abi; in copy_fp_to_sigcontext()
81 __put_user(get_fpr64(&current->thread.fpu.fpr[i], 0), in copy_fp_to_sigcontext()
84 err |= __put_user(current->thread.fpu.fcr31, csr); in copy_fp_to_sigcontext()
91 struct mips_abi *abi = current->thread.abi; in copy_fp_from_sigcontext()
101 set_fpr64(&current->thread.fpu.fpr[i], 0, fpr_val); in copy_fp_from_sigcontext()
103 err |= __get_user(current->thread.fpu.fcr31, csr); in copy_fp_from_sigcontext()
127 struct mips_abi *abi = current->thread.abi; in save_hw_fp_context()
136 struct mips_abi *abi = current->thread.abi; in restore_hw_fp_context()
194 err = __put_user(current->thread.fpu.msacsr, &msa->csr); in save_msa_extcontext()
197 val = get_fpr64(&current->thread in save_msa_extcontext()
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Djitdump.c30 #include "thread.h"
795 struct thread *thread = machine__findnew_thread(machine, pid, pid); in jit_add_pid() local
797 if (!thread) { in jit_add_pid()
798 pr_err("%s: thread %d not found or created\n", __func__, pid); in jit_add_pid()
802 thread__set_priv(thread, (void *)true); in jit_add_pid()
803 thread__put(thread); in jit_add_pid()
808 struct thread *thread = machine__find_thread(machine, pid, pid); in jit_has_pid() local
811 if (!thread) in jit_has_pid()
828 struct thread *thread; jit_process() local
[all...]
H A Darm64-frame-pointer-unwind-support.c31 u64 get_leaf_frame_caller_aarch64(struct perf_sample *sample, struct thread *thread, int usr_idx) in get_leaf_frame_caller_aarch64() argument
56 ret = unwind__get_entries(add_entry, &entries, thread, sample, 2, true); in get_leaf_frame_caller_aarch64()
/kernel/linux/linux-6.6/arch/csky/include/asm/
H A Dthread_info.h37 ((unsigned long)(((struct switch_stack *)(tsk->thread.sp))->r8))
40 ((unsigned long)(tsk->thread.sp))
43 ((unsigned long)(((struct switch_stack *)(tsk->thread.sp))->r15))
/kernel/linux/linux-6.6/arch/sparc/include/asm/
H A Dprocessor_32.h35 /* The Sparc processor specific thread struct. */
55 /* Do necessary setup to start up a newly executed thread. */
85 #define task_pt_regs(tsk) ((tsk)->thread.kregs)
86 #define KSTK_EIP(tsk) ((tsk)->thread.kregs->pc)
87 #define KSTK_ESP(tsk) ((tsk)->thread.kregs->u_regs[UREG_FP])
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_194.cpp44 pthread_t thread; in Testcase() local
70 ret = pthread_create(&thread, &attr, pthread_f01, NULL); in Testcase()
73 ret = pthread_join(thread, NULL); in Testcase()
/third_party/libuv/test/
H A Dtest-eintr-handling.c66 uv_thread_t thread; in TEST_IMPL() local
77 ASSERT_OK(uv_thread_create(&thread, thread_main, &ctx)); in TEST_IMPL()
90 ASSERT_OK(uv_thread_join(&thread)); in TEST_IMPL()
H A Dtest-embed.c49 uv_thread_t thread; in TEST_IMPL() local
55 ASSERT_OK(uv_thread_create(&thread, thread_main, NULL)); in TEST_IMPL()
74 ASSERT_OK(uv_thread_join(&thread)); in TEST_IMPL()
/third_party/mesa3d/src/intel/vulkan/tests/
H A Dstate_pool_test_helper.h29 pthread_t thread; member
66 pthread_create(&jobs[i].thread, NULL, alloc_states, &jobs[i]); in run_state_pool_test()
70 pthread_join(jobs[i].thread, NULL); in run_state_pool_test()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/
H A D1-1.c16 * 2. Create a child thread, the thread lock 'rwlock' for reading, shall not block.
59 pthread_t thread; in main() local
76 printf("main: create thread\n"); in main()
77 if (pthread_create(&thread, NULL, fn_rd, NULL) != 0) { in main()
78 printf("main: failed to create thread\n"); in main()
84 /* We expect the thread not to block */ in main()
91 printf("Test FAILED: thread blocked on read lock\n"); in main()
94 printf("main: Unexpected thread state\n"); in main()
98 if (pthread_join(thread, NUL in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/
H A D1-1.c12 * 3. Create a thread with this object
39 pthread_t thread; in main() local
71 rc = pthread_create(&thread, &attr, thread_func, NULL); in main()
75 "Permission Denied when creating thread with policy %d\n", in main()
84 pthread_join(thread, &status); in main()
H A D1-2.c12 * 3. Create a thread with this object
40 pthread_t thread; in main() local
73 rc = pthread_create(&thread, &attr, thread_func, NULL); in main()
77 "Permission Denied when creating thread with policy %d\n", in main()
86 pthread_join(thread, &status); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
H A D7-1.c23 * -> create a thread which blocks on the semaphore
102 pthread_t thread; in main() local
120 /* Create the child thread */ in main()
121 ret = pthread_create(&thread, NULL, threaded, sem); in main()
124 UNRESOLVED(ret, "Failed to create the thread"); in main()
127 /* Let some time for the thread to block */ in main()
144 /* Join the thread */ in main()
145 ret = pthread_join(thread, NULL); in main()
148 UNRESOLVED(ret, "Failed to join the thread"); in main()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dpthread_spin_lock.c61 pthread_t thread; in pthread_spin_lock_0200() local
67 ret = pthread_create(&thread, NULL, (void *)thread1, NULL); in pthread_spin_lock_0200()
79 pthread_join(thread, &rev); in pthread_spin_lock_0200()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_callonce_test.cpp2 #include <thread>
20 * @tc.desc: Call the function twice in a single thread, ensuring that the function is only called once
32 std::thread([&onceCall] { call_once(&onceCall, CallThrdSleep); }).join(); in HWTEST_F()
40 * @tc.desc: Call the function twice in a single thread, ensuring that the function is only called once
52 std::thread([&onceCall] { pthread_once(&onceCall, CallThrdSleep); }).join(); in HWTEST_F()
/third_party/rust/crates/once_cell/examples/
H A Dbench_acquire.rs17 (0..N_THREADS).map(|i| std::thread::spawn(move || thread_main(i))).collect::<Vec<_>>(); in main()
18 for thread in threads { in main()
19 thread.join().unwrap(); in main()
/third_party/rust/crates/rustix/src/thread/
H A Dclock.rs42 backend::thread::syscalls::clock_nanosleep_relative(id, request) in clock_nanosleep_relative()
70 backend::thread::syscalls::clock_nanosleep_absolute(id, request) in clock_nanosleep_absolute()
85 backend::thread::syscalls::nanosleep(request) in nanosleep()
/kernel/linux/linux-6.6/tools/perf/scripts/python/
H A Dgecko.py93 """A builder for a profile of the thread.
98 tid: thread ID.
178 """Add a timestamped stack trace sample to the thread builder.
180 comm: command-line (name) of the thread at this sample
261 # event and store the data in the thread builder.
292 # Add sample to the specific thread.
293 thread = tid_to_thread.get(tid)
294 if thread is None:
295 thread = Thread(comm=comm, pid=pid, tid=tid)
296 tid_to_thread[tid] = thread
[all...]

Completed in 11 milliseconds

1...<<21222324252627282930>>...102