Home
last modified time | relevance | path

Searched refs:thread (Results 301 - 325 of 2434) sorted by relevance

1...<<11121314151617181920>>...98

/kernel/linux/linux-6.6/tools/perf/util/
H A Darm64-frame-pointer-unwind-support.h8 struct thread;
10 u64 get_leaf_frame_caller_aarch64(struct perf_sample *sample, struct thread *thread, int user_idx);
H A Darchinsn.h6 struct thread;
9 struct thread *thread,
H A Dstat.c251 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...]
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dtraps.c117 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 = &current->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...]
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Dkgdb.c134 memcpy(mem, (void *)&current->thread.fpu.fcsr, reg_size); in dbg_get_reg()
137 memcpy(mem, (void *)&current->thread.fpu.fcc + reg_offset, reg_size); in dbg_get_reg()
140 memcpy(mem, (void *)&current->thread.fpu.fpr[reg_offset], reg_size); in dbg_get_reg()
175 memcpy((void *)&current->thread.fpu.fcsr, mem, reg_size); in dbg_set_reg()
178 memcpy((void *)&current->thread.fpu.fcc + reg_offset, mem, reg_size); in dbg_set_reg()
181 memcpy((void *)&current->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/arch/powerpc/kvm/
H A Dbook3s_hv_p9_entry.c18 current->thread.vrsave != vcpu->arch.vrsave) in load_spr_state()
23 if (current->thread.ebbhr != vcpu->arch.ebbhr) in load_spr_state()
25 if (current->thread.ebbrr != vcpu->arch.ebbrr) in load_spr_state()
27 if (current->thread.bescr != vcpu->arch.bescr) in load_spr_state()
32 current->thread.tidr != vcpu->arch.tid) in load_spr_state()
40 if (current->thread.fscr != vcpu->arch.fscr) in load_spr_state()
42 if (current->thread.dscr != vcpu->arch.dscr) in load_spr_state()
160 * current->thread.xxx registers must all be restored to host in restore_p9_host_os_sprs()
162 * switch itself will overwrite current->thread.xxx with the values in restore_p9_host_os_sprs()
169 current->thread in restore_p9_host_os_sprs()
[all...]
/kernel/linux/linux-6.6/arch/m68k/kernel/
H A Dptrace.c43 /* Find the stack offset for a register, relative to thread.esp0. */
80 addr = &task->thread.usp; in get_reg()
82 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in get_reg()
87 long stkadj = *(long *)(task->thread.esp0 + PT_REG(stkadj)); in get_reg()
105 addr = &task->thread.usp; in put_reg()
107 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in put_reg()
112 long stkadj = *(long *)(task->thread.esp0 + PT_REG(stkadj)); in put_reg()
179 tmp = child->thread.fp[regno - 21]; in arch_ptrace()
220 child->thread.fp[regno - 21] = data; in arch_ptrace()
250 if (copy_to_user(datap, &child->thread in arch_ptrace()
[all...]
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Dprinter.h40 static void PrintThreadHeaderByConfig(std::shared_ptr<DfxThread> thread, bool isKeyThread);
41 static void PrintThreadBacktraceByConfig(std::shared_ptr<DfxThread> thread, bool isKeyThread);
42 static void PrintThreadRegsByConfig(std::shared_ptr<DfxThread> thread);
44 static void PrintThreadFaultStackByConfig(std::shared_ptr<DfxProcess> process, std::shared_ptr<DfxThread> thread,
/base/security/device_security_level/services/sa/standard/
H A Ddslm_service.cpp19 #include <thread>
44 std::thread thread([this]() { in OnStart()
52 thread.detach(); in OnStart()
/kernel/linux/linux-5.10/arch/c6x/include/asm/
H A Dprocessor.h76 /* Free all resources held by a thread. */
82 * saved kernel SP and DP of a blocked thread.
86 (*(unsigned long *)&(tsk)->thread.b15_14)
88 (*(((unsigned long *)&(tsk)->thread.b15_14) + 1))
91 (*(((unsigned long *)&(tsk)->thread.b15_14) + 1))
93 (*(unsigned long *)&(tsk)->thread.b15_14)
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dcop2.h19 #define cop2_save(r) octeon_cop2_save(&(r)->thread.cp2)
20 #define cop2_restore(r) octeon_cop2_restore(&(r)->thread.cp2)
30 #define cop2_save(r) nlm_cop2_save(&(r)->thread.cp2)
31 #define cop2_restore(r) nlm_cop2_restore(&(r)->thread.cp2)
/kernel/linux/linux-5.10/arch/ia64/include/asm/
H A Dswitch_to.h20 * Context switch from one thread to another. If the two threads have
26 * newly created thread returns directly to
35 ((t)->thread.flags & (IA64_THREAD_DBG_VALID|IA64_THREAD_PM_VALID))
48 * In the SMP case, we save the fph state when context-switching away from a thread that
49 * modified fph. This way, when the thread gets scheduled on another CPU, the CPU can
50 * pick up the state from task->thread.fph, avoiding the complication of having to fetch
56 (prev)->thread.flags |= IA64_THREAD_FPH_VALID; \
57 __ia64_save_fpu((prev)->thread.fph); \
61 if (unlikely((current->thread.flags & IA64_THREAD_MIGRATION) && \
/kernel/linux/linux-6.6/arch/ia64/include/asm/
H A Dswitch_to.h20 * Context switch from one thread to another. If the two threads have
26 * newly created thread returns directly to
35 ((t)->thread.flags & (IA64_THREAD_DBG_VALID|IA64_THREAD_PM_VALID))
48 * In the SMP case, we save the fph state when context-switching away from a thread that
49 * modified fph. This way, when the thread gets scheduled on another CPU, the CPU can
50 * pick up the state from task->thread.fph, avoiding the complication of having to fetch
56 (prev)->thread.flags |= IA64_THREAD_FPH_VALID; \
57 __ia64_save_fpu((prev)->thread.fph); \
61 if (unlikely((current->thread.flags & IA64_THREAD_MIGRATION) && \
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/
H A Drecalc_apic_map_test.c40 pthread_t thread; in main() local
60 TEST_ASSERT_EQ(pthread_create(&thread, NULL, race, vcpus[0]), 0); in main()
68 TEST_ASSERT_EQ(pthread_cancel(thread), 0); in main()
69 TEST_ASSERT_EQ(pthread_join(thread, NULL), 0); in main()
/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/
H A Dclock_test_002.cpp56 pthread_t thread; in ClockTest() local
61 ret = pthread_create(&thread, NULL, ThreadFuncTest, 0); in ClockTest()
64 printf("Main thread sleeping\n"); in ClockTest()
67 printf("Main thread consuming some CPU time...\n"); in ClockTest()
74 ret = ThreadClock("Main thread CPU time: ", clockid); in ClockTest()
78 ret = pthread_getcpuclockid(thread, &clockid); in ClockTest()
84 ret = pthread_cancel(thread); in ClockTest()
/kernel/linux/linux-5.10/arch/sparc/math-emu/
H A Dmath_32.c172 printk("fpqdepth is %ld\n", fpt->thread.fpqdepth); in do_mathemu()
173 for (i = 0; i < fpt->thread.fpqdepth; i++) in do_mathemu()
174 printk("%d: %08lx at %08lx\n", i, fpt->thread.fpqueue[i].insn, in do_mathemu()
175 (unsigned long)fpt->thread.fpqueue[i].insn_addr); in do_mathemu()
178 if (fpt->thread.fpqdepth == 0) { /* no queue, guilty insn is at regs->pc */ in do_mathemu()
183 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
194 for (i = 0; i < fpt->thread.fpqdepth; i++) { in do_mathemu()
195 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread in do_mathemu()
[all...]
/kernel/linux/linux-6.6/arch/sparc/math-emu/
H A Dmath_32.c172 printk("fpqdepth is %ld\n", fpt->thread.fpqdepth); in do_mathemu()
173 for (i = 0; i < fpt->thread.fpqdepth; i++) in do_mathemu()
174 printk("%d: %08lx at %08lx\n", i, fpt->thread.fpqueue[i].insn, in do_mathemu()
175 (unsigned long)fpt->thread.fpqueue[i].insn_addr); in do_mathemu()
178 if (fpt->thread.fpqdepth == 0) { /* no queue, guilty insn is at regs->pc */ in do_mathemu()
183 retcode = do_one_mathemu(insn, &fpt->thread.fsr, fpt->thread.float_regs); in do_mathemu()
194 for (i = 0; i < fpt->thread.fpqdepth; i++) { in do_mathemu()
195 retcode = do_one_mathemu(fpt->thread.fpqueue[i].insn, &(fpt->thread in do_mathemu()
[all...]
/kernel/linux/linux-6.6/drivers/base/
H A Ddevtmpfs.c40 static struct task_struct *thread; variable
106 wake_up_process(thread); in devtmpfs_submit_req()
119 if (!thread) in devtmpfs_create_node()
146 if (!thread) in devtmpfs_delete_node()
172 d_inode(dentry)->i_private = &thread; in dev_mkdir()
233 d_inode(dentry)->i_private = &thread; in handle_create()
249 if (d_inode(dentry)->i_private == &thread) in dev_rmdir()
291 if (inode->i_private != &thread) in dev_mynode()
367 if (!thread) in devtmpfs_mount()
465 thread in devtmpfs_init()
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/fpu/
H A Dregset.c48 if (fpu == &current->thread.fpu) in sync_fpstate()
66 WARN_ON_FPU(fpu == &current->thread.fpu); in fpu_force_restore()
74 struct fpu *fpu = &target->thread.fpu; in xfpregs_get()
94 struct fpu *fpu = &target->thread.fpu; in xfpregs_set()
136 sync_fpstate(&target->thread.fpu); in xstateregs_get()
146 struct fpu *fpu = &target->thread.fpu; in xstateregs_set()
171 ret = copy_uabi_from_kernel_to_xstate(fpu->fpstate, kbuf ?: tmpbuf, &target->thread.pkru); in xstateregs_set()
181 if (target->thread.features & ARCH_SHSTK_SHSTK) in ssp_active()
190 struct fpu *fpu = &target->thread.fpu; in ssp_get()
216 struct fpu *fpu = &target->thread in ssp_set()
[all...]
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-script.c16 #include "util/thread.h"
31 #include "util/thread-stack.h"
775 struct thread *thread, in perf_sample__fprintf_start()
793 const char *comm = thread ? thread__comm_str(thread) : ":-1"; in perf_sample__fprintf_start()
917 struct thread *thread, in perf_sample__fprintf_brstack()
938 thread__find_map_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstack()
939 thread__find_map_fb(thread, sampl in perf_sample__fprintf_brstack()
773 perf_sample__fprintf_start(struct perf_script *script, struct perf_sample *sample, struct thread *thread, struct evsel *evsel, u32 type, FILE *fp) perf_sample__fprintf_start() argument
916 perf_sample__fprintf_brstack(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_brstack() argument
955 perf_sample__fprintf_brstacksym(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_brstacksym() argument
993 perf_sample__fprintf_brstackoff(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_brstackoff() argument
1036 grab_bb(u8 *buffer, u64 start, u64 end, struct machine *machine, struct thread *thread, bool *is64bit, u8 *cpumode, bool last) grab_bb() argument
1144 print_srccode(struct thread *thread, u8 cpumode, uint64_t addr) print_srccode() argument
1188 ip__fprintf_sym(uint64_t addr, struct thread *thread, u8 cpumode, int cpu, struct symbol **lastsym, struct perf_event_attr *attr, FILE *fp) ip__fprintf_sym() argument
1228 perf_sample__fprintf_brstackinsn(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, struct machine *machine, FILE *fp) perf_sample__fprintf_brstackinsn() argument
1380 perf_sample__fprintf_addr(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_addr() argument
1408 resolve_branch_sym(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, u64 *ip) resolve_branch_sym() argument
1438 perf_sample__fprintf_callindent(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, FILE *fp) perf_sample__fprintf_callindent() argument
1495 script_fetch_insn(struct perf_sample *sample, struct thread *thread, struct machine *machine) script_fetch_insn() argument
1502 perf_sample__fprintf_insn(struct perf_sample *sample, struct perf_event_attr *attr, struct thread *thread, struct machine *machine, FILE *fp) perf_sample__fprintf_insn() argument
1540 perf_sample__fprintf_bts(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, struct machine *machine, FILE *fp) perf_sample__fprintf_bts() argument
2022 struct thread *thread; global() member
2056 perf_sample__fprint_metric(struct perf_script *script, struct thread *thread, struct evsel *evsel, struct perf_sample *sample, FILE *fp) perf_sample__fprint_metric() argument
2095 show_event(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al) show_event() argument
2143 struct thread *thread = al->thread; process_event() local
2279 int idx, thread; __process_stat() local
2510 struct thread *thread = NULL; print_event_with_time() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dtraps.c348 current->thread.trap_nr = code; in exception_common()
354 thread_pkey_regs_save(&current->thread); in exception_common()
587 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC)
588 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC)
928 vdst = (u8 *)&current->thread.vr_state.vr[t]; in p9_hmi_special_emu()
930 vdst = (u8 *)&current->thread.fp_state.fpr[t][0]; in p9_hmi_special_emu()
1196 code = __parse_fpscr(current->thread.fp_state.fpscr); in parse_fpe()
1425 current->thread.dscr = regs->gpr[rd]; in emulate_instruction()
1426 current->thread.dscr_inherit = 1; in emulate_instruction()
1427 mtspr(SPRN_DSCR, current->thread in emulate_instruction()
[all...]
/base/inputmethod/imf/frameworks/js/napi/common/
H A Djs_callback_object.h18 #include <thread>
28 JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId);
32 std::thread::id threadId_;
/kernel/linux/linux-5.10/tools/perf/arch/x86/include/
H A Darch-tests.h16 struct thread;
19 struct thread *thread);
/kernel/linux/linux-5.10/tools/perf/util/
H A Ddump-insn.h9 struct thread;
13 struct thread *thread; member
H A Dvdso.h25 struct thread;
27 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);

Completed in 17 milliseconds

1...<<11121314151617181920>>...98