Home
last modified time | relevance | path

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

12345678910>>...34

/Linux-v4.19/tools/perf/util/
Dthread.c19 int thread__init_map_groups(struct thread *thread, struct machine *machine) in thread__init_map_groups() argument
21 pid_t pid = thread->pid_; in thread__init_map_groups()
23 if (pid == thread->tid || pid == -1) { in thread__init_map_groups()
24 thread->mg = map_groups__new(machine); in thread__init_map_groups()
26 struct thread *leader = __machine__findnew_thread(machine, pid, pid); in thread__init_map_groups()
28 thread->mg = map_groups__get(leader->mg); in thread__init_map_groups()
33 return thread->mg ? 0 : -1; in thread__init_map_groups()
36 struct thread *thread__new(pid_t pid, pid_t tid) in thread__new()
40 struct thread *thread = zalloc(sizeof(*thread)); in thread__new() local
42 if (thread != NULL) { in thread__new()
[all …]
Dthread.h18 struct thread { struct
51 struct thread *thread__new(pid_t pid, pid_t tid); argument
52 int thread__init_map_groups(struct thread *thread, struct machine *machine);
53 void thread__delete(struct thread *thread);
55 struct thread *thread__get(struct thread *thread);
56 void thread__put(struct thread *thread);
58 static inline void __thread__zput(struct thread **thread) in __thread__zput() argument
60 thread__put(*thread); in __thread__zput()
61 *thread = NULL; in __thread__zput()
64 #define thread__zput(thread) __thread__zput(&thread) argument
[all …]
Dunwind.h11 struct thread;
22 int (*prepare_access)(struct thread *thread);
23 void (*flush_access)(struct thread *thread);
24 void (*finish_access)(struct thread *thread);
26 struct thread *thread,
32 struct thread *thread,
49 int unwind__prepare_access(struct thread *thread, struct map *map,
51 void unwind__flush_access(struct thread *thread);
52 void unwind__finish_access(struct thread *thread);
54 static inline int unwind__prepare_access(struct thread *thread __maybe_unused, in unwind__prepare_access()
[all …]
Dunwind-libunwind.c12 static void unwind__register_ops(struct thread *thread, in unwind__register_ops() argument
15 thread->unwind_libunwind_ops = ops; in unwind__register_ops()
18 int unwind__prepare_access(struct thread *thread, struct map *map, in unwind__prepare_access() argument
26 if (thread->addr_space) { in unwind__prepare_access()
35 if (!thread->mg->machine->env || !thread->mg->machine->env->arch) in unwind__prepare_access()
38 dso_type = dso__type(map->dso, thread->mg->machine); in unwind__prepare_access()
42 arch = perf_env__arch(thread->mg->machine->env); in unwind__prepare_access()
57 unwind__register_ops(thread, ops); in unwind__prepare_access()
59 err = thread->unwind_libunwind_ops->prepare_access(thread); in unwind__prepare_access()
65 void unwind__flush_access(struct thread *thread) in unwind__flush_access() argument
[all …]
Dthread-stack.c92 static struct thread_stack *thread_stack__new(struct thread *thread, in thread_stack__new() argument
106 if (thread->mg && thread->mg->machine) in thread_stack__new()
107 ts->kernel_start = machine__kernel_start(thread->mg->machine); in thread_stack__new()
161 static int thread_stack__call_return(struct thread *thread, in thread_stack__call_return() argument
168 .thread = thread, in thread_stack__call_return()
188 static int __thread_stack__flush(struct thread *thread, struct thread_stack *ts) in __thread_stack__flush() argument
199 err = thread_stack__call_return(thread, ts, --ts->cnt, in __thread_stack__flush()
211 int thread_stack__flush(struct thread *thread) in thread_stack__flush() argument
213 if (thread->ts) in thread_stack__flush()
214 return __thread_stack__flush(thread, thread->ts); in thread_stack__flush()
[all …]
Dthread-stack.h23 struct thread;
58 struct thread *thread; member
83 int thread_stack__event(struct thread *thread, u32 flags, u64 from_ip,
85 void thread_stack__set_trace_nr(struct thread *thread, u64 trace_nr);
86 void thread_stack__sample(struct thread *thread, struct ip_callchain *chain,
88 int thread_stack__flush(struct thread *thread);
89 void thread_stack__free(struct thread *thread);
90 size_t thread_stack__depth(struct thread *thread);
96 int thread_stack__process(struct thread *thread, struct comm *comm,
/Linux-v4.19/arch/mips/include/asm/
Dasmmacro-32.h16 .macro fpu_save_single thread tmp=t0
20 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)
[all …]
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 …]
Dasmmacro.h84 .macro fpu_save_16even thread tmp=t0
88 sdc1 $f0, THREAD_FPR0(\thread)
89 sdc1 $f2, THREAD_FPR2(\thread)
90 sdc1 $f4, THREAD_FPR4(\thread)
91 sdc1 $f6, THREAD_FPR6(\thread)
92 sdc1 $f8, THREAD_FPR8(\thread)
93 sdc1 $f10, THREAD_FPR10(\thread)
94 sdc1 $f12, THREAD_FPR12(\thread)
95 sdc1 $f14, THREAD_FPR14(\thread)
96 sdc1 $f16, THREAD_FPR16(\thread)
[all …]
Ddsp.h45 tsk->thread.dsp.dspr[0] = mfhi1(); \
46 tsk->thread.dsp.dspr[1] = mflo1(); \
47 tsk->thread.dsp.dspr[2] = mfhi2(); \
48 tsk->thread.dsp.dspr[3] = mflo2(); \
49 tsk->thread.dsp.dspr[4] = mfhi3(); \
50 tsk->thread.dsp.dspr[5] = mflo3(); \
51 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \
62 mthi1(tsk->thread.dsp.dspr[0]); \
63 mtlo1(tsk->thread.dsp.dspr[1]); \
64 mthi2(tsk->thread.dsp.dspr[2]); \
[all …]
/Linux-v4.19/arch/riscv/kernel/
Dasm-offsets.c24 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets()
25 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets()
26 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets()
27 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets()
28 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets()
29 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets()
30 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets()
31 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets()
32 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets()
33 OFFSET(TASK_THREAD_S7, task_struct, thread.s[7]); in asm_offsets()
[all …]
/Linux-v4.19/tools/perf/tests/
Ddwarf-unwind.c47 int test_dwarf_unwind__thread(struct thread *thread);
49 int test_dwarf_unwind__krava_3(struct thread *thread);
50 int test_dwarf_unwind__krava_2(struct thread *thread);
51 int test_dwarf_unwind__krava_1(struct thread *thread);
93 noinline int test_dwarf_unwind__thread(struct thread *thread) in test_dwarf_unwind__thread() argument
101 if (test__arch_unwind_sample(&sample, thread)) { in test_dwarf_unwind__thread()
106 err = unwind__get_entries(unwind_entry, &cnt, thread, in test_dwarf_unwind__thread()
127 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local
133 global_unwind_retval = test_dwarf_unwind__thread(thread); in test_dwarf_unwind__compare()
136 global_unwind_retval = test_dwarf_unwind__thread(thread); in test_dwarf_unwind__compare()
[all …]
/Linux-v4.19/drivers/mailbox/
Dmtk-cmdq-mailbox.c65 struct cmdq_thread *thread; member
74 struct cmdq_thread *thread; member
79 static int cmdq_thread_suspend(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_suspend() argument
83 writel(CMDQ_THR_SUSPEND, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_suspend()
86 if (!(readl(thread->base + CMDQ_THR_ENABLE_TASK) & CMDQ_THR_ENABLED)) in cmdq_thread_suspend()
89 if (readl_poll_timeout_atomic(thread->base + CMDQ_THR_CURR_STATUS, in cmdq_thread_suspend()
92 (u32)(thread->base - cmdq->base)); in cmdq_thread_suspend()
99 static void cmdq_thread_resume(struct cmdq_thread *thread) in cmdq_thread_resume() argument
101 writel(CMDQ_THR_RESUME, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_resume()
111 static int cmdq_thread_reset(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_reset() argument
[all …]
/Linux-v4.19/tools/perf/scripts/python/
Dstat-cpi.py9 def get_key(time, event, cpu, thread): argument
10 return "%d-%s-%d-%d" % (time, event, cpu, thread)
12 def store_key(time, cpu, thread): argument
19 if (thread not in threads):
20 threads.append(thread)
22 def store(time, event, cpu, thread, val, ena, run): argument
26 store_key(time, cpu, thread)
27 key = get_key(time, event, cpu, thread)
30 def get(time, event, cpu, thread): argument
31 key = get_key(time, event, cpu, thread)
[all …]
/Linux-v4.19/arch/parisc/kernel/
Dasm-offsets.c66 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main()
67 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main()
68 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main()
69 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main()
70 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main()
71 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main()
72 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main()
73 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); in main()
74 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); in main()
75 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread.regs.gr[ 8])); in main()
[all …]
/Linux-v4.19/Documentation/vm/
Dmmu_notifier.rst41 CPU-thread-0 {try to write to addrA}
42 CPU-thread-1 {try to write to addrB}
43 CPU-thread-2 {}
44 CPU-thread-3 {}
45 DEV-thread-0 {read addrA and populate device TLB}
46 DEV-thread-2 {read addrB and populate device TLB}
48 CPU-thread-0 {COW_step0: {mmu_notifier_invalidate_range_start(addrA)}}
49 CPU-thread-1 {COW_step0: {mmu_notifier_invalidate_range_start(addrB)}}
50 CPU-thread-2 {}
51 CPU-thread-3 {}
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dprocess.c97 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required()
98 MSR_TM_ACTIVE(tsk->thread.regs->msr) && in check_if_tm_restore_required()
100 tsk->thread.ckpt_regs.msr = tsk->thread.regs->msr; in check_if_tm_restore_required()
112 return msr_tm_active(tsk->thread.regs->msr) && in tm_active_with_fp()
113 (tsk->thread.ckpt_regs.msr & MSR_FP); in tm_active_with_fp()
118 return msr_tm_active(tsk->thread.regs->msr) && in tm_active_with_altivec()
119 (tsk->thread.ckpt_regs.msr & MSR_VEC); in tm_active_with_altivec()
182 msr = tsk->thread.regs->msr; in __giveup_fpu()
188 tsk->thread.regs->msr = msr; in __giveup_fpu()
207 if (tsk->thread.regs) { in flush_fp_to_thread()
[all …]
Dptrace.c143 tm_save_sprs(&(tsk->thread)); in flush_tmregs_to_thread()
207 return task->thread.regs->msr | task->thread.fpexc_mode; in get_user_msr()
212 task->thread.regs->msr &= ~MSR_DEBUGCHANGE; in set_user_msr()
213 task->thread.regs->msr |= msr & MSR_DEBUGCHANGE; in set_user_msr()
220 return task->thread.ckpt_regs.msr | task->thread.fpexc_mode; in get_user_ckpt_msr()
225 task->thread.ckpt_regs.msr &= ~MSR_DEBUGCHANGE; in set_user_ckpt_msr()
226 task->thread.ckpt_regs.msr |= msr & MSR_DEBUGCHANGE; in set_user_ckpt_msr()
232 task->thread.ckpt_regs.trap = trap & 0xfff0; in set_user_ckpt_trap()
240 *data = task->thread.dscr; in get_user_dscr()
246 task->thread.dscr = dscr; in set_user_dscr()
[all …]
/Linux-v4.19/arch/s390/kernel/
Dprocess.c77 dst->thread.fpu.regs = dst->thread.fpu.fprs; in arch_dup_task_struct()
91 p->thread.ksp = (unsigned long) frame; in copy_thread_tls()
93 save_access_regs(&p->thread.acrs[0]); in copy_thread_tls()
95 p->thread.mm_segment = get_fs(); in copy_thread_tls()
97 memset(&p->thread.per_user, 0, sizeof(p->thread.per_user)); in copy_thread_tls()
98 memset(&p->thread.per_event, 0, sizeof(p->thread.per_event)); in copy_thread_tls()
100 p->thread.per_flags = 0; in copy_thread_tls()
102 p->thread.user_timer = 0; in copy_thread_tls()
103 p->thread.guest_timer = 0; in copy_thread_tls()
104 p->thread.system_timer = 0; in copy_thread_tls()
[all …]
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()
55 gs_cb = current->thread.gs_bc_cb; in gs_set_bc_cb()
60 current->thread.gs_bc_cb = gs_cb; in gs_set_bc_cb()
71 gs_cb = current->thread.gs_bc_cb; in gs_clear_bc_cb()
[all …]
/Linux-v4.19/arch/um/kernel/
Dprocess.c88 to->thread.prev_sched = from; in __switch_to()
91 switch_threads(&from->thread.switch_buf, &to->thread.switch_buf); in __switch_to()
94 return current->thread.prev_sched; in __switch_to()
99 struct pt_regs *regs = &current->thread.regs; in interrupt_end()
123 if (current->thread.prev_sched != NULL) in new_thread_handler()
124 schedule_tail(current->thread.prev_sched); in new_thread_handler()
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()
134 userspace(&current->thread.regs.regs, current_thread_info()->aux_fp_regs); in new_thread_handler()
[all …]
/Linux-v4.19/arch/sh/kernel/cpu/sh4/
Dfpu.c87 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
137 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
233 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
235 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
251 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
252 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
253 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
263 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
265 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
267 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
[all …]
/Linux-v4.19/arch/mips/kernel/
Dasm-offsets.c113 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines()
114 OFFSET(THREAD_REG17, task_struct, thread.reg17); in output_thread_defines()
115 OFFSET(THREAD_REG18, task_struct, thread.reg18); in output_thread_defines()
116 OFFSET(THREAD_REG19, task_struct, thread.reg19); in output_thread_defines()
117 OFFSET(THREAD_REG20, task_struct, thread.reg20); in output_thread_defines()
118 OFFSET(THREAD_REG21, task_struct, thread.reg21); in output_thread_defines()
119 OFFSET(THREAD_REG22, task_struct, thread.reg22); in output_thread_defines()
120 OFFSET(THREAD_REG23, task_struct, thread.reg23); in output_thread_defines()
121 OFFSET(THREAD_REG29, task_struct, thread.reg29); in output_thread_defines()
122 OFFSET(THREAD_REG30, task_struct, thread.reg30); in output_thread_defines()
[all …]
/Linux-v4.19/drivers/acpi/acpica/
Dexmutex.c21 struct acpi_thread_state *thread);
37 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; in acpi_ex_unlink_mutex() local
39 if (!thread) { in acpi_ex_unlink_mutex()
61 thread->acquired_mutex_list = obj_desc->mutex.next; in acpi_ex_unlink_mutex()
80 struct acpi_thread_state *thread) in acpi_ex_link_mutex() argument
84 list_head = thread->acquired_mutex_list; in acpi_ex_link_mutex()
99 thread->acquired_mutex_list = obj_desc; in acpi_ex_link_mutex()
205 if (!walk_state->thread) { in acpi_ex_acquire_mutex()
216 if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) { in acpi_ex_acquire_mutex()
221 walk_state->thread->current_sync_level)); in acpi_ex_acquire_mutex()
[all …]
/Linux-v4.19/drivers/dma/
Ddmatest.c198 struct dmatest_thread *thread; in is_threaded_test_run() local
200 list_for_each_entry(thread, &dtc->threads, node) { in is_threaded_test_run()
201 if (!thread->done) in is_threaded_test_run()
362 struct dmatest_thread *thread = in dmatest_callback() local
364 if (!thread->done) { in dmatest_callback()
447 struct dmatest_thread *thread = data; in dmatest_func() local
448 struct dmatest_done *done = &thread->test_done; in dmatest_func()
479 info = thread->info; in dmatest_func()
481 chan = thread->chan; in dmatest_func()
483 if (thread->type == DMA_MEMCPY) { in dmatest_func()
[all …]

12345678910>>...34