Home
last modified time | relevance | path

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

12345678910>>...39

/linux/tools/perf/util/
H A Dthread.h32 DECLARE_RC_STRUCT(thread) { in DECLARE_RC_STRUCT() argument
33 /** @maps: mmaps associated with this thread. */ in DECLARE_RC_STRUCT()
36 /** @tid: thread ID number unique to a machine. */ in DECLARE_RC_STRUCT()
38 /** @ppid: parent process of the process this thread belongs to. */ in DECLARE_RC_STRUCT()
41 int guest_cpu; /* For QEMU thread */ in DECLARE_RC_STRUCT()
44 * @exited: Has the thread had an exit event. Such threads are usually in DECLARE_RC_STRUCT()
64 * @e_machine: The ELF EM_* associated with the thread. EM_NONE if not in DECLARE_RC_STRUCT()
77 struct thread *thread__new(pid_t pid, pid_t tid);
78 int thread__init_maps(struct thread *thread, struc
86 __thread__zput(struct thread ** thread) __thread__zput() argument
92 thread__zput(thread) global() argument
100 thread__set_comm(struct thread * thread,const char * comm,u64 timestamp) thread__set_comm() argument
134 thread__maps(struct thread * thread) thread__maps() argument
139 thread__set_maps(struct thread * thread,struct maps * maps) thread__set_maps() argument
144 thread__pid(const struct thread * thread) thread__pid() argument
149 thread__set_pid(struct thread * thread,pid_t pid_) thread__set_pid() argument
154 thread__tid(const struct thread * thread) thread__tid() argument
159 thread__set_tid(struct thread * thread,pid_t tid) thread__set_tid() argument
164 thread__ppid(const struct thread * thread) thread__ppid() argument
169 thread__set_ppid(struct thread * thread,pid_t ppid) thread__set_ppid() argument
174 thread__cpu(const struct thread * thread) thread__cpu() argument
179 thread__set_cpu(struct thread * thread,int cpu) thread__set_cpu() argument
184 thread__guest_cpu(const struct thread * thread) thread__guest_cpu() argument
189 thread__set_guest_cpu(struct thread * thread,int guest_cpu) thread__set_guest_cpu() argument
194 thread__refcnt(struct thread * thread) thread__refcnt() argument
199 thread__set_exited(struct thread * thread,bool exited) thread__set_exited() argument
204 thread__comm_set(const struct thread * thread) thread__comm_set() argument
209 thread__set_comm_set(struct thread * thread,bool set) thread__set_comm_set() argument
214 thread__var_comm_len(const struct thread * thread) thread__var_comm_len() argument
219 thread__set_comm_len(struct thread * thread,int len) thread__set_comm_len() argument
224 thread__namespaces_list(struct thread * thread) thread__namespaces_list() argument
229 thread__namespaces_list_empty(const struct thread * thread) thread__namespaces_list_empty() argument
234 thread__namespaces_lock(struct thread * thread) thread__namespaces_lock() argument
239 thread__comm_lock(struct thread * thread) thread__comm_lock() argument
244 thread__comm_list(struct thread * thread) thread__comm_list() argument
250 thread__db_id(const struct thread * thread) thread__db_id() argument
255 thread__set_db_id(struct thread * thread,u64 db_id) thread__set_db_id() argument
260 thread__priv(struct thread * thread) thread__priv() argument
265 thread__set_priv(struct thread * thread,void * p) thread__set_priv() argument
270 thread__ts(struct thread * thread) thread__ts() argument
275 thread__set_ts(struct thread * thread,struct thread_stack * ts) thread__set_ts() argument
280 thread__nsinfo(struct thread * thread) thread__nsinfo() argument
285 thread__srccode_state(struct thread * thread) thread__srccode_state() argument
290 thread__filter(const struct thread * thread) thread__filter() argument
295 thread__set_filter(struct thread * thread,bool filter) thread__set_filter() argument
300 thread__filter_entry_depth(const struct thread * thread) thread__filter_entry_depth() argument
305 thread__set_filter_entry_depth(struct thread * thread,int depth) thread__set_filter_entry_depth() argument
312 thread__set_e_machine(struct thread * thread,uint16_t e_machine) thread__set_e_machine() argument
318 thread__lbr_stitch_enable(const struct thread * thread) thread__lbr_stitch_enable() argument
323 thread__set_lbr_stitch_enable(struct thread * thread,bool en) thread__set_lbr_stitch_enable() argument
328 thread__lbr_stitch(struct thread * thread) thread__lbr_stitch() argument
333 thread__set_lbr_stitch(struct thread * thread,struct lbr_stitch * lbrs) thread__set_lbr_stitch() argument
338 thread__is_filtered(struct thread * thread) thread__is_filtered() argument
[all...]
H A Dthread.c12 #include "thread.h"
13 #include "thread-stack.h"
25 int thread__init_maps(struct thread *thread, struct machine *machine) in thread__init_maps() argument
27 pid_t pid = thread__pid(thread); in thread__init_maps()
29 if (pid == thread__tid(thread) || pid == -1) { in thread__init_maps()
30 thread__set_maps(thread, maps__new(machine)); in thread__init_maps()
32 struct thread *leader = machine__findnew_thread(machine, pid, pid); in thread__init_maps()
35 thread__set_maps(thread, maps__get(thread__maps(leader))); in thread__init_maps()
40 return thread__maps(thread) in thread__init_maps()
47 struct thread *thread; thread__new() local
93 thread__delete(struct thread * thread) thread__delete() argument
132 thread__get(struct thread * thread) thread__get() argument
142 thread__put(struct thread * thread) thread__put() argument
150 __thread__namespaces(struct thread * thread) __thread__namespaces() argument
158 thread__namespaces(struct thread * thread) thread__namespaces() argument
169 __thread__set_namespaces(struct thread * thread,u64 timestamp,struct perf_record_namespaces * event) __thread__set_namespaces() argument
193 thread__set_namespaces(struct thread * thread,u64 timestamp,struct perf_record_namespaces * event) thread__set_namespaces() argument
204 __thread__comm(struct thread * thread) __thread__comm() argument
213 thread__comm(struct thread * thread) thread__comm() argument
223 thread__exec_comm(struct thread * thread) thread__exec_comm() argument
250 ____thread__set_comm(struct thread * thread,const char * str,u64 timestamp,bool exec) ____thread__set_comm() argument
276 __thread__set_comm(struct thread * thread,const char * str,u64 timestamp,bool exec) __thread__set_comm() argument
287 thread__set_comm_from_proc(struct thread * thread) thread__set_comm_from_proc() argument
304 __thread__comm_str(struct thread * thread) __thread__comm_str() argument
315 thread__comm_str(struct thread * thread) thread__comm_str() argument
326 __thread__comm_len(struct thread * thread,const char * comm) __thread__comm_len() argument
336 thread__comm_len(struct thread * thread) thread__comm_len() argument
352 thread__fprintf(struct thread * thread,FILE * fp) thread__fprintf() argument
358 thread__insert_map(struct thread * thread,struct map * map) thread__insert_map() argument
384 thread__prepare_access(struct thread * thread) thread__prepare_access() argument
398 thread__clone_maps(struct thread * thread,struct thread * parent,bool do_maps_clone) thread__clone_maps() argument
414 thread__fork(struct thread * thread,struct thread * parent,u64 timestamp,bool do_maps_clone) thread__fork() argument
430 thread__find_cpumode_addr_location(struct thread * thread,u64 addr,bool symbols,struct addr_location * al) thread__find_cpumode_addr_location() argument
481 thread__e_machine(struct thread * thread,struct machine * machine) thread__e_machine() argument
529 thread__main_thread(struct machine * machine,struct thread * thread) thread__main_thread() argument
540 thread__memcpy(struct thread * thread,struct machine * machine,void * buf,u64 ip,int len,bool * is64bit) thread__memcpy() argument
573 thread__free_stitch_list(struct thread * thread) thread__free_stitch_list() argument
[all...]
H A Dthread-stack.h3 * thread-stack.h: Synthesize a thread's stack using call / return events
14 struct thread;
39 * @thread: thread in which call/return occurred
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 *threa
[all...]
H A Dthread-stack.c3 * thread-stack.c: Synthesize a thread's stack using call / return events
14 #include "thread.h"
22 #include "thread-stack.h"
40 * struct thread_stack_entry - thread stack entry.
68 * struct thread_stack - thread stack constructed from 'call' and 'return'
113 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()
136 thread_stack__init(struct thread_stack * ts,struct thread * thread,struct call_return_processor * crp,bool callstack,unsigned int br_stack_sz) thread_stack__init() argument
173 thread_stack__new(struct thread * thread,int cpu,struct call_return_processor * crp,bool callstack,unsigned int br_stack_sz) thread_stack__new() argument
208 thread__cpu_stack(struct thread * thread,int cpu) thread__cpu_stack() argument
226 thread__stack(struct thread * thread,int cpu) thread__stack() argument
298 thread_stack__call_return(struct thread * thread,struct thread_stack * ts,size_t idx,u64 timestamp,u64 ref,bool no_return) thread_stack__call_return() argument
338 __thread_stack__flush(struct thread * thread,struct thread_stack * ts) __thread_stack__flush() argument
364 thread_stack__flush(struct thread * thread) thread_stack__flush() argument
406 thread_stack__event(struct thread * thread,int cpu,u32 flags,u64 from_ip,u64 to_ip,u16 insn_len,u64 trace_nr,bool callstack,unsigned int br_stack_sz,bool mispred_all) thread_stack__event() argument
473 thread_stack__set_trace_nr(struct thread * thread,int cpu,u64 trace_nr) thread_stack__set_trace_nr() argument
487 __thread_stack__free(struct thread * thread,struct thread_stack * ts) __thread_stack__free() argument
494 thread_stack__reset(struct thread * thread,struct thread_stack * ts) thread_stack__reset() argument
503 thread_stack__free(struct thread * thread) thread_stack__free() argument
521 thread_stack__sample(struct thread * thread,int cpu,struct ip_callchain * chain,size_t sz,u64 ip,u64 kernel_start) thread_stack__sample() argument
564 thread_stack__sample_late(struct thread * thread,int cpu,struct ip_callchain * chain,size_t sz,u64 sample_ip,u64 kernel_start) thread_stack__sample_late() argument
617 thread_stack__br_sample(struct thread * thread,int cpu,struct branch_stack * dst,unsigned int sz) thread_stack__br_sample() argument
678 thread_stack__br_sample_late(struct thread * thread,int cpu,struct branch_stack * dst,unsigned int sz,u64 ip,u64 kernel_start) thread_stack__br_sample_late() argument
814 thread_stack__pop_cp(struct thread * thread,struct thread_stack * ts,u64 ret_addr,u64 timestamp,u64 ref,struct symbol * sym) thread_stack__pop_cp() argument
886 thread_stack__pop_ks(struct thread * thread,struct thread_stack * ts,struct perf_sample * sample,u64 ref) thread_stack__pop_ks() argument
903 thread_stack__no_call_return(struct thread * thread,struct thread_stack * ts,struct perf_sample * sample,struct addr_location * from_al,struct addr_location * to_al,u64 ref) thread_stack__no_call_return() argument
997 thread_stack__trace_begin(struct thread * thread,struct thread_stack * ts,u64 timestamp,u64 ref) thread_stack__trace_begin() argument
1101 thread_stack__process(struct thread * thread,struct comm * comm,struct perf_sample * sample,struct addr_location * from_al,struct addr_location * to_al,u64 ref,struct call_return_processor * crp) thread_stack__process() argument
1232 thread_stack__depth(struct thread * thread,int cpu) thread_stack__depth() argument
[all...]
/linux/arch/mips/include/asm/
H A 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...]
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.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...]
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(); \
45 tsk->thread.dsp.dspr[4] = mfhi3(); \
46 tsk->thread.dsp.dspr[5] = mflo3(); \
47 tsk->thread.dsp.dspcontrol = rddsp(DSP_MASK); \
58 mthi1(tsk->thread.dsp.dspr[0]); \
59 mtlo1(tsk->thread.dsp.dspr[1]); \
60 mthi2(tsk->thread
[all...]
/linux/Documentation/translations/zh_CN/mm/
H A Dmmu_notifier.rst43 CPU-thread-0 {尝试写到addrA}
44 CPU-thread-1 {尝试写到addrB}
45 CPU-thread-2 {}
46 CPU-thread-3 {}
47 DEV-thread-0 {读取addrA并填充设备TLB}
48 DEV-thread-2 {读取addrB并填充设备TLB}
50 CPU-thread-0 {COW_step0: {mmu_notifier_invalidate_range_start(addrA)}}
51 CPU-thread-1 {COW_step0: {mmu_notifier_invalidate_range_start(addrB)}}
52 CPU-thread-2 {}
53 CPU-thread
[all...]
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-adv.c10 struct pt_regs *regs = task->thread.regs; in user_enable_single_step()
13 task->thread.debug.dbcr0 &= ~DBCR0_BT; in user_enable_single_step()
14 task->thread.debug.dbcr0 |= DBCR0_IDM | DBCR0_IC; in user_enable_single_step()
22 struct pt_regs *regs = task->thread.regs; in user_enable_block_step()
25 task->thread.debug.dbcr0 &= ~DBCR0_IC; in user_enable_block_step()
26 task->thread.debug.dbcr0 = DBCR0_IDM | DBCR0_BT; in user_enable_block_step()
34 struct pt_regs *regs = task->thread.regs; in user_disable_single_step()
43 task->thread.debug.dbcr0 &= ~(DBCR0_IC | DBCR0_BT); in user_disable_single_step()
47 if (!DBCR_ACTIVE_EVENTS(task->thread.debug.dbcr0, in user_disable_single_step()
48 task->thread in user_disable_single_step()
88 struct thread_struct *thread = &task->thread; ptrace_set_debugreg() local
[all...]
H A Dptrace-noadv.c12 struct pt_regs *regs = task->thread.regs; in user_enable_single_step()
21 struct pt_regs *regs = task->thread.regs; in user_enable_block_step()
30 struct pt_regs *regs = task->thread.regs; in user_disable_single_step()
68 dabr_fake = ((child->thread.hw_brk[0].address & (~HW_BRK_TYPE_DABR)) | in ptrace_get_debugreg()
69 (child->thread.hw_brk[0].type & HW_BRK_TYPE_DABR)); in ptrace_get_debugreg()
82 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 in ptrace_set_debugreg()
170 find_empty_ptrace_bp(struct thread_struct * thread) find_empty_ptrace_bp() argument
182 find_empty_hw_brk(struct thread_struct * thread) find_empty_hw_brk() argument
198 struct thread_struct *thread = &child->thread; ppc_set_hwdebug() local
272 struct thread_struct *thread = &child->thread; ppc_del_hwdebug() local
[all...]
H A Dptrace-tm.c18 * in the appropriate thread structures from live. in flush_tmregs_to_thread()
28 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()
39 task->thread.ckpt_regs.msr &= ~MSR_DEBUGCHANGE; in set_user_ckpt_msr()
40 task->thread.ckpt_regs.msr |= msr & MSR_DEBUGCHANGE; in set_user_ckpt_msr()
46 set_trap(&task->thread.ckpt_regs, trap); in set_user_ckpt_trap()
63 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_active()
97 if (!MSR_TM_ACTIVE(target->thread.regs->msr)) in tm_cgpr_get()
104 membuf_write(&to, &target->thread in tm_cgpr_get()
[all...]
/linux/tools/perf/tests/
H A Ddwarf-unwind.c17 #include "thread.h"
47 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);
94 NO_TAIL_CALL_ATTRIBUTE noinline int test_dwarf_unwind__thread(struct thread *threa argument
128 struct thread *thread = *(struct thread **)p1; test_dwarf_unwind__compare() local
144 test_dwarf_unwind__krava_3(struct thread * thread) test_dwarf_unwind__krava_3() argument
163 test_dwarf_unwind__krava_2(struct thread * thread) test_dwarf_unwind__krava_2() argument
172 test_dwarf_unwind__krava_1(struct thread * thread) test_dwarf_unwind__krava_1() argument
186 struct thread *thread; test__dwarf_unwind() local
[all...]
/linux/drivers/md/dm-vdo/
H A Dthread-utils.c6 #include "thread-utils.h"
21 struct thread { struct
37 struct thread *thread = arg; in thread_starter() local
39 thread->thread_task = current; in thread_starter()
41 hlist_add_head(&thread->thread_links, &thread_list); in thread_starter()
44 thread->thread_function(thread->thread_data); in thread_starter()
46 complete(&thread->thread_done); in thread_starter()
51 const char *name, struct thread **new_threa in vdo_create_thread()
22 thread_functionthread global() argument
23 thread_datathread global() argument
24 thread_linksthread global() argument
25 thread_taskthread global() argument
26 thread_donethread global() argument
56 struct thread *thread; vdo_create_thread() local
99 vdo_join_threads(struct thread * thread) vdo_join_threads() argument
[all...]
H A Dthread-registry.c6 #include "thread-registry.h"
14 * We need to be careful when using other facilities that may use thread registry functions in
24 /* Register the current thread and associate it with a data pointer. */
28 struct registered_thread *thread; in vdo_register_thread() local
36 list_for_each_entry(thread, &registry->links, links) { in vdo_register_thread()
37 if (thread->task == current) { in vdo_register_thread()
39 list_del_rcu(&thread->links); in vdo_register_thread()
47 VDO_ASSERT_LOG_ONLY(!found_it, "new thread not already in registry"); in vdo_register_thread()
51 INIT_LIST_HEAD(&thread->links); in vdo_register_thread()
57 struct registered_thread *thread; in vdo_unregister_thread() local
80 struct registered_thread *thread; vdo_lookup_thread() local
[all...]
/linux/drivers/mailbox/
H A Dmtk-cmdq-mailbox.c72 struct cmdq_thread *thread; member
82 struct cmdq_thread *thread; member
116 static int cmdq_thread_suspend(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_suspend() argument
120 writel(CMDQ_THR_SUSPEND, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_suspend()
123 if (!(readl(thread->base + CMDQ_THR_ENABLE_TASK) & CMDQ_THR_ENABLED)) in cmdq_thread_suspend()
126 if (readl_poll_timeout_atomic(thread->base + CMDQ_THR_CURR_STATUS, in cmdq_thread_suspend()
128 dev_err(cmdq->mbox.dev, "suspend GCE thread 0x%x failed\n", in cmdq_thread_suspend()
129 (u32)(thread->base - cmdq->base)); in cmdq_thread_suspend()
136 static void cmdq_thread_resume(struct cmdq_thread *thread) in cmdq_thread_resume() argument
138 writel(CMDQ_THR_RESUME, thread in cmdq_thread_resume()
155 cmdq_thread_reset(struct cmdq * cmdq,struct cmdq_thread * thread) cmdq_thread_reset() argument
171 cmdq_thread_disable(struct cmdq * cmdq,struct cmdq_thread * thread) cmdq_thread_disable() argument
178 cmdq_thread_invalidate_fetched_data(struct cmdq_thread * thread) cmdq_thread_invalidate_fetched_data() argument
187 struct cmdq_thread *thread = task->thread; cmdq_task_insert_into_thread() local
204 cmdq_thread_is_in_wfe(struct cmdq_thread * thread) cmdq_thread_is_in_wfe() argument
222 struct cmdq_thread *thread = task->thread; cmdq_task_handle_error() local
237 cmdq_thread_irq_handler(struct cmdq * cmdq,struct cmdq_thread * thread) cmdq_thread_irq_handler() argument
298 struct cmdq_thread *thread = &cmdq->thread[bit]; cmdq_irq_handler() local
335 struct cmdq_thread *thread; cmdq_suspend() local
378 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_send_data() local
455 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_shutdown() local
496 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_flush() local
561 struct cmdq_thread *thread; cmdq_xlate() local
[all...]
/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
24 #print("event %s cpu %d, thread %d, time %d, val %d, ena %d, run %d" %
25 # (event, cpu, thread, time, val, ena, run))
27 store_key(time, cpu, thread)
28 key = get_key(time, event, cpu, thread)
31 get(time, event, cpu, thread) global() argument
35 stat__cycles_k(cpu, thread, time, val, ena, run) global() argument
38 stat__instructions_k(cpu, thread, time, val, ena, run) global() argument
41 stat__cycles_u(cpu, thread, time, val, ena, run) global() argument
44 stat__instructions_u(cpu, thread, time, val, ena, run) global() argument
47 stat__cycles(cpu, thread, time, val, ena, run) global() argument
50 stat__instructions(cpu, thread, time, val, ena, run) global() argument
[all...]
/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()
57 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); in main()
58 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread in main()
[all...]
/linux/Documentation/mm/
H A Dmmu_notifier.rst39 CPU-thread-0 {try to write to addrA}
40 CPU-thread-1 {try to write to addrB}
41 CPU-thread-2 {}
42 CPU-thread-3 {}
43 DEV-thread-0 {read addrA and populate device TLB}
44 DEV-thread-2 {read addrB and populate device TLB}
46 CPU-thread-0 {COW_step0: {mmu_notifier_invalidate_range_start(addrA)}}
47 CPU-thread-1 {COW_step0: {mmu_notifier_invalidate_range_start(addrB)}}
48 CPU-thread-2 {}
49 CPU-thread
[all...]
/linux/arch/powerpc/kernel/
H A Dprocess.c86 * If we are saving the current thread's registers, and the in check_if_tm_restore_required()
87 * thread is in a transactional state, set the TIF_RESTORE_TM in check_if_tm_restore_required()
91 if (tsk == current && tsk->thread.regs && in check_if_tm_restore_required()
92 MSR_TM_ACTIVE(tsk->thread.regs->msr) && in check_if_tm_restore_required()
94 regs_set_return_msr(&tsk->thread.ckpt_regs, in check_if_tm_restore_required()
95 tsk->thread.regs->msr); in check_if_tm_restore_required()
156 msr = tsk->thread.regs->msr; in __giveup_fpu()
160 regs_set_return_msr(tsk->thread.regs, msr); in __giveup_fpu()
179 if (tsk->thread.regs) { in flush_fp_to_thread()
189 if (tsk->thread in flush_fp_to_thread()
690 set_debug_reg_defaults(struct thread_struct * thread) set_debug_reg_defaults() argument
765 set_debug_reg_defaults(struct thread_struct * thread) set_debug_reg_defaults() argument
1025 tm_recheckpoint(struct thread_struct * thread) tm_recheckpoint() argument
[all...]
/linux/arch/s390/kernel/
H A Dprocess.c59 /* Kernel thread */ in __ret_from_fork()
91 dst->thread.kfpu_flags = 0; in arch_dup_task_struct()
98 * refers to the source thread. in arch_dup_task_struct()
100 dst->thread.ri_cb = NULL; in arch_dup_task_struct()
101 dst->thread.gs_cb = NULL; in arch_dup_task_struct()
102 dst->thread.gs_bc_cb = NULL; in arch_dup_task_struct()
119 p->thread.ksp = (unsigned long) frame; in copy_thread()
120 /* Save access registers to new thread structure. */ in copy_thread()
121 save_access_regs(&p->thread.acrs[0]); in copy_thread()
124 memset(&p->thread in copy_thread()
[all...]
/linux/arch/sh/kernel/cpu/sh4/
H A Dfpu.c84 :"0"((char *)(&tsk->thread.xstate->hardfpu.status)), in save_fpu()
134 :"0" (tsk->thread.xstate), "r" (FPSCR_RCHG) in restore_fpu()
230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
232 denormal_to_double(&tsk->thread.xstate->hardfpu, in ieee_fpe_handler()
248 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()
260 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
262 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
264 tsk->thread in ieee_fpe_handler()
[all...]
/linux/arch/arm64/kernel/
H A Dprocess.c258 current->thread.uw.tp_value = 0; in tls_thread_flush()
291 current->thread.gcspr_el0 = 0; in flush_gcs()
292 current->thread.gcs_base = 0; in flush_gcs()
293 current->thread.gcs_size = 0; in flush_gcs()
294 current->thread.gcs_el0_mode = 0; in flush_gcs()
307 p->thread.gcs_base = 0; in copy_thread_gcs()
308 p->thread.gcs_size = 0; in copy_thread_gcs()
310 p->thread.gcs_el0_mode = current->thread.gcs_el0_mode; in copy_thread_gcs()
311 p->thread in copy_thread_gcs()
[all...]
/linux/arch/s390/include/asm/
H A Dfpu.h160 struct thread_struct *thread = &current->thread; in load_user_fpu_regs() local
162 if (!thread->ufpu_flags) in load_user_fpu_regs()
164 load_fpu_state(&thread->ufpu, thread->ufpu_flags); in load_user_fpu_regs()
165 thread->ufpu_flags = 0; in load_user_fpu_regs()
168 static __always_inline void __save_user_fpu_regs(struct thread_struct *thread, int flags) in __save_user_fpu_regs() argument
170 save_fpu_state(&thread->ufpu, flags); in __save_user_fpu_regs()
171 __atomic_or(flags, &thread->ufpu_flags); in __save_user_fpu_regs()
176 struct thread_struct *thread in save_user_fpu_regs() local
189 struct thread_struct *thread = &current->thread; _kernel_fpu_begin() local
247 save_kernel_fpu_regs(struct thread_struct * thread) save_kernel_fpu_regs() argument
254 restore_kernel_fpu_regs(struct thread_struct * thread) restore_kernel_fpu_regs() argument
[all...]
/linux/tools/lib/perf/
H A Devsel.c70 int idx, thread; in perf_evsel__alloc_fd() local
73 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__alloc_fd()
74 int *fd = FD(evsel, idx, thread); in perf_evsel__alloc_fd()
100 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) in get_group_fd() argument
117 fd = FD(leader, cpu_map_idx, thread); in get_group_fd()
130 int idx, thread, err = 0; in perf_evsel__open() local
161 for (thread = 0; thread < thread in perf_evsel__open()
195 int thread; perf_evsel__close_fd_cpu() local
238 int idx, thread; perf_evsel__munmap() local
260 int ret, idx, thread; perf_evsel__mmap() local
295 perf_evsel__mmap_base(struct perf_evsel * evsel,int cpu_map_idx,int thread) perf_evsel__mmap_base() argument
335 perf_evsel__read_group(struct perf_evsel * evsel,int cpu_map_idx,int thread,struct perf_counts_values * count) perf_evsel__read_group() argument
400 perf_evsel__read(struct perf_evsel * evsel,int cpu_map_idx,int thread,struct perf_counts_values * count) perf_evsel__read() argument
429 perf_evsel__ioctl(struct perf_evsel * evsel,int ioc,void * arg,int cpu_map_idx,int thread) perf_evsel__ioctl() argument
443 int thread; perf_evsel__run_ioctl() local
460 perf_evsel__enable_thread(struct perf_evsel * evsel,int thread) perf_evsel__enable_thread() argument
[all...]

12345678910>>...39