/linux-6.1.9/arch/loongarch/kernel/ |
D | ptrace.c | 75 struct pt_regs *regs = task_pt_regs(target); in gpr_get() 94 struct pt_regs *regs = task_pt_regs(target); in gpr_set() 371 tmp = task_pt_regs(target)->regs[addr]; in read_user() 374 tmp = task_pt_regs(target)->orig_a0; in read_user() 377 tmp = task_pt_regs(target)->csr_era; in read_user() 380 tmp = task_pt_regs(target)->csr_badvaddr; in read_user() 394 task_pt_regs(target)->regs[addr] = data; in write_user() 397 task_pt_regs(target)->orig_a0 = data; in write_user() 400 task_pt_regs(target)->csr_era = data; in write_user() 403 task_pt_regs(target)->csr_badvaddr = data; in write_user()
|
/linux-6.1.9/arch/loongarch/include/asm/ |
D | processor.h | 195 #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk)) macro 196 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->csr_era) 197 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[3]) 198 #define KSTK_EUEN(tsk) (task_pt_regs(tsk)->csr_euen) 199 #define KSTK_ECFG(tsk) (task_pt_regs(tsk)->csr_ecfg)
|
/linux-6.1.9/arch/hexagon/include/asm/ |
D | processor.h | 57 #define task_pt_regs(task) \ macro 60 #define KSTK_EIP(tsk) (pt_elr(task_pt_regs(tsk))) 61 #define KSTK_ESP(tsk) (pt_psp(task_pt_regs(tsk)))
|
/linux-6.1.9/arch/openrisc/include/asm/ |
D | processor.h | 63 #define task_pt_regs(task) user_regs(task_thread_info(task)) macro 70 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) 71 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp)
|
/linux-6.1.9/arch/csky/include/asm/ |
D | processor.h | 79 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) 80 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->usp) 82 #define task_pt_regs(p) \ macro
|
/linux-6.1.9/arch/riscv/include/asm/ |
D | processor.h | 56 #define task_pt_regs(tsk) \ macro 60 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->epc) 61 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp)
|
D | switch_to.h | 54 regs = task_pt_regs(prev); in __switch_to_aux() 57 fstate_restore(next, task_pt_regs(next)); in __switch_to_aux()
|
/linux-6.1.9/arch/arc/include/asm/ |
D | processor.h | 43 #define task_pt_regs(p) \ macro 52 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret) 53 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp)
|
/linux-6.1.9/arch/ia64/include/asm/ |
D | switch_to.h | 42 ia64_psr(task_pt_regs(next))->dfh = !ia64_is_local_fpu_owner(next); \ 54 if (ia64_psr(task_pt_regs(prev))->mfh && ia64_is_local_fpu_owner(prev)) { \ 55 ia64_psr(task_pt_regs(prev))->mfh = 0; \
|
/linux-6.1.9/arch/nios2/kernel/ |
D | ptrace.c | 25 const struct pt_regs *regs = task_pt_regs(target); in genregs_get() 51 struct pt_regs *regs = task_pt_regs(target); in genregs_set() 136 ret = ptrace_report_syscall_entry(task_pt_regs(current)); in do_syscall_trace_enter() 144 ptrace_report_syscall_exit(task_pt_regs(current), 0); in do_syscall_trace_exit()
|
/linux-6.1.9/arch/hexagon/kernel/ |
D | ptrace.c | 25 pt_set_singlestep(task_pt_regs(child)); in user_enable_single_step() 31 pt_clr_singlestep(task_pt_regs(child)); in user_disable_single_step() 40 struct pt_regs *regs = task_pt_regs(target); in genregs_get() 79 struct pt_regs *regs = task_pt_regs(target); in genregs_set()
|
/linux-6.1.9/arch/arm/include/asm/ |
D | processor.h | 86 #define task_pt_regs(p) \ macro 89 #define KSTK_EIP(tsk) task_pt_regs(tsk)->ARM_pc 90 #define KSTK_ESP(tsk) task_pt_regs(tsk)->ARM_sp
|
/linux-6.1.9/arch/x86/include/asm/ |
D | elfcore-compat.h | 23 (user_64bit_mode(task_pt_regs(current)) \ 27 (*(user_64bit_mode(task_pt_regs(current)) \
|
D | compat.h | 80 (!!(task_pt_regs(current)->orig_ax & __X32_SYSCALL_BIT)) 86 if (task_pt_regs(current)->orig_ax & __X32_SYSCALL_BIT) in in_x32_syscall()
|
/linux-6.1.9/arch/riscv/kernel/ |
D | ptrace.c | 36 return membuf_write(&to, task_pt_regs(target), in riscv_gpr_get() 47 regs = task_pt_regs(target); in riscv_gpr_set() 59 fstate_save(current, task_pt_regs(current)); in riscv_fpr_get() 279 regs_to_cregs(&cregs, task_pt_regs(target)); in compat_riscv_gpr_get() 295 cregs_to_regs(&cregs, task_pt_regs(target)); in compat_riscv_gpr_set()
|
/linux-6.1.9/arch/mips/include/asm/ |
D | processor.h | 360 #define task_pt_regs(tsk) ((struct pt_regs *)__KSTK_TOS(tsk)) macro 361 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->cp0_epc) 362 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[29]) 363 #define KSTK_STATUS(tsk) (task_pt_regs(tsk)->cp0_status)
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | processor_64.h | 181 #define task_pt_regs(tsk) (task_thread_info(tsk)->kregs) macro 182 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->tpc) 183 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->u_regs[UREG_FP])
|
D | mman.h | 25 regs = task_pt_regs(current); in ipi_set_tstate_mcde() 37 regs = task_pt_regs(current); in sparc_calc_vm_prot_bits()
|
/linux-6.1.9/arch/microblaze/include/asm/ |
D | processor.h | 23 #define task_pt_regs(tsk) \ macro 76 ((void *)task_pt_regs(tsk))
|
/linux-6.1.9/arch/sh/kernel/ |
D | process_32.c | 82 clear_fpu(tsk, task_pt_regs(tsk)); in flush_thread() 112 childregs = task_pt_regs(p); in copy_thread() 153 unlazy_fpu(prev, task_pt_regs(prev)); in __switch_to()
|
/linux-6.1.9/arch/csky/kernel/ |
D | ptrace.c | 41 regs = task_pt_regs(tsk); in singlestep_disable() 52 regs = task_pt_regs(tsk); in singlestep_enable() 81 struct pt_regs *regs = task_pt_regs(target); in gpr_get() 102 regs.sr = (regs.sr & BIT(0)) | (task_pt_regs(target)->sr & ~BIT(0)); in gpr_set() 104 regs.dcsr = task_pt_regs(target)->dcsr; in gpr_set() 108 *task_pt_regs(target) = regs; in gpr_set()
|
D | process.c | 38 struct pt_regs *childregs = task_pt_regs(p); in copy_thread() 81 struct pt_regs *regs = task_pt_regs(tsk); in dump_task_regs()
|
/linux-6.1.9/arch/x86/kernel/ |
D | perf_regs.c | 106 regs_user->regs = task_pt_regs(current); in perf_get_regs_user() 125 if (!user_64bit_mode(task_pt_regs(task))) in perf_reg_abi() 137 struct pt_regs *user_regs = task_pt_regs(current); in perf_get_regs_user()
|
D | ptrace.c | 170 retval = *pt_regs_access(task_pt_regs(task), offset); in get_segment_reg() 209 *pt_regs_access(task_pt_regs(task), offset) = value; in set_segment_reg() 267 return *pt_regs_access(task_pt_regs(task), offset); in get_segment_reg() 308 task_pt_regs(task)->cs = value; in set_segment_reg() 313 task_pt_regs(task)->ss = value; in set_segment_reg() 324 unsigned long retval = task_pt_regs(task)->flags; in get_flags() 337 struct pt_regs *regs = task_pt_regs(task); in set_flags() 383 *pt_regs_access(task_pt_regs(child), offset) = value; in putreg() 409 return *pt_regs_access(task_pt_regs(task), offset); in getreg() 855 struct pt_regs *regs = task_pt_regs(child); in putreg32() [all …]
|
/linux-6.1.9/arch/sh/include/asm/ |
D | processor_32.h | 182 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) 183 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[15])
|