/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | thread.h | 35 struct thread *thread; member 38 DECLARE_RC_STRUCT(thread) { in DECLARE_RC_STRUCT() 44 int guest_cpu; /* For QEMU thread */ in DECLARE_RC_STRUCT() 70 struct thread *thread__new(pid_t pid, pid_t tid); 71 int thread__init_maps(struct thread *thread, struct machine *machine); 72 void thread__delete(struct thread *thread); 76 struct thread *thread__ge 79 __thread__zput(struct thread **thread) __thread__zput() argument 93 thread__set_comm(struct thread *thread, const char *comm, u64 timestamp) thread__set_comm() argument 127 thread__maps(struct thread *thread) thread__maps() argument 132 thread__set_maps(struct thread *thread, struct maps *maps) thread__set_maps() argument 137 thread__pid(const struct thread *thread) thread__pid() argument 142 thread__set_pid(struct thread *thread, pid_t pid_) thread__set_pid() argument 147 thread__tid(const struct thread *thread) thread__tid() argument 152 thread__set_tid(struct thread *thread, pid_t tid) thread__set_tid() argument 157 thread__ppid(const struct thread *thread) thread__ppid() argument 162 thread__set_ppid(struct thread *thread, pid_t ppid) thread__set_ppid() argument 167 thread__cpu(const struct thread *thread) thread__cpu() argument 172 thread__set_cpu(struct thread *thread, int cpu) thread__set_cpu() argument 177 thread__guest_cpu(const struct thread *thread) thread__guest_cpu() argument 182 thread__set_guest_cpu(struct thread *thread, int guest_cpu) thread__set_guest_cpu() argument 187 thread__refcnt(struct thread *thread) thread__refcnt() argument 192 thread__comm_set(const struct thread *thread) thread__comm_set() argument 197 thread__set_comm_set(struct thread *thread, bool set) thread__set_comm_set() argument 202 thread__var_comm_len(const struct thread *thread) thread__var_comm_len() argument 207 thread__set_comm_len(struct thread *thread, int len) thread__set_comm_len() argument 212 thread__namespaces_list(struct thread *thread) thread__namespaces_list() argument 217 thread__namespaces_list_empty(const struct thread *thread) thread__namespaces_list_empty() argument 222 thread__namespaces_lock(struct thread *thread) thread__namespaces_lock() argument 227 thread__comm_list(struct thread *thread) thread__comm_list() argument 232 thread__comm_lock(struct thread *thread) thread__comm_lock() argument 237 thread__db_id(const struct thread *thread) thread__db_id() argument 242 thread__set_db_id(struct thread *thread, u64 db_id) thread__set_db_id() argument 247 thread__priv(struct thread *thread) thread__priv() argument 252 thread__set_priv(struct thread *thread, void *p) thread__set_priv() argument 257 thread__ts(struct thread *thread) thread__ts() argument 262 thread__set_ts(struct thread *thread, struct thread_stack *ts) thread__set_ts() argument 267 thread__nsinfo(struct thread *thread) thread__nsinfo() argument 272 thread__srccode_state(struct thread *thread) thread__srccode_state() argument 277 thread__filter(const struct thread *thread) thread__filter() argument 282 thread__set_filter(struct thread *thread, bool filter) thread__set_filter() argument 287 thread__filter_entry_depth(const struct thread *thread) thread__filter_entry_depth() argument 292 thread__set_filter_entry_depth(struct thread *thread, int depth) thread__set_filter_entry_depth() argument 297 thread__lbr_stitch_enable(const struct thread *thread) thread__lbr_stitch_enable() argument 302 thread__set_lbr_stitch_enable(struct thread *thread, bool en) thread__set_lbr_stitch_enable() argument 307 thread__lbr_stitch(struct thread *thread) thread__lbr_stitch() argument 312 thread__set_lbr_stitch(struct thread *thread, struct lbr_stitch *lbrs) thread__set_lbr_stitch() argument 317 thread__is_filtered(struct thread *thread) thread__is_filtered() argument [all...] |
H A D | thread.c | 10 #include "thread.h" 11 #include "thread-stack.h" 22 int thread__init_maps(struct thread *thread, struct machine *machine) in thread__init_maps() argument 24 pid_t pid = thread__pid(thread); in thread__init_maps() 26 if (pid == thread__tid(thread) || pid == -1) { in thread__init_maps() 27 thread__set_maps(thread, maps__new(machine)); in thread__init_maps() 29 struct thread *leader = __machine__findnew_thread(machine, pid, pid); in thread__init_maps() 32 thread__set_maps(thread, maps__get(thread__maps(leader))); in thread__init_maps() 37 return thread__maps(thread) in thread__init_maps() 45 struct thread *thread; thread__new() local 92 thread__delete(struct thread *thread) thread__delete() argument 131 thread__get(struct thread *thread) thread__get() argument 141 thread__put(struct thread *thread) thread__put() argument 149 __thread__namespaces(struct thread *thread) __thread__namespaces() argument 157 thread__namespaces(struct thread *thread) thread__namespaces() argument 168 __thread__set_namespaces(struct thread *thread, u64 timestamp, struct perf_record_namespaces *event) __thread__set_namespaces() argument 192 thread__set_namespaces(struct thread *thread, u64 timestamp, struct perf_record_namespaces *event) thread__set_namespaces() argument 203 thread__comm(struct thread *thread) thread__comm() argument 211 thread__exec_comm(struct thread *thread) thread__exec_comm() argument 234 ____thread__set_comm(struct thread *thread, const char *str, u64 timestamp, bool exec) ____thread__set_comm() argument 259 __thread__set_comm(struct thread *thread, const char *str, u64 timestamp, bool exec) __thread__set_comm() argument 270 thread__set_comm_from_proc(struct thread *thread) thread__set_comm_from_proc() argument 287 __thread__comm_str(struct thread *thread) __thread__comm_str() argument 297 thread__comm_str(struct thread *thread) thread__comm_str() argument 308 __thread__comm_len(struct thread *thread, const char *comm) __thread__comm_len() argument 318 thread__comm_len(struct thread *thread) thread__comm_len() argument 334 thread__fprintf(struct thread *thread, FILE *fp) thread__fprintf() argument 340 thread__insert_map(struct thread *thread, struct map *map) thread__insert_map() argument 352 __thread__prepare_access(struct thread *thread) __thread__prepare_access() argument 372 thread__prepare_access(struct thread *thread) thread__prepare_access() argument 382 thread__clone_maps(struct thread *thread, struct thread *parent, bool do_maps_clone) thread__clone_maps() argument 398 thread__fork(struct thread *thread, struct thread *parent, u64 timestamp, bool do_maps_clone) thread__fork() argument 414 thread__find_cpumode_addr_location(struct thread *thread, u64 addr, struct addr_location *al) thread__find_cpumode_addr_location() argument 432 thread__main_thread(struct machine *machine, struct thread *thread) thread__main_thread() argument 443 thread__memcpy(struct thread *thread, struct machine *machine, void *buf, u64 ip, int len, bool *is64bit) thread__memcpy() argument 476 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 *threa [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | thread.c | 10 #include "thread.h" 11 #include "thread-stack.h" 22 int thread__init_maps(struct thread *thread, struct machine *machine) in thread__init_maps() argument 24 pid_t pid = thread->pid_; in thread__init_maps() 26 if (pid == thread->tid || pid == -1) { in thread__init_maps() 27 thread->maps = maps__new(machine); in thread__init_maps() 29 struct thread *leader = __machine__findnew_thread(machine, pid, pid); in thread__init_maps() 31 thread->maps = maps__get(leader->maps); in thread__init_maps() 36 return thread in thread__init_maps() 43 struct thread *thread = zalloc(sizeof(*thread)); thread__new() local 81 thread__delete(struct thread *thread) thread__delete() argument 118 thread__get(struct thread *thread) thread__get() argument 125 thread__put(struct thread *thread) thread__put() argument 154 __thread__namespaces(const struct thread *thread) __thread__namespaces() argument 162 thread__namespaces(struct thread *thread) thread__namespaces() argument 173 __thread__set_namespaces(struct thread *thread, u64 timestamp, struct perf_record_namespaces *event) __thread__set_namespaces() argument 197 thread__set_namespaces(struct thread *thread, u64 timestamp, struct perf_record_namespaces *event) thread__set_namespaces() argument 208 thread__comm(const struct thread *thread) thread__comm() argument 216 thread__exec_comm(const struct thread *thread) thread__exec_comm() argument 239 ____thread__set_comm(struct thread *thread, const char *str, u64 timestamp, bool exec) ____thread__set_comm() argument 264 __thread__set_comm(struct thread *thread, const char *str, u64 timestamp, bool exec) __thread__set_comm() argument 275 thread__set_comm_from_proc(struct thread *thread) thread__set_comm_from_proc() argument 292 __thread__comm_str(const struct thread *thread) __thread__comm_str() argument 302 thread__comm_str(struct thread *thread) thread__comm_str() argument 314 thread__comm_len(struct thread *thread) thread__comm_len() argument 326 thread__fprintf(struct thread *thread, FILE *fp) thread__fprintf() argument 332 thread__insert_map(struct thread *thread, struct map *map) thread__insert_map() argument 346 __thread__prepare_access(struct thread *thread) __thread__prepare_access() argument 366 thread__prepare_access(struct thread *thread) thread__prepare_access() argument 376 thread__clone_maps(struct thread *thread, struct thread *parent, bool do_maps_clone) thread__clone_maps() argument 391 thread__fork(struct thread *thread, struct thread *parent, u64 timestamp, bool do_maps_clone) thread__fork() argument 407 thread__find_cpumode_addr_location(struct thread *thread, u64 addr, struct addr_location *al) thread__find_cpumode_addr_location() argument 425 thread__main_thread(struct machine *machine, struct thread *thread) thread__main_thread() argument 436 thread__memcpy(struct thread *thread, struct machine *machine, void *buf, u64 ip, int len, bool *is64bit) thread__memcpy() argument 458 thread__free_stitch_list(struct thread *thread) thread__free_stitch_list() argument [all...] |
H A D | thread.h | 32 struct thread { struct 45 bool dead; /* if set thread has exited */ 68 struct thread *thread__new(pid_t pid, pid_t tid); 69 int thread__init_maps(struct thread *thread, struct machine *machine); 70 void thread__delete(struct thread *thread); 72 struct thread *thread__get(struct thread *thread); 75 __thread__zput(struct thread **thread) __thread__zput() argument 83 thread__exited(struct thread *thread) thread__exited() argument 94 thread__set_comm(struct thread *thread, const char *comm, u64 timestamp) thread__set_comm() argument 128 thread__priv(struct thread *thread) thread__priv() argument 133 thread__set_priv(struct thread *thread, void *p) thread__set_priv() argument 138 thread__is_filtered(struct thread *thread) thread__is_filtered() argument [all...] |
H A D | thread-stack.h | 3 * thread-stack.h: Synthesize a thread's stack using call / return events 14 struct thread; 40 * @thread: thread in which call/return occurred 55 struct thread *thread; member 83 int thread_stack__event(struct thread *thread, int cpu, u32 flags, u64 from_ip, 86 void thread_stack__set_trace_nr(struct thread *threa [all...] |
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
H A D | asm-offsets.c | 16 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets() 17 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets() 18 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets() 19 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets() 20 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets() 21 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets() 22 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets() 23 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets() 24 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets() 25 OFFSET(TASK_THREAD_S7, task_struct, thread in asm_offsets() [all...] |
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_thread_ex.c | 13 void HdfThreadStart(struct HdfThread *thread) in HdfThreadStart() argument 15 if (thread == NULL) { in HdfThreadStart() 23 OsalThreadStart(&thread->adapter, ¶m); in HdfThreadStart() 24 thread->status = true; in HdfThreadStart() 27 void HdfThreadStop(struct HdfThread *thread) in HdfThreadStop() argument 29 if (thread == NULL) { in HdfThreadStop() 32 OsalThreadDestroy(&thread->adapter); in HdfThreadStop() 33 thread->status = false; in HdfThreadStop() 36 bool HdfThreadIsRunning(struct HdfThread *thread) in HdfThreadIsRunning() argument 38 if (thread in HdfThreadIsRunning() 46 struct HdfThread *thread = (struct HdfThread *)argv; HdfThreadMain() local 57 HdfThreadConstruct(struct HdfThread *thread) HdfThreadConstruct() argument 69 HdfThreadDestruct(struct HdfThread *thread) HdfThreadDestruct() argument 78 struct HdfThread *thread = (struct HdfThread *)OsalMemCalloc(sizeof(struct HdfThread)); HdfThreadNewInstance() local 85 HdfThreadFreeInstance(struct HdfThread *thread) HdfThreadFreeInstance() argument [all...] |
/kernel/linux/linux-5.10/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-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...] |
/kernel/linux/linux-6.6/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-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...] |
/kernel/linux/linux-6.6/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 in user_disable_single_step() 88 struct thread_struct *thread = &task->thread; ptrace_set_debugreg() local [all...] |
/kernel/linux/linux-5.10/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 in user_disable_single_step() 87 struct thread_struct *thread = &task->thread; ptrace_set_debugreg() local [all...] |
/drivers/hdf_core/framework/core/adapter/syscall/src/ |
H A D | hdf_syscall_adapter.c | 72 static struct HdfSyscallAdapter *HdfFdToAdapterLocked(const struct HdfDevListenerThread *thread, int32_t fd) in HdfFdToAdapterLocked() argument 74 if (thread->adapter != NULL && thread->adapter->fd == fd) { in HdfFdToAdapterLocked() 75 return thread->adapter; in HdfFdToAdapterLocked() 78 if (thread->adapterListPtr == NULL) { in HdfFdToAdapterLocked() 83 DLIST_FOR_EACH_ENTRY(adapter, thread->adapterListPtr, struct HdfSyscallAdapter, listNode) { in HdfFdToAdapterLocked() 93 const struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter, const struct HdfWriteReadBuf *bwr) in HdfDevEventDispatchLocked() 110 if (thread->listenerListPtr != NULL) { in HdfDevEventDispatchLocked() 111 DLIST_FOR_EACH_ENTRY(listener, thread->listenerListPtr, struct HdfDevEventlistener, listNode) { in HdfDevEventDispatchLocked() 137 static int32_t HdfDevEventReadAndDispatch(struct HdfDevListenerThread *thread, int32_ argument 92 HdfDevEventDispatchLocked( const struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter, const struct HdfWriteReadBuf *bwr) HdfDevEventDispatchLocked() argument 190 AssignPfds(struct HdfDevListenerThread *thread, struct pollfd **pfds, uint16_t *pfdSize) AssignPfds() argument 242 struct HdfDevListenerThread *thread = (struct HdfDevListenerThread *)para; HdfDevEventListenTask() local 332 HdfDevListenerThreadDoInit(struct HdfDevListenerThread *thread) HdfDevListenerThreadDoInit() argument 355 HdfDevListenerThreadInit(struct HdfDevListenerThread *thread) HdfDevListenerThreadInit() argument 376 GetValidPfdIndexLocked(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) GetValidPfdIndexLocked() argument 413 HdfAddAdapterToPfds(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) HdfAddAdapterToPfds() argument 427 HdfListenThreadInitPollFds(struct HdfDevListenerThread *thread) HdfListenThreadInitPollFds() argument 445 HdfDevListenerThreadStart(struct HdfDevListenerThread *thread) HdfDevListenerThreadStart() argument 492 struct HdfDevListenerThread *thread = OsalMemCalloc(sizeof(struct HdfDevListenerThread)); HdfDevListenerThreadObtain() local 533 HdfListenThreadPollAdd(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) HdfListenThreadPollAdd() argument 590 HdfListenThreadPollDel(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) HdfListenThreadPollDel() argument 618 HdfDevListenerThreadFree(struct HdfDevListenerThread *thread) HdfDevListenerThreadFree() argument 626 HdfDevListenerThreadDestroy(struct HdfDevListenerThread *thread) HdfDevListenerThreadDestroy() argument 1022 GetListenerCount(struct HdfDevListenerThread *thread) GetListenerCount() argument [all...] |
/kernel/linux/linux-5.10/drivers/mailbox/ |
H A D | mtk-cmdq-mailbox.c | 65 struct cmdq_thread *thread; member 75 struct cmdq_thread *thread; member 94 static int cmdq_thread_suspend(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_suspend() argument 98 writel(CMDQ_THR_SUSPEND, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_suspend() 101 if (!(readl(thread->base + CMDQ_THR_ENABLE_TASK) & CMDQ_THR_ENABLED)) in cmdq_thread_suspend() 104 if (readl_poll_timeout_atomic(thread->base + CMDQ_THR_CURR_STATUS, in cmdq_thread_suspend() 106 dev_err(cmdq->mbox.dev, "suspend GCE thread 0x%x failed\n", in cmdq_thread_suspend() 107 (u32)(thread->base - cmdq->base)); in cmdq_thread_suspend() 114 static void cmdq_thread_resume(struct cmdq_thread *thread) in cmdq_thread_resume() argument 116 writel(CMDQ_THR_RESUME, thread in cmdq_thread_resume() 130 cmdq_thread_reset(struct cmdq *cmdq, struct cmdq_thread *thread) cmdq_thread_reset() argument 146 cmdq_thread_disable(struct cmdq *cmdq, struct cmdq_thread *thread) cmdq_thread_disable() argument 153 cmdq_thread_invalidate_fetched_data(struct cmdq_thread *thread) cmdq_thread_invalidate_fetched_data() argument 162 struct cmdq_thread *thread = task->thread; cmdq_task_insert_into_thread() local 179 cmdq_thread_is_in_wfe(struct cmdq_thread *thread) cmdq_thread_is_in_wfe() argument 199 struct cmdq_thread *thread = task->thread; cmdq_task_handle_error() local 213 cmdq_thread_irq_handler(struct cmdq *cmdq, struct cmdq_thread *thread) cmdq_thread_irq_handler() argument 277 struct cmdq_thread *thread = &cmdq->thread[bit]; cmdq_irq_handler() local 290 struct cmdq_thread *thread; cmdq_suspend() local 333 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_send_data() local 401 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_shutdown() local 437 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_flush() local 497 struct cmdq_thread *thread; cmdq_xlate() local [all...] |
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | dwarf-unwind.c | 16 #include "thread.h" 52 int test_dwarf_unwind__thread(struct thread *thread); 54 int test_dwarf_unwind__krava_3(struct thread *thread); 55 int test_dwarf_unwind__krava_2(struct thread *thread); 56 int test_dwarf_unwind__krava_1(struct thread *thread); 98 noinline int test_dwarf_unwind__thread(struct thread *threa argument 132 struct thread *thread = *(struct thread **)p1; test_dwarf_unwind__compare() local 148 test_dwarf_unwind__krava_3(struct thread *thread) test_dwarf_unwind__krava_3() argument 167 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 180 struct thread *thread; test__dwarf_unwind() local [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | dwarf-unwind.c | 16 #include "thread.h" 65 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 *threa argument 146 struct thread *thread = *(struct thread **)p1; test_dwarf_unwind__compare() local 162 test_dwarf_unwind__krava_3(struct thread *thread) test_dwarf_unwind__krava_3() argument 181 test_dwarf_unwind__krava_2(struct thread *thread) test_dwarf_unwind__krava_2() argument 190 test_dwarf_unwind__krava_1(struct thread *thread) test_dwarf_unwind__krava_1() argument 203 struct thread *thread; test__dwarf_unwind() local [all...] |
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | asmmacro-64.h | 15 .macro cpu_save_nonscratch thread 16 stptr.d s0, \thread, THREAD_REG23 variable 17 stptr.d s1, \thread, THREAD_REG24 variable 18 stptr.d s2, \thread, THREAD_REG25 variable 19 stptr.d s3, \thread, THREAD_REG26 variable 20 stptr.d s4, \thread, THREAD_REG27 variable 21 stptr.d s5, \thread, THREAD_REG28 variable 22 stptr.d s6, \thread, THREAD_REG29 variable 23 stptr.d s7, \thread, THREAD_REG30 variable 24 stptr.d s8, \thread, THREAD_REG3 variable 25 stptr.d sp, \\thread, THREAD_REG03 global() variable 26 stptr.d fp, \\thread, THREAD_REG22 global() variable 30 ldptr.d s0, \\thread, THREAD_REG23 global() variable 31 ldptr.d s1, \\thread, THREAD_REG24 global() variable 32 ldptr.d s2, \\thread, THREAD_REG25 global() variable 33 ldptr.d s3, \\thread, THREAD_REG26 global() variable 34 ldptr.d s4, \\thread, THREAD_REG27 global() variable 35 ldptr.d s5, \\thread, THREAD_REG28 global() variable 36 ldptr.d s6, \\thread, THREAD_REG29 global() variable 37 ldptr.d s7, \\thread, THREAD_REG30 global() variable 38 ldptr.d s8, \\thread, THREAD_REG31 global() variable 39 ldptr.d sp, \\thread, THREAD_REG03 global() variable 40 ldptr.d fp, \\thread, THREAD_REG22 global() variable 41 ldptr.d ra, \\thread, THREAD_REG01 global() variable [all...] |
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | asm-offsets.c | 53 DEFINE(TASK_REGS, offsetof(struct task_struct, thread.regs)); in main() 54 DEFINE(TASK_PT_PSW, offsetof(struct task_struct, thread.regs.gr[ 0])); in main() 55 DEFINE(TASK_PT_GR1, offsetof(struct task_struct, thread.regs.gr[ 1])); in main() 56 DEFINE(TASK_PT_GR2, offsetof(struct task_struct, thread.regs.gr[ 2])); in main() 57 DEFINE(TASK_PT_GR3, offsetof(struct task_struct, thread.regs.gr[ 3])); in main() 58 DEFINE(TASK_PT_GR4, offsetof(struct task_struct, thread.regs.gr[ 4])); in main() 59 DEFINE(TASK_PT_GR5, offsetof(struct task_struct, thread.regs.gr[ 5])); in main() 60 DEFINE(TASK_PT_GR6, offsetof(struct task_struct, thread.regs.gr[ 6])); in main() 61 DEFINE(TASK_PT_GR7, offsetof(struct task_struct, thread.regs.gr[ 7])); in main() 62 DEFINE(TASK_PT_GR8, offsetof(struct task_struct, thread in main() [all...] |
/kernel/linux/linux-6.6/arch/parisc/kernel/ |
H A D | asm-offsets.c | 49 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...] |
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | stat-cpi.py | 10 def get_key(time, event, cpu, thread): 11 return "%d-%s-%d-%d" % (time, event, cpu, thread) 13 def store_key(time, cpu, thread): 20 if (thread not in threads): 21 threads.append(thread) 23 def store(time, event, cpu, thread, val, ena, run): 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...] |
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | stat-cpi.py | 10 def get_key(time, event, cpu, thread): 11 return "%d-%s-%d-%d" % (time, event, cpu, thread) 13 def store_key(time, cpu, thread): 20 if (thread not in threads): 21 threads.append(thread) 23 def store(time, event, cpu, thread, val, ena, run): 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...] |
/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | asm-offsets.c | 23 OFFSET(TASK_THREAD_RA, task_struct, thread.ra); in asm_offsets() 24 OFFSET(TASK_THREAD_SP, task_struct, thread.sp); in asm_offsets() 25 OFFSET(TASK_THREAD_S0, task_struct, thread.s[0]); in asm_offsets() 26 OFFSET(TASK_THREAD_S1, task_struct, thread.s[1]); in asm_offsets() 27 OFFSET(TASK_THREAD_S2, task_struct, thread.s[2]); in asm_offsets() 28 OFFSET(TASK_THREAD_S3, task_struct, thread.s[3]); in asm_offsets() 29 OFFSET(TASK_THREAD_S4, task_struct, thread.s[4]); in asm_offsets() 30 OFFSET(TASK_THREAD_S5, task_struct, thread.s[5]); in asm_offsets() 31 OFFSET(TASK_THREAD_S6, task_struct, thread.s[6]); in asm_offsets() 32 OFFSET(TASK_THREAD_S7, task_struct, thread in asm_offsets() [all...] |
/kernel/linux/linux-6.6/drivers/mailbox/ |
H A D | mtk-cmdq-mailbox.c | 70 struct cmdq_thread *thread; member 80 struct cmdq_thread *thread; member 113 static int cmdq_thread_suspend(struct cmdq *cmdq, struct cmdq_thread *thread) in cmdq_thread_suspend() argument 117 writel(CMDQ_THR_SUSPEND, thread->base + CMDQ_THR_SUSPEND_TASK); in cmdq_thread_suspend() 120 if (!(readl(thread->base + CMDQ_THR_ENABLE_TASK) & CMDQ_THR_ENABLED)) in cmdq_thread_suspend() 123 if (readl_poll_timeout_atomic(thread->base + CMDQ_THR_CURR_STATUS, in cmdq_thread_suspend() 125 dev_err(cmdq->mbox.dev, "suspend GCE thread 0x%x failed\n", in cmdq_thread_suspend() 126 (u32)(thread->base - cmdq->base)); in cmdq_thread_suspend() 133 static void cmdq_thread_resume(struct cmdq_thread *thread) in cmdq_thread_resume() argument 135 writel(CMDQ_THR_RESUME, thread in cmdq_thread_resume() 158 cmdq_thread_reset(struct cmdq *cmdq, struct cmdq_thread *thread) cmdq_thread_reset() argument 174 cmdq_thread_disable(struct cmdq *cmdq, struct cmdq_thread *thread) cmdq_thread_disable() argument 181 cmdq_thread_invalidate_fetched_data(struct cmdq_thread *thread) cmdq_thread_invalidate_fetched_data() argument 190 struct cmdq_thread *thread = task->thread; cmdq_task_insert_into_thread() local 207 cmdq_thread_is_in_wfe(struct cmdq_thread *thread) cmdq_thread_is_in_wfe() argument 225 struct cmdq_thread *thread = task->thread; cmdq_task_handle_error() local 239 cmdq_thread_irq_handler(struct cmdq *cmdq, struct cmdq_thread *thread) cmdq_thread_irq_handler() argument 303 struct cmdq_thread *thread = &cmdq->thread[bit]; cmdq_irq_handler() local 316 struct cmdq_thread *thread; cmdq_suspend() local 368 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_send_data() local 437 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_shutdown() local 474 struct cmdq_thread *thread = (struct cmdq_thread *)chan->con_priv; cmdq_mbox_flush() local 530 struct cmdq_thread *thread; cmdq_xlate() local [all...] |