| /linux/tools/perf/util/ |
| H A D | thread.h | 32 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_flags: The ELF EF_* associated with the thread. Valid if e_machine != EM_NONE. in DECLARE_RC_STRUCT() 68 * @e_machine: The ELF EM_* associated with the thread. EM_NONE if not in DECLARE_RC_STRUCT() 73 * @e_is_big_endian: True if the ELF architecture of the thread is big endian. in DECLARE_RC_STRUCT() 86 struct thread *thread__ne 90 __thread__zput(struct thread ** thread) __thread__zput() argument 96 thread__zput(thread) global() argument 104 thread__set_comm(struct thread * thread,const char * comm,u64 timestamp) thread__set_comm() argument 138 thread__maps(struct thread * thread) thread__maps() argument 143 thread__set_maps(struct thread * thread,struct maps * maps) thread__set_maps() argument 148 thread__pid(const struct thread * thread) thread__pid() argument 153 thread__set_pid(struct thread * thread,pid_t pid_) thread__set_pid() argument 158 thread__tid(const struct thread * thread) thread__tid() argument 163 thread__set_tid(struct thread * thread,pid_t tid) thread__set_tid() argument 168 thread__ppid(const struct thread * thread) thread__ppid() argument 173 thread__set_ppid(struct thread * thread,pid_t ppid) thread__set_ppid() argument 178 thread__cpu(const struct thread * thread) thread__cpu() argument 183 thread__set_cpu(struct thread * thread,int cpu) thread__set_cpu() argument 188 thread__guest_cpu(const struct thread * thread) thread__guest_cpu() argument 193 thread__set_guest_cpu(struct thread * thread,int guest_cpu) thread__set_guest_cpu() argument 198 thread__refcnt(struct thread * thread) thread__refcnt() argument 203 thread__set_exited(struct thread * thread,bool exited) thread__set_exited() argument 208 thread__comm_set(const struct thread * thread) thread__comm_set() argument 213 thread__set_comm_set(struct thread * thread,bool set) thread__set_comm_set() argument 218 thread__var_comm_len(const struct thread * thread) thread__var_comm_len() argument 223 thread__set_comm_len(struct thread * thread,int len) thread__set_comm_len() argument 228 thread__namespaces_list(struct thread * thread) thread__namespaces_list() argument 233 thread__namespaces_list_empty(const struct thread * thread) thread__namespaces_list_empty() argument 238 thread__namespaces_lock(struct thread * thread) thread__namespaces_lock() argument 243 thread__comm_lock(struct thread * thread) thread__comm_lock() argument 248 thread__comm_list(struct thread * thread) thread__comm_list() argument 254 thread__db_id(const struct thread * thread) thread__db_id() argument 259 thread__set_db_id(struct thread * thread,u64 db_id) thread__set_db_id() argument 264 thread__priv(struct thread * thread) thread__priv() argument 269 thread__set_priv(struct thread * thread,void * p) thread__set_priv() argument 274 thread__ts(struct thread * thread) thread__ts() argument 279 thread__set_ts(struct thread * thread,struct thread_stack * ts) thread__set_ts() argument 284 thread__nsinfo(struct thread * thread) thread__nsinfo() argument 289 thread__srccode_state(struct thread * thread) thread__srccode_state() argument 294 thread__filter(const struct thread * thread) thread__filter() argument 299 thread__set_filter(struct thread * thread,bool filter) thread__set_filter() argument 304 thread__filter_entry_depth(const struct thread * thread) thread__filter_entry_depth() argument 309 thread__set_filter_entry_depth(struct thread * thread,int depth) thread__set_filter_entry_depth() argument 316 thread__set_e_machine(struct thread * thread,uint16_t e_machine) thread__set_e_machine() argument 321 thread__e_flags(const struct thread * thread) thread__e_flags() argument 326 thread__set_e_flags(struct thread * thread,uint32_t e_flags) thread__set_e_flags() argument 332 thread__lbr_stitch_enable(const struct thread * thread) thread__lbr_stitch_enable() argument 337 thread__set_lbr_stitch_enable(struct thread * thread,bool en) thread__set_lbr_stitch_enable() argument 342 thread__lbr_stitch(struct thread * thread) thread__lbr_stitch() argument 347 thread__set_lbr_stitch(struct thread * thread,struct lbr_stitch * lbrs) thread__set_lbr_stitch() argument 352 thread__is_filtered(struct thread * thread) thread__is_filtered() argument [all...] |
| H A D | thread.c | 12 #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 485 thread__e_machine(struct thread * thread,struct machine * machine,uint32_t * e_flags) thread__e_machine() argument 554 thread__main_thread(struct machine * machine,struct thread * thread) thread__main_thread() argument 565 thread__memcpy(struct thread * thread,struct machine * machine,void * buf,u64 ip,int len,bool * is64bit) thread__memcpy() argument 598 thread__free_stitch_list(struct thread * thread) thread__free_stitch_list() argument [all...] |
| H A D | thread-stack.h | 3 * 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 *thread, int cpu, u64 trace_nr); 86 void thread_stack__sample(struct thread *thread, int cpu, struct ip_callchain *chain, 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, [all …]
|
| H A D | db-export.c | 13 #include "thread.h" 18 #include "thread-stack.h" 61 int db_export__thread(struct db_export *dbe, struct thread *thread, 62 struct machine *machine, struct thread *main_thread) in db_export__thread() argument 66 if (thread__db_id(thread)) in db_export__thread() 69 thread__set_db_id(thread, ++dbe->thread_last_db_id); in db_export__thread() 75 return dbe->export_thread(dbe, thread, main_thread_db_id, in db_export__thread() 82 struct thread *thread) in __db_export__comm() 83 __db_export__comm(struct db_export * dbe,struct comm * comm,struct thread * thread) __db_export__comm() argument 94 db_export__comm(struct db_export * dbe,struct comm * comm,struct thread * thread) db_export__comm() argument 134 db_export__comm_thread(struct db_export * dbe,struct comm * comm,struct thread * thread) db_export__comm_thread() argument 211 call_path_from_sample(struct db_export * dbe,struct machine * machine,struct thread * thread,struct perf_sample * sample,struct evsel * evsel) call_path_from_sample() argument 294 db_export__threads(struct db_export * dbe,struct thread * thread,struct thread * main_thread,struct machine * machine,struct comm ** comm_ptr) db_export__threads() argument 352 struct thread *thread = al->thread; db_export__sample() local 536 struct thread *thread = machine__find_thread(machine, pid, tid); db_export__pid_tid() local [all...] |
| H A D | thread-stack.c | 3 * 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 static int thread_stack__init(struct thread_stack *ts, struct thread *thread, in thread_stack__init() argument 158 if (thread__maps(thread) && maps__machine(thread__maps(thread))) { in thread_stack__init() 159 struct machine *machine = maps__machine(thread__maps(thread)); in thread_stack__init() [all …]
|
| H A D | machine.c | 29 #include "thread.h" 69 static void thread__set_guest_comm(struct thread *thread, pid_t pid) in thread__set_guest_comm() 74 thread__set_comm(thread, comm, 0); 111 struct thread *thread = machine__findnew_thread(machine, -1, in machine__init() 114 if (thread == NULL) in machine__init() 117 thread__set_guest_comm(thread, pid); in machine__init() 118 thread__put(thread); in machine__init() 382 * To support that, copy the host thread' 67 thread__set_guest_comm(struct thread * thread,pid_t pid) thread__set_guest_comm() argument 110 struct thread *thread = machine__findnew_thread(machine, -1, machine__init() local 391 struct thread *thread; findnew_guest_code() local 583 struct thread *thread = machine__findnew_thread(machine, 0, 0); machine__idle_thread() local 593 machine__thread_exec_comm(struct machine * machine,struct thread * thread) machine__thread_exec_comm() argument 604 struct thread *thread = machine__findnew_thread(machine, machine__process_comm_event() local 631 struct thread *thread = machine__findnew_thread(machine, machine__process_namespaces_event() local 939 machine_fprintf_cb(struct thread * thread,void * data) machine_fprintf_cb() argument 1732 struct thread *thread; machine__process_mmap2_event() local 1800 struct thread *thread; machine__process_mmap_event() local 1863 struct thread *thread = machine__find_thread(machine, machine__process_fork_event() local 1929 struct thread *thread = machine__find_thread(machine, machine__process_exit_event() local 2000 ip__resolve_ams(struct thread * thread,struct addr_map_symbol * ams,u64 ip) ip__resolve_ams() argument 2027 ip__resolve_data(struct thread * thread,u8 m,struct addr_map_symbol * ams,u64 addr,u64 phys_addr,u64 daddr_page_size) ip__resolve_data() argument 2146 add_callchain_ip(struct thread * thread,struct callchain_cursor * cursor,struct symbol ** parent,struct addr_location * root_al,u8 * cpumode,u64 ip,bool branch,struct branch_flags * flags,struct iterations * iter,u64 branch_from,bool symbols) add_callchain_ip() argument 2327 lbr_callchain_add_kernel_ip(struct thread * thread,struct callchain_cursor * cursor,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,u64 branch_from,bool callee,int end,bool symbols) lbr_callchain_add_kernel_ip() argument 2364 save_lbr_cursor_node(struct thread * thread,struct callchain_cursor * cursor,int idx) save_lbr_cursor_node() argument 2393 lbr_callchain_add_lbr_ip(struct thread * thread,struct callchain_cursor * cursor,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,u64 * branch_from,bool callee,bool symbols) lbr_callchain_add_lbr_ip() argument 2507 lbr_callchain_add_stitched_lbr_ip(struct thread * thread,struct callchain_cursor * cursor) lbr_callchain_add_stitched_lbr_ip() argument 2532 get_stitch_node(struct thread * thread) get_stitch_node() argument 2548 has_stitched_lbr(struct thread * thread,struct perf_sample * cur,struct perf_sample * prev,unsigned int max_lbr,bool callee) has_stitched_lbr() argument 2624 alloc_lbr_stitch(struct thread * thread,unsigned int max_lbr) alloc_lbr_stitch() argument 2661 resolve_lbr_callchain_sample(struct thread * thread,struct callchain_cursor * cursor,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,int max_stack,unsigned int max_lbr,bool symbols) resolve_lbr_callchain_sample() argument 2749 find_prev_cpumode(struct ip_callchain * chain,struct thread * thread,struct callchain_cursor * cursor,struct symbol ** parent,struct addr_location * root_al,u8 * cpumode,int ent,bool symbols) find_prev_cpumode() argument 2771 get_leaf_frame_caller(struct perf_sample * sample,struct thread * thread,int usr_idx) get_leaf_frame_caller() argument 2779 thread__resolve_callchain_sample(struct thread * thread,struct callchain_cursor * cursor,struct evsel * evsel,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,int max_stack,bool symbols) thread__resolve_callchain_sample() argument 2987 thread__resolve_callchain_unwind(struct thread * thread,struct callchain_cursor * cursor,struct evsel * evsel,struct perf_sample * sample,int max_stack,bool symbols) thread__resolve_callchain_unwind() argument 3010 __thread__resolve_callchain(struct thread * thread,struct callchain_cursor * cursor,struct evsel * evsel,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,int max_stack,bool symbols) __thread__resolve_callchain() argument 3052 machine__for_each_thread(struct machine * machine,int (* fn)(struct thread * thread,void * p),void * priv) machine__for_each_thread() argument 3059 machines__for_each_thread(struct machines * machines,int (* fn)(struct thread * thread,void * p),void * priv) machines__for_each_thread() argument 3080 thread_list_cb(struct thread * thread,void * data) thread_list_cb() argument 3120 struct thread *thread; machine__set_current_tid() local [all...] |
| /linux/arch/mips/include/asm/ |
| H A D | asmmacro-32.h | 16 .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 D | asmmacro.h | 84 .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 D | asmmacro-64.h | 17 .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 …]
|
| /linux/arch/powerpc/kernel/ptrace/ |
| H A D | ptrace-adv.c | 10 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.debug.dbcr1)) { in user_disable_single_step() [all …]
|
| H A D | ptrace-noadv.c | 12 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->ptrace_bps[0] = bp; in ptrace_set_debugreg() 143 thread->hw_brk[0] = hw_brk; in ptrace_set_debugreg() [all …]
|
| /linux/Documentation/translations/zh_CN/mm/ |
| H A D | mmu_notifier.rst | 43 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-3 {} [all …]
|
| /linux/tools/perf/scripts/python/ |
| H A D | stat-cpi.py | 10 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) [all …]
|
| /linux/drivers/mailbox/ |
| H A D | mtk-cmdq-mailbox.c | 80 struct cmdq_thread *thread; member 90 struct cmdq_thread *thread; member 150 /* set all thread mapping to host vm currently */ in cmdq_vm_init() 160 /* config every 10 threads, e.g., thread id=0~9, 10~19, ..., into one register */ in cmdq_vm_init() 186 static int cmdq_thread_suspend(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_suspend() argument 190 writel(CMDQ_THR_SUSPEND, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_suspend() 193 if (!(readl(thread->base + CMDQ_THR_ENABLE_TASK) & CMDQ_THR_ENABLED)) in cmdq_thread_suspend() 196 if (readl_poll_timeout_atomic(thread->base + CMDQ_THR_CURR_STATUS, in cmdq_thread_suspend() 198 dev_err(cmdq->mbox.dev, "suspend GCE thread 0x%x failed\n", in cmdq_thread_suspend() 199 (u32)(thread->base - cmdq->base)); in cmdq_thread_suspend() [all …]
|
| /linux/Documentation/mm/ |
| H A D | mmu_notifier.rst | 39 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-3 {} [all …]
|
| /linux/tools/perf/tests/ |
| H A D | dwarf-unwind.c | 17 #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 *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 /* Any possible value should be 'thread' */ in test_dwarf_unwind__compare() 128 struct thread *thread = *(struct thread **)p1; in test_dwarf_unwind__compare() local [all …]
|
| /linux/arch/parisc/kernel/ |
| H A D | asm-offsets.c | 50 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main() 51 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main() 52 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main() 53 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main() 54 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main() 55 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main() 56 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main() 57 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); in main() 58 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); in main() 59 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread.regs.gr[ 8])); in main() [all …]
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_info_test.c | 226 /* Inform the grand-parent what the tid of this thread is. */ in pidfd_info_pause_thread() 240 pthread_t thread; in TEST_F() local 257 /* The thread will outlive the thread-group leader. */ in TEST_F() 258 if (pthread_create(&thread, NULL, pidfd_info_pause_thread, &ipc_sockets[1])) in TEST_F() 261 /* Make the thread-group leader exit prematurely. */ in TEST_F() 266 * Opening a PIDFD_THREAD aka thread-specific pidfd based on a in TEST_F() 267 * thread-group leader must succeed. in TEST_F() 276 * We can't poll and wait for the old thread-group in TEST_F() 277 * leader to exit using a thread in TEST_F() 418 pthread_t thread; TEST_F() local 567 pthread_t thread; TEST_F() local [all...] |
| /linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a65-e1/ |
| H A D | ifu.json | 57 "PublicDescription": "Thread flushed due to TLB miss", 60 "BriefDescription": "Thread flushed due to TLB miss" 63 "PublicDescription": "Thread flushed due to reasons other than TLB miss", 66 "BriefDescription": "Thread flushed due to reasons other than TLB miss" 69 "PublicDescription": "This thread and the other thread both ready for scheduling in if0", 72 "BriefDescription": "This thread and the other thread both ready for scheduling in if0" 75 …"PublicDescription": "This thread was arbitrated when the other thread was also ready for scheduli… 78 …"BriefDescription": "This thread was arbitrated when the other thread was also ready for schedulin… 81 …"PublicDescription": "This thread was arbitrated when the other thread was also active, but not ne… 84 …"BriefDescription": "This thread was arbitrated when the other thread was also active, but not nec… [all …]
|
| /linux/arch/loongarch/include/asm/ |
| H A D | asmmacro.h | 20 .macro cpu_save_nonscratch thread 21 LONG_SPTR s0, \thread, (THREAD_REG23 - TASK_STRUCT_OFFSET) 22 LONG_SPTR s1, \thread, (THREAD_REG24 - TASK_STRUCT_OFFSET) 23 LONG_SPTR s2, \thread, (THREAD_REG25 - TASK_STRUCT_OFFSET) 24 LONG_SPTR s3, \thread, (THREAD_REG26 - TASK_STRUCT_OFFSET) 25 LONG_SPTR s4, \thread, (THREAD_REG27 - TASK_STRUCT_OFFSET) 26 LONG_SPTR s5, \thread, (THREAD_REG28 - TASK_STRUCT_OFFSET) 27 LONG_SPTR s6, \thread, (THREAD_REG29 - TASK_STRUCT_OFFSET) 28 LONG_SPTR s7, \thread, (THREAD_REG30 - TASK_STRUCT_OFFSET) 29 LONG_SPTR s8, \thread, (THREAD_REG31 - TASK_STRUCT_OFFSET) [all …]
|
| /linux/drivers/md/dm-vdo/ |
| H A D | thread-registry.c | 6 #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, ®istry->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 [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | asm-offsets.c | 124 OFFSET(THREAD_REG16, task_struct, thread.reg16); in output_thread_defines() 125 OFFSET(THREAD_REG17, task_struct, thread.reg17); in output_thread_defines() 126 OFFSET(THREAD_REG18, task_struct, thread.reg18); in output_thread_defines() 127 OFFSET(THREAD_REG19, task_struct, thread.reg19); in output_thread_defines() 128 OFFSET(THREAD_REG20, task_struct, thread.reg20); in output_thread_defines() 129 OFFSET(THREAD_REG21, task_struct, thread.reg21); in output_thread_defines() 130 OFFSET(THREAD_REG22, task_struct, thread.reg22); in output_thread_defines() 131 OFFSET(THREAD_REG23, task_struct, thread.reg23); in output_thread_defines() 132 OFFSET(THREAD_REG29, task_struct, thread.reg29); in output_thread_defines() 133 OFFSET(THREAD_REG30, task_struct, thread.reg30); in output_thread_defines() [all …]
|
| /linux/arch/um/kernel/ |
| H A D | process.c | 75 to->thread.prev_sched = from; in __switch_to() 78 switch_threads(&from->thread.switch_buf, &to->thread.switch_buf); in __switch_to() 81 return current->thread.prev_sched; in __switch_to() 86 struct pt_regs *regs = ¤t->thread.regs; in interrupt_end() 115 if (current->thread.prev_sched != NULL) in new_thread_handler() 116 schedule_tail(current->thread.prev_sched); in new_thread_handler() 117 current->thread.prev_sched = NULL; in new_thread_handler() 119 fn = current->thread.request.thread.proc; in new_thread_handler() 120 arg = current->thread.request.thread.arg; in new_thread_handler() 123 * callback returns only if the kernel thread execs a process in new_thread_handler() [all …]
|
| /linux/tools/lib/perf/ |
| H A D | evsel.c | 70 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() 131 int thread, err = 0; in perf_evsel__open() 162 for (thread = 0; thread < thread in perf_evsel__open() 130 int idx, thread, err = 0; perf_evsel__open() local 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...] |
| /linux/arch/s390/kernel/ |
| H A D | ptrace.c | 43 struct thread_struct *thread = &task->thread; in update_cr_regs() local 64 if (task->thread.per_flags & PER_FLAG_NO_TE) in update_cr_regs() 68 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND) { in update_cr_regs() 69 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND_TEND) in update_cr_regs() 78 if (task->thread.gs_cb) in update_cr_regs() 89 new.control.val = thread->per_user.control; in update_cr_regs() 90 new.start.val = thread->per_user.start; in update_cr_regs() 91 new.end.val = thread->per_user.end; in update_cr_regs() 144 memset(&task->thread.per_user, 0, sizeof(task->thread.per_user)); in ptrace_disable() 145 memset(&task->thread.per_event, 0, sizeof(task->thread.per_event)); in ptrace_disable() [all …]
|