/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | mte.c | 88 * mte_thread_switch() checks current->thread.sctlr_tcf0 as an in set_sctlr_el1_tcf0() 93 current->thread.sctlr_tcf0 = tcf0; in set_sctlr_el1_tcf0() 113 current->thread.gcr_user_incl = incl; in set_gcr_el1_excl() 138 if (current->thread.sctlr_tcf0 != next->thread.sctlr_tcf0) in mte_thread_switch() 139 update_sctlr_el1_tcf0(next->thread.sctlr_tcf0); in mte_thread_switch() 140 update_gcr_el1_excl(next->thread.gcr_user_incl); in mte_thread_switch() 148 update_gcr_el1_excl(current->thread.gcr_user_incl); in mte_suspend_exit() 174 task->thread.sctlr_tcf0 = tcf0; in set_mte_ctrl() 175 task->thread in set_mte_ctrl() [all...] |
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | hists_link.c | 18 struct thread *thread; member 96 fake_common_samples[k].thread = al.thread; in add_hist_entries() 115 fake_samples[i][k].thread = al.thread; in add_hist_entries() 130 struct thread *t, struct map *m, struct symbol *s) in find_sample() 133 if (samples->thread == t && samples->map == m && in find_sample() 164 he->thread, he->ms.map, he->ms.sym)) { in __validate_match() 216 he->thread, h in __validate_link() [all...] |
H A D | code-reading.c | 30 #include "thread.h" 237 struct thread *thread, struct state *state) in read_object_code() 251 if (!thread__find_map(thread, cpumode, addr, &al) || !al.map->dso) { in read_object_code() 279 ret_len = dso__data_read_offset(al.map->dso, thread->maps->machine, in read_object_code() 378 struct thread *thread; in process_sample_event() local 386 thread = machine__findnew_thread(machine, sample.pid, sample.tid); in process_sample_event() 387 if (!thread) { in process_sample_event() 392 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, stat in process_sample_event() 236 read_object_code(u64 addr, size_t len, u8 cpumode, struct thread *thread, struct state *state) read_object_code() argument 555 struct thread *thread; do_test_code_reading() local [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | vtime.c | 155 user = update_tsk_timer(&tsk->thread.user_timer, in do_account_vtime() 157 guest = update_tsk_timer(&tsk->thread.guest_timer, in do_account_vtime() 159 system = update_tsk_timer(&tsk->thread.system_timer, in do_account_vtime() 161 hardirq = update_tsk_timer(&tsk->thread.hardirq_timer, in do_account_vtime() 163 softirq = update_tsk_timer(&tsk->thread.softirq_timer, in do_account_vtime() 192 prev->thread.user_timer = S390_lowcore.user_timer; in vtime_task_switch() 193 prev->thread.guest_timer = S390_lowcore.guest_timer; in vtime_task_switch() 194 prev->thread.system_timer = S390_lowcore.system_timer; in vtime_task_switch() 195 prev->thread.hardirq_timer = S390_lowcore.hardirq_timer; in vtime_task_switch() 196 prev->thread in vtime_task_switch() [all...] |
/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | dswstate.c | 403 * PARAMETERS: thread - Get current active state for this Thread 413 *thread) in acpi_ds_get_current_walk_state() 417 if (!thread) { in acpi_ds_get_current_walk_state() 422 thread->walk_state_list)); in acpi_ds_get_current_walk_state() 424 return (thread->walk_state_list); in acpi_ds_get_current_walk_state() 432 * thread - Thread state object 442 struct acpi_thread_state *thread) in acpi_ds_push_walk_state() 446 walk_state->next = thread->walk_state_list; in acpi_ds_push_walk_state() 447 thread->walk_state_list = walk_state; in acpi_ds_push_walk_state() 456 * PARAMETERS: thread 412 acpi_ds_get_current_walk_state(struct acpi_thread_state *thread) acpi_ds_get_current_walk_state() argument 441 acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, struct acpi_thread_state *thread) acpi_ds_push_walk_state() argument 466 acpi_ds_pop_walk_state(struct acpi_thread_state *thread) acpi_ds_pop_walk_state() argument 506 acpi_ds_create_walk_state(acpi_owner_id owner_id, union acpi_parse_object *origin, union acpi_operand_object *method_desc, struct acpi_thread_state *thread) acpi_ds_create_walk_state() argument [all...] |
H A D | dsdebug.c | 94 struct acpi_thread_state *thread; in acpi_ds_dump_method_stack() local 120 thread = walk_state->thread; in acpi_ds_dump_method_stack() 121 if (!thread) { in acpi_ds_dump_method_stack() 137 next_walk_state = thread->walk_state_list; in acpi_ds_dump_method_stack()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | vtime.c | 151 user = update_tsk_timer(&tsk->thread.user_timer, in do_account_vtime() 153 guest = update_tsk_timer(&tsk->thread.guest_timer, in do_account_vtime() 155 system = update_tsk_timer(&tsk->thread.system_timer, in do_account_vtime() 157 hardirq = update_tsk_timer(&tsk->thread.hardirq_timer, in do_account_vtime() 159 softirq = update_tsk_timer(&tsk->thread.softirq_timer, in do_account_vtime() 188 prev->thread.user_timer = S390_lowcore.user_timer; in vtime_task_switch() 189 prev->thread.guest_timer = S390_lowcore.guest_timer; in vtime_task_switch() 190 prev->thread.system_timer = S390_lowcore.system_timer; in vtime_task_switch() 191 prev->thread.hardirq_timer = S390_lowcore.hardirq_timer; in vtime_task_switch() 192 prev->thread in vtime_task_switch() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/acpica/ |
H A D | dswstate.c | 403 * PARAMETERS: thread - Get current active state for this Thread 413 *thread) in acpi_ds_get_current_walk_state() 417 if (!thread) { in acpi_ds_get_current_walk_state() 422 thread->walk_state_list)); in acpi_ds_get_current_walk_state() 424 return (thread->walk_state_list); in acpi_ds_get_current_walk_state() 432 * thread - Thread state object 442 struct acpi_thread_state *thread) in acpi_ds_push_walk_state() 446 walk_state->next = thread->walk_state_list; in acpi_ds_push_walk_state() 447 thread->walk_state_list = walk_state; in acpi_ds_push_walk_state() 456 * PARAMETERS: thread 412 acpi_ds_get_current_walk_state(struct acpi_thread_state *thread) acpi_ds_get_current_walk_state() argument 441 acpi_ds_push_walk_state(struct acpi_walk_state *walk_state, struct acpi_thread_state *thread) acpi_ds_push_walk_state() argument 466 acpi_ds_pop_walk_state(struct acpi_thread_state *thread) acpi_ds_pop_walk_state() argument 506 acpi_ds_create_walk_state(acpi_owner_id owner_id, union acpi_parse_object *origin, union acpi_operand_object *method_desc, struct acpi_thread_state *thread) acpi_ds_create_walk_state() argument [all...] |
H A D | dsdebug.c | 94 struct acpi_thread_state *thread; in acpi_ds_dump_method_stack() local 120 thread = walk_state->thread; in acpi_ds_dump_method_stack() 121 if (!thread) { in acpi_ds_dump_method_stack() 137 next_walk_state = thread->walk_state_list; in acpi_ds_dump_method_stack()
|
/kernel/linux/linux-6.6/arch/x86/kernel/fpu/ |
H A D | core.c | 207 fpuperm = ¤t->group_leader->thread.fpu.guest_perm; in fpu_init_guest_permissions() 319 struct fpstate *fps = current->thread.fpu.fpstate; in fpu_sync_guest_vmexit_xfd_state() 333 struct fpu *fpu = ¤t->thread.fpu; in fpu_swap_kvm_fpstate() 433 save_fpregs_to_fpstate(¤t->thread.fpu); in kernel_fpu_begin_mask() 461 WARN_ON_FPU(fpu != ¤t->thread.fpu); in fpu_sync_fpstate() 546 struct fpu *src_fpu = ¤t->group_leader->thread.fpu; in fpu_inherit_perms() 566 xstate = get_xsave_addr(&dst->thread.fpu.fpstate->regs.xsave, in update_fpu_shstk() 587 struct fpu *src_fpu = ¤t->thread.fpu; in fpu_clone() 588 struct fpu *dst_fpu = &dst->thread.fpu; in fpu_clone() 680 if (fpu == ¤t->thread in fpu__drop() [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | code-reading.c | 31 #include "thread.h" 229 struct thread *thread, struct state *state) in read_object_code() 245 if (!thread__find_map(thread, cpumode, addr, &al) || !map__dso(al.map)) { in read_object_code() 273 ret_len = dso__data_read_offset(dso, maps__machine(thread__maps(thread)), in read_object_code() 379 struct thread *thread; in process_sample_event() local 387 thread = machine__findnew_thread(machine, sample.pid, sample.tid); in process_sample_event() 388 if (!thread) { in process_sample_event() 393 ret = read_object_code(sample.ip, READLEN, sample.cpumode, thread, stat in process_sample_event() 228 read_object_code(u64 addr, size_t len, u8 cpumode, struct thread *thread, struct state *state) read_object_code() argument 556 struct thread *thread; do_test_code_reading() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_mutex_test.cpp | 3 #include <thread> 127 std::thread([&mtxTime] { in HWTEST_F() 151 std::thread([&mtxUnlock] { EXPECT_EQ(thrd_busy, mtx_trylock(&mtxUnlock)); }).join(); in HWTEST_F() 217 pthread_t thread; in HWTEST_F() local 218 pthread_create(&thread, nullptr, timeLockThread, &mutex_); in HWTEST_F() 220 pthread_join(thread, &joinResult); in HWTEST_F() 268 pthread_t thread; in HWTEST_F() local 269 pthread_create(&thread, nullptr, timeLockThread, &mutex_); in HWTEST_F() 271 pthread_join(thread, &joinResult); in HWTEST_F() 342 pthread_t thread; in HWTEST_F() local 372 pthread_t thread; HWTEST_F() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | thread.cpp | 15 #include "marl/thread.h" 38 #include <thread> 43 #include <thread> 47 #include <thread> 150 auto thread = pthread_self(); in all() local 153 if (pthread_getaffinity_np(thread, sizeof(cpu_set_t), &cpuset) == 0) { in all() 162 auto thread = pthread_self(); in all() local 165 if (pthread_getaffinity_np(thread, sizeof(cpuset_t), &cpuset) == 0) { in all() 303 "Cannot create thread that uses multiple affinity groups"); in Thread() 324 MARL_ASSERT(impl != nullptr, "join() called on unjoinable thread"); in join() 370 std::thread thread; global() member in marl::Thread::Impl 384 auto thread = pthread_self(); setAffinity() local 392 auto thread = pthread_self(); setAffinity() local [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | ptrace.c | 244 return task->thread.fsindex; in get_segment_reg() 250 return task->thread.gsindex; in get_segment_reg() 256 return task->thread.ds; in get_segment_reg() 262 return task->thread.es; in get_segment_reg() 291 task->thread.fsindex = value; in set_segment_reg() 294 task->thread.gsindex = value; in set_segment_reg() 297 task->thread.ds = value; in set_segment_reg() 300 task->thread.es = value; in set_segment_reg() 457 struct thread_struct *thread = &(current->thread); in ptrace_triggered() local 543 struct thread_struct *thread = &tsk->thread; ptrace_write_dr7() local 594 struct thread_struct *thread = &tsk->thread; ptrace_get_debugreg() local 653 struct thread_struct *thread = &tsk->thread; ptrace_set_debugreg() local [all...] |
H A D | traps.c | 117 tsk->thread.error_code = error_code; in do_trap_no_signal() 118 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 131 tsk->thread.error_code = error_code; in do_trap_no_signal() 132 tsk->thread.trap_nr = trapnr; in do_trap_no_signal() 413 tsk->thread.error_code = error_code; in DEFINE_IDTENTRY_DF() 414 tsk->thread.trap_nr = X86_TRAP_DF; in DEFINE_IDTENTRY_DF() 528 struct thread_struct *t = ¤t->thread; in fixup_iopl_exception() 585 tsk->thread.error_code = error_code; in DEFINE_IDTENTRY_ERRORCODE() 586 tsk->thread.trap_nr = X86_TRAP_GP; in DEFINE_IDTENTRY_ERRORCODE() 596 tsk->thread in DEFINE_IDTENTRY_ERRORCODE() [all...] |
/applications/standard/app_samples/code/BasicFeature/Native/NdkQoS/entry/src/main/cpp/ |
H A D | main.cpp | 17 #include <thread>
61 OH_LOG_Print(LOG_APP, LOG_INFO, LOG_PRINT_DOMAIN, "QoS", "the qos level of current thread : %{public}d",
in SetQoS() 76 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "QoS", "bind qos thread failed");
in SetQoS() 117 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "QoS", "set load thread QoS level failed.");
in AddLoads() 125 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "QoS", "bind load thread failed");
in AddLoads() 144 std::vector<std::thread> loadThreads;
in highQoSCalculate() 147 loadThreads.emplace_back(std::thread(AddLoads, TASKS));
in highQoSCalculate() 154 std::thread task(SetQoS, level);
in highQoSCalculate() 168 std::vector<std::thread> loadThreads;
in lowQoSCalculate() 171 loadThreads.emplace_back(std::thread(AddLoad in lowQoSCalculate() [all...] |
/kernel/linux/linux-5.10/drivers/vfio/ |
H A D | virqfd.c | 52 virqfd->thread) in virqfd_wakeup() 100 if (virqfd->thread) in virqfd_inject() 101 virqfd->thread(virqfd->opaque, virqfd->data); in virqfd_inject() 106 void (*thread)(void *, void *), in vfio_virqfd_enable() 122 virqfd->thread = thread; in vfio_virqfd_enable() 173 if ((!handler || handler(opaque, data)) && thread) in vfio_virqfd_enable()
|
/kernel/linux/linux-6.6/drivers/vfio/ |
H A D | virqfd.c | 52 virqfd->thread) in virqfd_wakeup() 100 if (virqfd->thread) in virqfd_inject() 101 virqfd->thread(virqfd->opaque, virqfd->data); in virqfd_inject() 106 void (*thread)(void *, void *), in vfio_virqfd_enable() 122 virqfd->thread = thread; in vfio_virqfd_enable() 173 if ((!handler || handler(opaque, data)) && thread) in vfio_virqfd_enable()
|
/kernel/linux/linux-6.6/arch/loongarch/kernel/ |
H A D | kgdb.c | 134 memcpy(mem, (void *)¤t->thread.fpu.fcsr, reg_size); in dbg_get_reg() 137 memcpy(mem, (void *)¤t->thread.fpu.fcc + reg_offset, reg_size); in dbg_get_reg() 140 memcpy(mem, (void *)¤t->thread.fpu.fpr[reg_offset], reg_size); in dbg_get_reg() 175 memcpy((void *)¤t->thread.fpu.fcsr, mem, reg_size); in dbg_set_reg() 178 memcpy((void *)¤t->thread.fpu.fcc + reg_offset, mem, reg_size); in dbg_set_reg() 181 memcpy((void *)¤t->thread.fpu.fpr[reg_offset], mem, reg_size); in dbg_set_reg() 201 gdb_regs[DBG_LOONGARCH_RA] = p->thread.reg01; in sleeping_thread_to_gdb_regs() 203 gdb_regs[DBG_LOONGARCH_SP] = p->thread.reg03; in sleeping_thread_to_gdb_regs() 206 gdb_regs[DBG_LOONGARCH_S0] = p->thread.reg23; in sleeping_thread_to_gdb_regs() 207 gdb_regs[DBG_LOONGARCH_S1] = p->thread in sleeping_thread_to_gdb_regs() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | stat.c | 251 for (int thread = 0; thread < nthreads; thread++) { in evsel__copy_prev_raw_counts() 253 *perf_counts(evsel->counts, idx, thread) = in evsel__copy_prev_raw_counts() 254 *perf_counts(evsel->prev_raw_counts, idx, thread); in evsel__copy_prev_raw_counts() 387 int cpu_map_idx, int thread, in process_counter_values() 403 evsel__compute_deltas(evsel, cpu_map_idx, thread, count); in process_counter_values() 407 struct perf_counts_values *aggr_counts = &ps->aggr[thread].counts; in process_counter_values() 410 * Skip value 0 when enabling --per-thread globally, in process_counter_values() 416 ps->aggr[thread] in process_counter_values() 386 process_counter_values(struct perf_stat_config *config, struct evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) process_counter_values() argument 466 int idx, thread; process_counter_maps() local [all...] |
/third_party/elfutils/libdwfl/ |
H A D | frame_unwind.c | 50 Ebl *ebl = state->thread->process->ebl; in __libdwfl_frame_reg_get() 67 Ebl *ebl = state->thread->process->ebl; in __libdwfl_frame_reg_set() 139 Dwfl_Process *process = state->thread->process; in expr_eval() 503 Dwfl_Thread *thread = state->thread; in new_unwound() local 504 Dwfl_Process *process = thread->process; in new_unwound() 513 unwound->thread = thread; in new_unwound() 545 Dwfl_Thread *thread = state->thread; in handle_cfi() local 700 Dwfl_Thread *thread = state->thread; readfunc() local 744 Dwfl_Thread *thread = state->thread; __libdwfl_frame_unwind() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/ |
H A D | socket_test.cpp | 128 pthread_t thread; in HWTEST_F() local 129 int cresult = pthread_create(&thread, nullptr, FnLink, &connData); in HWTEST_F() 141 int jresult = pthread_join(thread, &retVal); in HWTEST_F() 176 pthread_t thread; in HWTEST_F() local 177 int cresult = pthread_create(&thread, nullptr, FnLink, &connData); in HWTEST_F() 205 int jresult = pthread_join(thread, &retVal); in HWTEST_F() 265 pthread_t thread; in HWTEST_F() local 266 int cresult = pthread_create(&thread, nullptr, FnLink, &connData); in HWTEST_F() 290 int jresult = pthread_join(thread, &retVal); in HWTEST_F() 332 * connection handling thread complete 345 pthread_t thread; HWTEST_F() local 387 pthread_t thread; HWTEST_F() local 436 pthread_t thread; HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
H A D | processor.h | 100 * true on thread creation). We need to set this explicitly. 109 * Do necessary setup to start up a newly executed thread. 123 /* Free all resources held by a thread. */ 133 if ((tsk)->thread.esp0 > PAGE_SIZE && \ 134 (virt_addr_valid((tsk)->thread.esp0))) \ 135 eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \ 137 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp) 139 #define task_pt_regs(tsk) ((struct pt_regs *) ((tsk)->thread.esp0))
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | unwind-libunwind.c | 5 #include "thread.h" 31 pr_debug("unwind: thread map already set, dso=%s\n", in unwind__prepare_access() 82 struct thread *thread, in unwind__get_entries() 85 if (thread->maps->unwind_libunwind_ops) in unwind__get_entries() 86 return thread->maps->unwind_libunwind_ops->get_entries(cb, arg, thread, data, max_stack); in unwind__get_entries() 81 unwind__get_entries(unwind_entry_cb_t cb, void *arg, struct thread *thread, struct perf_sample *data, int max_stack) unwind__get_entries() argument
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap11.c | 29 * thread library called abort(). 41 * The fact is, glibc call munmap() when thread exitng time for freeing 94 pthread_t *thread, th; in check() local 105 thread = malloc(STD_LOOP_COUNT * sizeof(pthread_t)); in check() 106 if (thread == NULL) in check() 117 ret = pthread_create(&thread[lc], &attr, wait_thread2, NULL); in check() 125 free(thread); in check()
|