/linux/arch/arc/kernel/ |
H A D | signal.c | 106 struct user_regs_struct uregs; in stash_usr_regs() local 108 uregs.scratch.bta = regs->bta; in stash_usr_regs() 109 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs() 110 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs() 111 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs() 112 uregs.scratch.status32 = regs->status32; in stash_usr_regs() 113 uregs.scratch.ret = regs->ret; in stash_usr_regs() 114 uregs.scratch.blink = regs->blink; in stash_usr_regs() 115 uregs.scratch.fp = regs->fp; in stash_usr_regs() 116 uregs.scratch.gp = regs->r26; in stash_usr_regs() [all …]
|
/linux/arch/arm/include/uapi/asm/ |
H A D | ptrace.h | 131 long uregs[18]; member 135 #define ARM_cpsr uregs[16] 136 #define ARM_pc uregs[15] 137 #define ARM_lr uregs[14] 138 #define ARM_sp uregs[13] 139 #define ARM_ip uregs[12] 140 #define ARM_fp uregs[11] 141 #define ARM_r10 uregs[10] 142 #define ARM_r9 uregs[9] 143 #define ARM_r8 uregs[8] [all …]
|
/linux/arch/arm/probes/kprobes/ |
H A D | actions-arm.c | 77 register unsigned long rtv asm("r0") = regs->uregs[rt]; in emulate_ldrdstrd() 78 register unsigned long rt2v asm("r1") = regs->uregs[rt+1]; in emulate_ldrdstrd() 80 : regs->uregs[rn]; in emulate_ldrdstrd() 81 register unsigned long rmv asm("r3") = regs->uregs[rm]; in emulate_ldrdstrd() 91 regs->uregs[rt] = rtv; in emulate_ldrdstrd() 92 regs->uregs[rt+1] = rt2v; in emulate_ldrdstrd() 94 regs->uregs[rn] = rnv; in emulate_ldrdstrd() 108 : regs->uregs[rn]; in emulate_ldr() 109 register unsigned long rmv asm("r3") = regs->uregs[rm]; in emulate_ldr() 121 regs->uregs[rt] = rtv; in emulate_ldr() [all …]
|
H A D | actions-thumb.c | 31 unsigned long rnv = (rn == 15) ? pc : regs->uregs[rn]; in t32_simulate_table_branch() 32 unsigned long rmv = regs->uregs[rm]; in t32_simulate_table_branch() 49 regs->uregs[rd] = regs->ARM_cpsr & mask; in t32_simulate_mrs() 140 regs->uregs[rt] = rtv; in t32_simulate_ldr_literal() 166 register unsigned long rt1v asm("r0") = regs->uregs[rt1]; in t32_emulate_ldrdstrd() 167 register unsigned long rt2v asm("r1") = regs->uregs[rt2]; in t32_emulate_ldrdstrd() 169 : regs->uregs[rn]; in t32_emulate_ldrdstrd() 179 regs->uregs[rn] = rnv; /* Writeback base register */ in t32_emulate_ldrdstrd() 180 regs->uregs[rt1] = rt1v; in t32_emulate_ldrdstrd() 181 regs->uregs[rt2] = rt2v; in t32_emulate_ldrdstrd() [all …]
|
H A D | actions-common.c | 27 long *addr = (long *)regs->uregs[rn]; in simulate_ldm1stm1() 47 regs->uregs[reg] = *addr++; in simulate_ldm1stm1() 49 *addr++ = regs->uregs[reg]; in simulate_ldm1stm1() 56 regs->uregs[rn] = (long)addr; in simulate_ldm1stm1() 114 (struct pt_regs *)(regs->uregs+2)); in emulate_generic_r2_14_noflags() 122 (struct pt_regs *)(regs->uregs+3)); in emulate_ldm_r3_15()
|
/linux/arch/arm/mm/ |
H A D | alignment.c | 336 regs->uregs[RN_BITS(instr)] = addr; in do_alignment_finish_ldst() 357 regs->uregs[rd] = val; in do_alignment_ldrhstrh() 359 put16_unaligned_check(regs->uregs[rd], addr); in do_alignment_ldrhstrh() 375 regs->uregs[rd] = val; in do_alignment_ldrhstrh() 378 put16t_unaligned_check(regs->uregs[rd], addr); in do_alignment_ldrhstrh() 414 regs->uregs[rd] = val; in do_alignment_ldrdstrd() 416 regs->uregs[rd2] = val; in do_alignment_ldrdstrd() 418 put32_unaligned_check(regs->uregs[rd], addr); in do_alignment_ldrdstrd() 419 put32_unaligned_check(regs->uregs[rd2], addr + 4); in do_alignment_ldrdstrd() 434 regs->uregs[rd] = val; in do_alignment_ldrdstrd() [all …]
|
/linux/arch/x86/mm/ |
H A D | extable.c | 224 struct pt_regs *uregs = (struct pt_regs *)(regs->sp - offsetof(struct pt_regs, orig_ax)); in ex_handler_eretu() local 225 unsigned short ss = uregs->ss; in ex_handler_eretu() 226 unsigned short cs = uregs->cs; in ex_handler_eretu() 233 regs->fred_ss.nmi = uregs->fred_ss.nmi; in ex_handler_eretu() 278 fred_info(uregs)->edata = fred_event_data(regs); in ex_handler_eretu() 279 uregs->ssx = regs->ssx; in ex_handler_eretu() 280 uregs->fred_ss.ss = ss; in ex_handler_eretu() 282 uregs->fred_ss.nmi = 0; in ex_handler_eretu() 283 uregs->csx = regs->csx; in ex_handler_eretu() 284 uregs->fred_cs.sl = 0; in ex_handler_eretu() [all …]
|
/linux/arch/sparc/kernel/ |
H A D | ptrace_32.c | 49 u32 *uregs) in regwindow32_get() argument 55 if (copy_from_user(uregs, (void __user *)reg_window, size)) in regwindow32_get() 58 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_get() 67 u32 *uregs) in regwindow32_set() argument 73 if (copy_to_user((void __user *)reg_window, uregs, size)) in regwindow32_set() 76 if (access_process_vm(target, reg_window, uregs, size, in regwindow32_set() 88 u32 uregs[16]; in genregs32_get() local 96 if (regwindow32_get(target, regs, uregs)) in genregs32_get() 98 membuf_write(&to, uregs, 16 * sizeof(u32)); in genregs32_get() 112 u32 uregs[16]; in genregs32_set() local [all …]
|
H A D | ptrace_64.c | 537 u32 uregs[16]; in genregs32_get() local 548 uregs, sizeof(uregs))) in genregs32_get() 550 membuf_write(&to, uregs, 16 * sizeof(u32)); in genregs32_get() 802 u32 uregs[19]; in setregs_set() local 809 uregs, in setregs_set() 816 tstate |= psr_to_tstate_icc(uregs[0]); in setregs_set() 817 if (uregs[0] & PSR_SYSCALL) in setregs_set() 820 regs->tpc = uregs[1]; in setregs_set() 821 regs->tnpc = uregs[2]; in setregs_set() 822 regs->y = uregs[3]; in setregs_set() [all …]
|
/linux/arch/mips/kernel/ |
H A D | process.c | 871 void mips_dump_regs32(u32 *uregs, const struct pt_regs *regs) in mips_dump_regs32() argument 878 uregs[i] = 0; in mips_dump_regs32() 880 uregs[i] = regs->regs[i - MIPS32_EF_R0]; in mips_dump_regs32() 883 uregs[MIPS32_EF_LO] = regs->lo; in mips_dump_regs32() 884 uregs[MIPS32_EF_HI] = regs->hi; in mips_dump_regs32() 885 uregs[MIPS32_EF_CP0_EPC] = regs->cp0_epc; in mips_dump_regs32() 886 uregs[MIPS32_EF_CP0_BADVADDR] = regs->cp0_badvaddr; in mips_dump_regs32() 887 uregs[MIPS32_EF_CP0_STATUS] = regs->cp0_status; in mips_dump_regs32() 888 uregs[MIPS32_EF_CP0_CAUSE] = regs->cp0_cause; in mips_dump_regs32() 893 void mips_dump_regs64(u64 *uregs, const struct pt_regs *regs) in mips_dump_regs64() argument [all …]
|
H A D | ptrace.c | 222 u32 uregs[ELF_NGREG] = {}; in gpr32_get() local 224 mips_dump_regs32(uregs, regs); in gpr32_get() 225 return membuf_write(&to, uregs, sizeof(uregs)); in gpr32_get() 234 u32 uregs[ELF_NGREG]; in gpr32_set() local 244 err = user_regset_copyin(&pos, &count, &kbuf, &ubuf, uregs, 0, in gpr32_set() 245 sizeof(uregs)); in gpr32_set() 258 regs->regs[i - MIPS32_EF_R0] = (s32)uregs[i]; in gpr32_set() 261 regs->lo = (s32)uregs[i]; in gpr32_set() 264 regs->hi = (s32)uregs[i]; in gpr32_set() 267 regs->cp0_epc = (s32)uregs[i]; in gpr32_set() [all …]
|
/linux/arch/loongarch/kernel/ |
H A D | process.c | 360 void loongarch_dump_regs64(u64 *uregs, const struct pt_regs *regs) in loongarch_dump_regs64() argument 365 uregs[i] = regs->regs[i - LOONGARCH_EF_R0]; in loongarch_dump_regs64() 368 uregs[LOONGARCH_EF_ORIG_A0] = regs->orig_a0; in loongarch_dump_regs64() 369 uregs[LOONGARCH_EF_CSR_ERA] = regs->csr_era; in loongarch_dump_regs64() 370 uregs[LOONGARCH_EF_CSR_BADV] = regs->csr_badvaddr; in loongarch_dump_regs64() 371 uregs[LOONGARCH_EF_CSR_CRMD] = regs->csr_crmd; in loongarch_dump_regs64() 372 uregs[LOONGARCH_EF_CSR_PRMD] = regs->csr_prmd; in loongarch_dump_regs64() 373 uregs[LOONGARCH_EF_CSR_EUEN] = regs->csr_euen; in loongarch_dump_regs64() 374 uregs[LOONGARCH_EF_CSR_ECFG] = regs->csr_ecfg; in loongarch_dump_regs64() 375 uregs[LOONGARCH_EF_CSR_ESTAT] = regs->csr_estat; in loongarch_dump_regs64()
|
/linux/arch/arm/probes/uprobes/ |
H A D | actions-arm.c | 72 autask->backup = regs->uregs[pcreg]; in uprobe_set_pc() 73 regs->uregs[pcreg] = regs->ARM_pc + 8; in uprobe_set_pc() 81 regs->uregs[auprobe->pcreg] = autask->backup; in uprobe_unset_pc() 90 alu_write_pc(regs->uregs[pcreg], regs); in uprobe_aluwrite_pc() 91 regs->uregs[pcreg] = autask->backup; in uprobe_aluwrite_pc() 100 load_write_pc(regs->uregs[pcreg], regs); in uprobe_write_pc() 101 regs->uregs[pcreg] = autask->backup; in uprobe_write_pc()
|
/linux/arch/x86/kernel/ |
H A D | msr.c | 150 u32 __user *uregs = (u32 __user *)arg; in msr_ioctl() local 161 if (copy_from_user(®s, uregs, sizeof(regs))) { in msr_ioctl() 168 if (copy_to_user(uregs, ®s, sizeof(regs))) in msr_ioctl() 177 if (copy_from_user(®s, uregs, sizeof(regs))) { in msr_ioctl() 194 if (copy_to_user(uregs, ®s, sizeof(regs))) in msr_ioctl()
|
/linux/arch/xtensa/kernel/ |
H A D | ptrace.c | 244 static int ptrace_getregs(struct task_struct *child, void __user *uregs) in ptrace_getregs() argument 247 0, sizeof(xtensa_gregset_t), uregs); in ptrace_getregs() 250 static int ptrace_setregs(struct task_struct *child, void __user *uregs) in ptrace_setregs() argument 253 0, sizeof(xtensa_gregset_t), uregs); in ptrace_setregs() 256 static int ptrace_getxregs(struct task_struct *child, void __user *uregs) in ptrace_getxregs() argument 259 0, sizeof(elf_xtregs_t), uregs); in ptrace_getxregs() 262 static int ptrace_setxregs(struct task_struct *child, void __user *uregs) in ptrace_setxregs() argument 265 0, sizeof(elf_xtregs_t), uregs); in ptrace_setxregs()
|
/linux/arch/m68k/kernel/ |
H A D | ptrace.c | 307 u32 uregs[ELF_NGREG]; in m68k_regset_get() local 309 ELF_CORE_COPY_REGS(uregs, ptregs); in m68k_regset_get() 310 return membuf_write(&to, uregs, sizeof(uregs)); in m68k_regset_get()
|
/linux/arch/arm/kernel/ |
H A D | swp_emulate.c | 188 address = regs->uregs[EXTRACT_REG_NUM(instr, RN_OFFSET)]; in swp_handler() 189 data = regs->uregs[EXTRACT_REG_NUM(instr, RT2_OFFSET)]; in swp_handler() 214 regs->uregs[destreg] = data; in swp_handler()
|
H A D | perf_regs.c | 16 return regs->uregs[idx]; in perf_reg_value()
|
H A D | ptrace.c | 163 return task_pt_regs(task)->uregs[offset]; in get_user_reg() 179 newregs.uregs[offset] = data; in put_user_reg() 182 regs->uregs[offset] = data; in put_user_reg()
|
/linux/arch/microblaze/mm/ |
H A D | fault.c | 175 struct pt_regs *uregs = current->thread.regs; in do_page_fault() local 176 if (uregs == NULL) in do_page_fault() 191 if (address + 2048 < uregs->r1 in do_page_fault()
|
/linux/arch/arm/probes/ |
H A D | decode-arm.c | 80 long rmv = regs->uregs[rm]; in simulate_blx2bx() 96 regs->uregs[rd] = regs->ARM_cpsr & mask; in simulate_mrs() 102 regs->uregs[12] = regs->uregs[13]; in simulate_mov_ipsp()
|
/linux/tools/lib/bpf/ |
H A D | bpf_tracing.h | 198 #define __PT_PARM1_REG uregs[0] 199 #define __PT_PARM2_REG uregs[1] 200 #define __PT_PARM3_REG uregs[2] 201 #define __PT_PARM4_REG uregs[3] 207 #define __PT_PARM5_SYSCALL_REG uregs[4] 208 #define __PT_PARM6_SYSCALL_REG uregs[5] 209 #define __PT_PARM7_SYSCALL_REG uregs[6] 211 #define __PT_RET_REG uregs[14] 212 #define __PT_FP_REG uregs[11] /* Works only with CONFIG_FRAME_POINTER */ 213 #define __PT_RC_REG uregs[0] [all …]
|
/linux/arch/arm/include/asm/ |
H A D | processor.h | 61 memset(regs->uregs, 0, sizeof(regs->uregs)); \
|
/linux/arch/arm/nwfpe/ |
H A D | fpmodule.inl | 32 unsigned int val = regs->uregs[nReg]; 42 regs->uregs[nReg] = val;
|
/linux/arch/mips/include/asm/ |
H A D | elf.h | 214 void mips_dump_regs32(u32 *uregs, const struct pt_regs *regs); 215 void mips_dump_regs64(u64 *uregs, const struct pt_regs *regs);
|