Home
last modified time | relevance | path

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

12345678910>>...48

/openbmc/linux/tools/perf/util/
H A Dthread.h35 struct thread *thread; member
81 void thread__delete(struct thread *thread);
85 struct thread *thread__get(struct thread *thread);
86 void thread__put(struct thread *thread);
94 #define thread__zput(thread) __thread__zput(&thread) argument
108 int thread__set_comm_from_proc(struct thread *thread);
110 int thread__comm_len(struct thread *thread);
111 struct comm *thread__comm(struct thread *thread);
112 struct comm *thread__exec_comm(struct thread *thread);
113 const char *thread__comm_str(struct thread *thread);
[all …]
H A Dthread.c43 struct thread *thread; in thread__new() local
88 void thread__delete(struct thread *thread) in thread__delete() argument
127 struct thread *thread__get(struct thread *thread) in thread__get() argument
137 void thread__put(struct thread *thread) in thread__put() argument
199 struct comm *thread__comm(struct thread *thread) in thread__comm() argument
207 struct comm *thread__exec_comm(struct thread *thread) in thread__exec_comm() argument
293 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
386 thread__pid(thread), thread__tid(thread), in thread__clone_maps()
428 struct thread *thread__main_thread(struct machine *machine, struct thread *thread) in thread__main_thread() argument
[all …]
H 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 …]
H 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) || thread__pid(thread)); in thread_stack__per_cpu()
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
521 void thread_stack__sample(struct thread *thread, int cpu, in thread_stack__sample() argument
617 void thread_stack__br_sample(struct thread *thread, int cpu, in thread_stack__br_sample() argument
[all …]
/openbmc/linux/arch/mips/include/asm/
H 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 …]
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/Documentation/translations/zh_CN/mm/
H A Dmmu_notifier.rst45 CPU-thread-2 {}
46 CPU-thread-3 {}
52 CPU-thread-2 {}
53 CPU-thread-3 {}
54 DEV-thread-0 {}
55 DEV-thread-2 {}
59 CPU-thread-2 {}
60 CPU-thread-3 {}
61 DEV-thread-0 {}
62 DEV-thread-2 {}
[all …]
/openbmc/linux/arch/powerpc/kernel/ptrace/
H 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 …]
H 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 …]
H 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 …]
/openbmc/linux/tools/perf/tests/
H 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);
112 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__thread(struct thread *thread) in test_dwarf_unwind__thread() argument
146 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local
164 struct thread *array[2] = {thread, thread}; in test_dwarf_unwind__krava_3()
176 _bsearch(array, &thread, 2, sizeof(struct thread **), in test_dwarf_unwind__krava_3()
203 struct thread *thread; in test__dwarf_unwind() local
229 if (!thread) { in test__dwarf_unwind()
[all …]
/openbmc/linux/arch/riscv/kernel/
H A Dasm-offsets.c21 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
22 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
23 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
24 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
25 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
26 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets()
283 offsetof(struct task_struct, thread.ra) in asm_offsets()
284 - offsetof(struct task_struct, thread.ra) in asm_offsets()
287 offsetof(struct task_struct, thread.sp) in asm_offsets()
288 - offsetof(struct task_struct, thread.ra) in asm_offsets()
[all …]
/openbmc/linux/tools/perf/scripts/python/
H 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 …]
/openbmc/linux/drivers/mailbox/
H A Dmtk-cmdq-mailbox.c70 struct cmdq_thread *thread; member
80 struct cmdq_thread *thread; member
190 struct cmdq_thread *thread = task->thread; in cmdq_task_insert_into_thread() local
225 struct cmdq_thread *thread = task->thread; in cmdq_task_handle_error() local
236 cmdq_thread_resume(thread); in cmdq_task_handle_error()
303 struct cmdq_thread *thread = &cmdq->thread[bit]; in cmdq_irq_handler() local
316 struct cmdq_thread *thread; in cmdq_suspend() local
323 thread = &cmdq->thread[i]; in cmdq_suspend()
383 task->thread = thread; in cmdq_mbox_send_data()
402 writel(thread->priority, thread->base + CMDQ_THR_PRIORITY); in cmdq_mbox_send_data()
[all …]
/openbmc/linux/arch/parisc/kernel/
H A Dasm-offsets.c49 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
50 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
51 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main()
52 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main()
53 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main()
54 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main()
55 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main()
56 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); in main()
128 DEFINE(TASK_PT_KSP, offsetof(struct task_struct, thread.regs.ksp)); in main()
129 DEFINE(TASK_PT_KPC, offsetof(struct task_struct, thread.regs.kpc)); in main()
[all …]
/openbmc/linux/Documentation/mm/
H A Dmmu_notifier.rst41 CPU-thread-2 {}
42 CPU-thread-3 {}
48 CPU-thread-2 {}
49 CPU-thread-3 {}
50 DEV-thread-0 {}
51 DEV-thread-2 {}
55 CPU-thread-2 {}
56 CPU-thread-3 {}
57 DEV-thread-0 {}
58 DEV-thread-2 {}
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dprocess.c215 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp()
266 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec()
385 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) { in enable_kernel_spe()
694 thread->debug.iac1 = thread->debug.iac2 = 0; in set_debug_reg_defaults()
696 thread->debug.iac3 = thread->debug.iac4 = 0; in set_debug_reg_defaults()
698 thread->debug.dac1 = thread->debug.dac2 = 0; in set_debug_reg_defaults()
700 thread->debug.dvc1 = thread->debug.dvc2 = 0; in set_debug_reg_defaults()
930 return tsk && tsk->thread.regs && (tsk->thread.regs->msr & MSR_TM); in tm_enabled()
1872 p->thread.dscr_inherit = current->thread.dscr_inherit; in copy_thread()
1880 p->thread.hashkeyr = current->thread.hashkeyr; in copy_thread()
[all …]
/openbmc/linux/tools/lib/perf/
H A Devsel.c57 int idx, thread; in perf_evsel__alloc_fd() local
60 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__alloc_fd()
148 for (thread = 0; thread < threads->nr; thread++) { in perf_evsel__open()
182 int thread; in perf_evsel__close_fd_cpu() local
184 for (thread = 0; thread < xyarray__max_y(evsel->fd); ++thread) { in perf_evsel__close_fd_cpu()
225 int idx, thread; in perf_evsel__munmap() local
231 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__munmap()
247 int ret, idx, thread; in perf_evsel__mmap() local
260 for (thread = 0; thread < xyarray__max_y(evsel->fd); thread++) { in perf_evsel__mmap()
430 int thread; in perf_evsel__run_ioctl() local
[all …]
/openbmc/qemu/migration/
H A Dthreadinfo.c29 thread->name = name; in migration_threads_add()
30 thread->thread_id = thread_id; in migration_threads_add()
36 return thread; in migration_threads_add()
39 void migration_threads_remove(MigrationThread *thread) in migration_threads_remove() argument
42 if (thread) { in migration_threads_remove()
43 QLIST_REMOVE(thread, node); in migration_threads_remove()
44 g_free(thread); in migration_threads_remove()
52 MigrationThread *thread = NULL; in qmp_query_migrationthreads() local
55 QLIST_FOREACH(thread, &migration_threads, node) { in qmp_query_migrationthreads()
57 info->name = g_strdup(thread->name); in qmp_query_migrationthreads()
[all …]
/openbmc/linux/arch/um/kernel/
H A Dprocess.c89 to->thread.prev_sched = from; in __switch_to()
92 switch_threads(&from->thread.switch_buf, &to->thread.switch_buf); in __switch_to()
95 return current->thread.prev_sched; in __switch_to()
127 current->thread.prev_sched = NULL; in new_thread_handler()
129 fn = current->thread.request.u.thread.proc; in new_thread_handler()
130 arg = current->thread.request.u.thread.arg; in new_thread_handler()
153 current->thread.prev_sched = NULL; in fork_handler()
177 arch_copy_thread(&current->thread.arch, &p->thread.arch); in copy_thread()
179 get_safe_registers(p->thread.regs.regs.gp, p->thread.regs.regs.fp); in copy_thread()
180 p->thread.request.u.thread.proc = args->fn; in copy_thread()
[all …]
/openbmc/linux/arch/sh/kernel/cpu/sh4/
H 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 …]
/openbmc/linux/arch/s390/kernel/
H A Dprocess.c93 dst->thread.fpu.regs = dst->thread.fpu.fprs; in arch_dup_task_struct()
102 dst->thread.ri_cb = NULL; in arch_dup_task_struct()
103 dst->thread.gs_cb = NULL; in arch_dup_task_struct()
104 dst->thread.gs_bc_cb = NULL; in arch_dup_task_struct()
126 memset(&p->thread.per_user, 0, sizeof(p->thread.per_user)); in copy_thread()
127 memset(&p->thread.per_event, 0, sizeof(p->thread.per_event)); in copy_thread()
129 p->thread.per_flags = 0; in copy_thread()
131 p->thread.user_timer = 0; in copy_thread()
132 p->thread.guest_timer = 0; in copy_thread()
133 p->thread.system_timer = 0; in copy_thread()
[all …]
H A Dguarded_storage.c17 kfree(tsk->thread.gs_cb); in guarded_storage_release()
18 kfree(tsk->thread.gs_bc_cb); in guarded_storage_release()
25 if (!current->thread.gs_cb) { in gs_enable()
33 current->thread.gs_cb = gs_cb; in gs_enable()
41 if (current->thread.gs_cb) { in gs_disable()
43 kfree(current->thread.gs_cb); in gs_disable()
44 current->thread.gs_cb = NULL; in gs_disable()
72 current->thread.gs_bc_cb = NULL; in gs_clear_bc_cb()
85 kfree(current->thread.gs_cb); in gs_load_bc_cb()
89 current->thread.gs_cb = gs_cb; in gs_load_bc_cb()
[all …]

12345678910>>...48