Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 25 of 952) sorted by relevance

12345678910>>...39

/linux/tools/perf/util/
A Dthread.c43 struct thread *thread = zalloc(sizeof(*thread)); in thread__new() local
81 void thread__delete(struct thread *thread) in thread__delete() argument
118 struct thread *thread__get(struct thread *thread) in thread__get() argument
120 if (thread) in thread__get()
125 void thread__put(struct thread *thread) in thread__put() argument
127 if (thread && refcount_dec_and_test(&thread->refcnt)) { in thread__put()
275 int thread__set_comm_from_proc(struct thread *thread) in thread__set_comm_from_proc() argument
302 const char *thread__comm_str(struct thread *thread) in thread__comm_str() argument
314 int thread__comm_len(struct thread *thread) in thread__comm_len() argument
425 struct thread *thread__main_thread(struct machine *machine, struct thread *thread) in thread__main_thread() argument
[all …]
A Dthread.h32 struct thread { struct
70 void thread__delete(struct thread *thread);
72 struct thread *thread__get(struct thread *thread);
73 void thread__put(struct thread *thread);
81 #define thread__zput(thread) __thread__zput(&thread) argument
83 static inline void thread__exited(struct thread *thread) in thread__exited() argument
100 int thread__set_comm_from_proc(struct thread *thread);
102 int thread__comm_len(struct thread *thread);
103 struct comm *thread__comm(const struct thread *thread);
105 const char *thread__comm_str(struct thread *thread);
[all …]
A Dthread-stack.h14 struct thread;
54 struct thread *thread; member
82 int thread_stack__event(struct thread *thread, int cpu, u32 flags, u64 from_ip,
85 void thread_stack__set_trace_nr(struct thread *thread, int cpu, u64 trace_nr);
88 void thread_stack__sample_late(struct thread *thread, int cpu,
91 void thread_stack__br_sample(struct thread *thread, int cpu,
93 void thread_stack__br_sample_late(struct thread *thread, int cpu,
96 int thread_stack__flush(struct thread *thread);
97 void thread_stack__free(struct thread *thread);
98 size_t thread_stack__depth(struct thread *thread, int cpu);
[all …]
A Dthread-stack.c113 static inline bool thread_stack__per_cpu(struct thread *thread) in thread_stack__per_cpu() argument
115 return !(thread->tid || thread->pid_); in thread_stack__per_cpu()
158 if (thread->maps && thread->maps->machine) { in thread_stack__init()
229 if (!thread) in thread__stack()
298 static int thread_stack__call_return(struct thread *thread, in thread_stack__call_return() argument
305 .thread = thread, in thread_stack__call_return()
364 int thread_stack__flush(struct thread *thread) in thread_stack__flush() argument
412 if (!thread) in thread_stack__event()
503 void thread_stack__free(struct thread *thread) in thread_stack__free() argument
520 void thread_stack__sample(struct thread *thread, int cpu, in thread_stack__sample() argument
[all …]
A Ddb-export.c62 int db_export__thread(struct db_export *dbe, struct thread *thread, in db_export__thread() argument
67 if (thread->db_id) in db_export__thread()
83 struct thread *thread) in __db_export__comm() argument
94 struct thread *thread) in db_export__comm() argument
134 struct thread *thread) in db_export__comm_thread() argument
211 struct thread *thread, in call_path_from_sample() argument
348 struct thread *thread = al->thread; in db_export__sample() local
526 struct thread *thread = machine__find_thread(machine, pid, tid); in db_export__pid_tid() local
530 if (!thread || !thread->comm_set) in db_export__pid_tid()
533 *is_idle = !thread->pid_ && !thread->tid; in db_export__pid_tid()
[all …]
/linux/arch/mips/include/asm/
A Dasmmacro-32.h20 s.d $f0, THREAD_FPR0(\thread)
21 s.d $f2, THREAD_FPR2(\thread)
22 s.d $f4, THREAD_FPR4(\thread)
23 s.d $f6, THREAD_FPR6(\thread)
24 s.d $f8, THREAD_FPR8(\thread)
25 s.d $f10, THREAD_FPR10(\thread)
26 s.d $f12, THREAD_FPR12(\thread)
27 s.d $f14, THREAD_FPR14(\thread)
28 s.d $f16, THREAD_FPR16(\thread)
29 s.d $f18, THREAD_FPR18(\thread)
[all …]
A Dasmmacro-64.h17 .macro cpu_save_nonscratch thread
18 LONG_S s0, THREAD_REG16(\thread)
19 LONG_S s1, THREAD_REG17(\thread)
20 LONG_S s2, THREAD_REG18(\thread)
21 LONG_S s3, THREAD_REG19(\thread)
22 LONG_S s4, THREAD_REG20(\thread)
23 LONG_S s5, THREAD_REG21(\thread)
24 LONG_S s6, THREAD_REG22(\thread)
25 LONG_S s7, THREAD_REG23(\thread)
26 LONG_S sp, THREAD_REG29(\thread)
[all …]
A Dasmmacro.h88 sdc1 $f0, THREAD_FPR0(\thread)
89 sdc1 $f2, THREAD_FPR2(\thread)
90 sdc1 $f4, THREAD_FPR4(\thread)
91 sdc1 $f6, THREAD_FPR6(\thread)
104 sw \tmp, THREAD_FCR31(\thread)
108 .macro fpu_save_16odd thread
137 fpu_save_16odd \thread
140 fpu_save_16even \thread \tmp
197 fpu_restore_16odd \thread
515 #define FPR_BASE \thread
[all …]
A Ddsp.h41 tsk->thread.dsp.dspr[0] = mfhi1(); \
42 tsk->thread.dsp.dspr[1] = mflo1(); \
43 tsk->thread.dsp.dspr[2] = mfhi2(); \
44 tsk->thread.dsp.dspr[3] = mflo2(); \
58 mthi1(tsk->thread.dsp.dspr[0]); \
59 mtlo1(tsk->thread.dsp.dspr[1]); \
60 mthi2(tsk->thread.dsp.dspr[2]); \
61 mtlo2(tsk->thread.dsp.dspr[3]); \
62 mthi3(tsk->thread.dsp.dspr[4]); \
63 mtlo3(tsk->thread.dsp.dspr[5]); \
[all …]
/linux/arch/powerpc/kernel/ptrace/
A Dptrace-adv.c48 task->thread.debug.dbcr1)) { in user_disable_single_step()
88 struct thread_struct *thread = &task->thread; in ptrace_set_debugreg() local
224 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_instruction_bp()
241 child->thread.debug.iac1 = 0; in del_instruction_bp()
251 child->thread.debug.iac2 = 0; in del_instruction_bp()
264 child->thread.debug.iac3 = 0; in del_instruction_bp()
274 child->thread.debug.iac4 = 0; in del_instruction_bp()
308 child->thread.debug.dvc1 = in set_dac()
329 child->thread.debug.dvc2 = in set_dac()
340 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_dac()
[all …]
A Dptrace-noadv.c82 struct thread_struct *thread = &task->thread; in ptrace_set_debugreg() local
121 bp = thread->ptrace_bps[0]; in ptrace_set_debugreg()
125 thread->ptrace_bps[0] = NULL; in ptrace_set_debugreg()
142 thread->ptrace_bps[0] = bp; in ptrace_set_debugreg()
143 thread->hw_brk[0] = hw_brk; in ptrace_set_debugreg()
157 thread->ptrace_bps[0] = NULL; in ptrace_set_debugreg()
175 if (!thread->ptrace_bps[i]) in find_empty_ptrace_bp()
198 struct thread_struct *thread = &child->thread; in ppc_set_hwdebug() local
244 thread->ptrace_bps[i] = bp; in ppc_set_hwdebug()
246 thread->ptrace_bps[i] = NULL; in ppc_set_hwdebug()
[all …]
A Dptrace-tm.c28 tm_save_sprs(&tsk->thread); in flush_tmregs_to_thread()
34 return task->thread.ckpt_regs.msr | task->thread.fpexc_mode; in get_user_ckpt_msr()
46 set_trap(&task->thread.ckpt_regs, trap); in set_user_ckpt_trap()
152 &target->thread.ckpt_regs, in tm_cgpr_set()
247 buf[i] = target->thread.TS_CKFPR(i); in tm_cfpr_get()
291 buf[i] = target->thread.TS_CKFPR(i); in tm_cfpr_set()
299 target->thread.TS_CKFPR(i) = buf[i]; in tm_cfpr_set()
367 vrsave.word = target->thread.ckvrsave; in tm_cvmx_get()
648 &target->thread.tm_tfiar, in tm_spr_set()
778 &target->thread.ckpt_regs.gpr[0]); in tm_cgpr32_get()
[all …]
/linux/arch/riscv/kernel/
A Dasm-offsets.c20 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
21 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
22 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
23 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
24 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
25 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets()
26 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets()
275 offsetof(struct task_struct, thread.ra) in asm_offsets()
276 - offsetof(struct task_struct, thread.ra) in asm_offsets()
279 offsetof(struct task_struct, thread.sp) in asm_offsets()
[all …]
/linux/drivers/mailbox/
A Dmtk-cmdq-mailbox.c68 struct cmdq_thread *thread; member
78 struct cmdq_thread *thread; member
171 struct cmdq_thread *thread = task->thread; in cmdq_task_insert_into_thread() local
211 struct cmdq_thread *thread = task->thread; in cmdq_task_handle_error() local
222 cmdq_thread_resume(thread); in cmdq_task_handle_error()
289 struct cmdq_thread *thread = &cmdq->thread[bit]; in cmdq_irq_handler() local
302 struct cmdq_thread *thread; in cmdq_suspend() local
309 thread = &cmdq->thread[i]; in cmdq_suspend()
359 task->thread = thread; in cmdq_mbox_send_data()
378 writel(thread->priority, thread->base + CMDQ_THR_PRIORITY); in cmdq_mbox_send_data()
[all …]
/linux/tools/perf/tests/
A Ddwarf-unwind.c65 int test_dwarf_unwind__thread(struct thread *thread);
67 int test_dwarf_unwind__krava_3(struct thread *thread);
68 int test_dwarf_unwind__krava_2(struct thread *thread);
69 int test_dwarf_unwind__krava_1(struct thread *thread);
111 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__thread(struct thread *thread) in test_dwarf_unwind__thread() argument
145 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local
163 struct thread *array[2] = {thread, thread}; in test_dwarf_unwind__krava_3()
175 _bsearch(array, &thread, 2, sizeof(struct thread **), in test_dwarf_unwind__krava_3()
202 struct thread *thread; in test__dwarf_unwind() local
228 if (!thread) { in test__dwarf_unwind()
[all …]
/linux/arch/parisc/kernel/
A Dasm-offsets.c41 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
42 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
43 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main()
44 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main()
45 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main()
46 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main()
47 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main()
48 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); in main()
49 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); in main()
50 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread.regs.gr[ 8])); in main()
[all …]
/linux/tools/perf/scripts/python/
A Dstat-cpi.py10 def get_key(time, event, cpu, thread): argument
11 return "%d-%s-%d-%d" % (time, event, cpu, thread)
13 def store_key(time, cpu, thread): argument
20 if (thread not in threads):
21 threads.append(thread)
23 def store(time, event, cpu, thread, val, ena, run): argument
27 store_key(time, cpu, thread)
28 key = get_key(time, event, cpu, thread)
31 def get(time, event, cpu, thread): argument
32 key = get_key(time, event, cpu, thread)
[all …]
/linux/arch/powerpc/kernel/
A Dprocess.c218 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp()
269 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec()
388 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) { in enable_kernel_spe()
697 thread->debug.iac1 = thread->debug.iac2 = 0; in set_debug_reg_defaults()
699 thread->debug.iac3 = thread->debug.iac4 = 0; in set_debug_reg_defaults()
701 thread->debug.dac1 = thread->debug.dac2 = 0; in set_debug_reg_defaults()
703 thread->debug.dvc1 = thread->debug.dvc2 = 0; in set_debug_reg_defaults()
901 return tsk && tsk->thread.regs && (tsk->thread.regs->msr & MSR_TM); in tm_enabled()
1613 if (t->thread.tidr) in set_thread_tidr()
1775 p->thread.dscr_inherit = current->thread.dscr_inherit; in copy_thread()
[all …]
/linux/Documentation/vm/
A Dmmu_notifier.rst43 CPU-thread-2 {}
44 CPU-thread-3 {}
50 CPU-thread-2 {}
51 CPU-thread-3 {}
52 DEV-thread-0 {}
53 DEV-thread-2 {}
57 CPU-thread-2 {}
58 CPU-thread-3 {}
59 DEV-thread-0 {}
60 DEV-thread-2 {}
[all …]
/linux/tools/lib/perf/
A Devsel.c54 int cpu, thread; in perf_evsel__alloc_fd() local
56 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__alloc_fd()
143 for (thread = 0; thread < threads->nr; thread++) { in perf_evsel__open()
170 int thread; in perf_evsel__close_fd_cpu() local
172 for (thread = 0; thread < xyarray__max_y(evsel->fd); ++thread) { in perf_evsel__close_fd_cpu()
215 int cpu, thread; in perf_evsel__munmap() local
221 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__munmap()
237 int ret, cpu, thread; in perf_evsel__mmap() local
250 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__mmap()
331 int thread; in perf_evsel__run_ioctl() local
[all …]
/linux/arch/sh/kernel/cpu/sh4/
A Dfpu.c248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
286 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
287 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
288 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
330 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
331 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
332 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
368 hx = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
[all …]
/linux/arch/um/kernel/
A Dprocess.c87 to->thread.prev_sched = from; in __switch_to()
90 switch_threads(&from->thread.switch_buf, &to->thread.switch_buf); in __switch_to()
93 return current->thread.prev_sched; in __switch_to()
125 current->thread.prev_sched = NULL; in new_thread_handler()
127 fn = current->thread.request.u.thread.proc; in new_thread_handler()
128 arg = current->thread.request.u.thread.arg; in new_thread_handler()
151 current->thread.prev_sched = NULL; in fork_handler()
174 arch_copy_thread(&current->thread.arch, &p->thread.arch); in copy_thread()
176 get_safe_registers(p->thread.regs.regs.gp, p->thread.regs.regs.fp); in copy_thread()
177 p->thread.request.u.thread.proc = (int (*)(void *))sp; in copy_thread()
[all …]
/linux/arch/mips/kernel/
A Dasm-offsets.c111 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines()
112 OFFSET(THREAD_REG17, task_struct, thread.reg17); in output_thread_defines()
113 OFFSET(THREAD_REG18, task_struct, thread.reg18); in output_thread_defines()
114 OFFSET(THREAD_REG19, task_struct, thread.reg19); in output_thread_defines()
115 OFFSET(THREAD_REG20, task_struct, thread.reg20); in output_thread_defines()
123 thread.cp0_status); in output_thread_defines()
126 thread.cp0_badvaddr); in output_thread_defines()
128 thread.cp0_baduaddr); in output_thread_defines()
130 thread.error_code); in output_thread_defines()
138 OFFSET(THREAD_FPU, task_struct, thread.fpu); in output_thread_fpu_defines()
[all …]
/linux/arch/s390/kernel/
A Dprocess.c93 dst->thread.fpu.regs = dst->thread.fpu.fprs; in arch_dup_task_struct()
112 memset(&p->thread.per_user, 0, sizeof(p->thread.per_user)); in copy_thread()
113 memset(&p->thread.per_event, 0, sizeof(p->thread.per_event)); in copy_thread()
115 p->thread.per_flags = 0; in copy_thread()
117 p->thread.user_timer = 0; in copy_thread()
118 p->thread.guest_timer = 0; in copy_thread()
119 p->thread.system_timer = 0; in copy_thread()
122 p->thread.last_break = 1; in copy_thread()
154 p->thread.ri_cb = NULL; in copy_thread()
157 p->thread.gs_cb = NULL; in copy_thread()
[all …]
A Dptrace.c44 struct thread_struct *thread = &task->thread; in update_cr_regs() local
72 if (task->thread.gs_cb) in update_cr_regs()
85 new.end = thread->per_user.end; in update_cr_regs()
138 memset(&task->thread.per_user, 0, sizeof(task->thread.per_user)); in ptrace_disable()
139 memset(&task->thread.per_event, 0, sizeof(task->thread.per_event)); in ptrace_disable()
142 task->thread.per_flags = 0; in ptrace_disable()
245 tmp = child->thread.fpu.fpc; in __peek_user()
1110 if (!target->thread.gs_cb) in s390_gs_cb_set()
1123 if (!target->thread.gs_cb) in s390_gs_cb_set()
1223 if (target->thread.ri_cb) { in s390_runtime_instr_set()
[all …]

Completed in 69 milliseconds

12345678910>>...39