/linux-6.1.9/arch/sparc/kernel/ |
D | process.c | 20 unsigned long orig_i1 = regs->u_regs[UREG_I1]; in sparc_fork() 25 .stack = regs->u_regs[UREG_FP], in sparc_fork() 36 regs->u_regs[UREG_I1] = orig_i1; in sparc_fork() 43 unsigned long orig_i1 = regs->u_regs[UREG_I1]; in sparc_vfork() 50 .stack = regs->u_regs[UREG_FP], in sparc_vfork() 61 regs->u_regs[UREG_I1] = orig_i1; in sparc_vfork() 68 unsigned long orig_i1 = regs->u_regs[UREG_I1]; in sparc_clone() 69 unsigned int flags = lower_32_bits(regs->u_regs[UREG_I0]); in sparc_clone() 75 .tls = regs->u_regs[UREG_I3], in sparc_clone() 80 args.pidfd = compat_ptr(regs->u_regs[UREG_I2]); in sparc_clone() [all …]
|
D | signal_64.c | 44 regs->u_regs[UREG_I0]; in sparc64_set_context() 62 if (regs->u_regs[UREG_I1]) { in sparc64_set_context() 84 err |= __get_user(regs->u_regs[UREG_G1], (&(*grp)[MC_G1])); in sparc64_set_context() 85 err |= __get_user(regs->u_regs[UREG_G2], (&(*grp)[MC_G2])); in sparc64_set_context() 86 err |= __get_user(regs->u_regs[UREG_G3], (&(*grp)[MC_G3])); in sparc64_set_context() 87 err |= __get_user(regs->u_regs[UREG_G4], (&(*grp)[MC_G4])); in sparc64_set_context() 88 err |= __get_user(regs->u_regs[UREG_G5], (&(*grp)[MC_G5])); in sparc64_set_context() 89 err |= __get_user(regs->u_regs[UREG_G6], (&(*grp)[MC_G6])); in sparc64_set_context() 93 err |= __get_user(regs->u_regs[UREG_I0], (&(*grp)[MC_O0])); in sparc64_set_context() 94 err |= __get_user(regs->u_regs[UREG_I1], (&(*grp)[MC_O1])); in sparc64_set_context() [all …]
|
D | process_32.c | 119 struct reg_window32 *rw = (struct reg_window32 *) r->u_regs[14]; in show_regs() 127 r->u_regs[0], r->u_regs[1], r->u_regs[2], r->u_regs[3], in show_regs() 128 r->u_regs[4], r->u_regs[5], r->u_regs[6], r->u_regs[7]); in show_regs() 130 r->u_regs[8], r->u_regs[9], r->u_regs[10], r->u_regs[11], in show_regs() 131 r->u_regs[12], r->u_regs[13], r->u_regs[14], r->u_regs[15]); in show_regs() 132 printk("RPC: <%pS>\n", (void *) r->u_regs[15]); in show_regs() 306 childregs->u_regs[UREG_G1] = (unsigned long) args->fn; 307 childregs->u_regs[UREG_G2] = (unsigned long) args->fn_arg; 314 childregs->u_regs[UREG_FP] = sp; 319 if (sp != regs->u_regs[UREG_FP]) { [all …]
|
D | process_64.c | 111 rw = compat_ptr((unsigned int)regs->u_regs[14]); in show_regwindow32() 138 (regs->u_regs[14] + STACK_BIAS); in show_regwindow() 140 (regs->u_regs[14] + STACK_BIAS); in show_regwindow() 171 regs->u_regs[0], regs->u_regs[1], regs->u_regs[2], in show_regs() 172 regs->u_regs[3]); in show_regs() 174 regs->u_regs[4], regs->u_regs[5], regs->u_regs[6], in show_regs() 175 regs->u_regs[7]); in show_regs() 177 regs->u_regs[8], regs->u_regs[9], regs->u_regs[10], in show_regs() 178 regs->u_regs[11]); in show_regs() 180 regs->u_regs[12], regs->u_regs[13], regs->u_regs[14], in show_regs() [all …]
|
D | signal_32.c | 88 sf = (struct signal_frame __user *) regs->u_regs[UREG_FP]; in do_sigreturn() 94 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn() 151 sf = (struct rt_signal_frame __user *) regs->u_regs[UREG_FP]; in do_rt_sigreturn() 155 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn() 168 err |= __copy_from_user(®s->u_regs[UREG_G1], in do_rt_sigreturn() 169 &sf->regs.u_regs[UREG_G1], 15 * sizeof(u32)); in do_rt_sigreturn() 202 unsigned long sp = regs->u_regs[UREG_FP]; in get_sigframe() 279 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_frame() 291 regs->u_regs[UREG_FP] = (unsigned long) sf; in setup_frame() 292 regs->u_regs[UREG_I0] = ksig->sig; in setup_frame() [all …]
|
D | signal32.c | 99 regs->u_regs[UREG_FP] &= 0x00000000ffffffffUL; in do_sigreturn32() 100 sf = (struct signal_frame32 __user *) regs->u_regs[UREG_FP]; in do_sigreturn32() 106 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn32() 131 err |= __get_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in do_sigreturn32() 138 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]); in do_sigreturn32() 187 regs->u_regs[UREG_FP] &= 0x00000000ffffffffUL; in do_rt_sigreturn32() 188 sf = (struct rt_signal_frame32 __user *) regs->u_regs[UREG_FP]; in do_rt_sigreturn32() 194 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn32() 219 err |= __get_user(regs->u_regs[i], &sf->regs.u_regs[i]); in do_rt_sigreturn32() 226 err |= __get_user(((u32 *)regs->u_regs)[2*i], &sf->v8plus.g_upper[i]); in do_rt_sigreturn32() [all …]
|
D | ptrace_64.c | 194 unsigned long rw_addr = regs->u_regs[UREG_I6]; in regwindow64_get() 219 unsigned long rw_addr = regs->u_regs[UREG_I6]; in regwindow64_set() 256 membuf_write(&to, regs->u_regs, 16 * sizeof(u64)); in genregs64_get() 279 regs->u_regs, in genregs64_set() 451 membuf_write(&to, regs->u_regs + 1, 15 * sizeof(u64)); in getregs64_get() 471 regs->u_regs + 1, in setregs64_set() 546 membuf_store(&to, (u32)regs->u_regs[i]); in genregs32_get() 549 if (get_from_target(target, regs->u_regs[UREG_I6], in genregs32_get() 579 regs->u_regs[pos++] = *k++; in genregs32_set() 581 reg_window = (compat_ulong_t __user *) regs->u_regs[UREG_I6]; in genregs32_set() [all …]
|
D | unaligned_32.c | 99 return (!reg ? 0 : regs->u_regs[reg]); in fetch_reg() 102 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in fetch_reg() 112 return (!reg ? 0 : regs->u_regs[reg]); in safe_fetch_reg() 115 win = (struct reg_window32 __user *) regs->u_regs[UREG_FP]; in safe_fetch_reg() 131 return ®s->u_regs[reg]; in fetch_reg_addr() 132 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in fetch_reg_addr()
|
D | uprobes.c | 131 slot = ®s->u_regs[UREG_I7]; in retpc_fixup() 138 slot = ®s->u_regs[rd]; in retpc_fixup() 140 unsigned long fp = regs->u_regs[UREG_FP]; in retpc_fixup() 313 unsigned long orig_ret_vaddr = regs->u_regs[UREG_I7]; in arch_uretprobe_hijack_return_addr() 315 regs->u_regs[UREG_I7] = trampoline_vaddr-8; in arch_uretprobe_hijack_return_addr()
|
D | kgdb_32.c | 26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs() 28 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in pt_regs_to_gdb_regs() 88 regs->u_regs[UREG_G1 + i] = gdb_regs[GDB_G1 + i]; in gdb_regs_to_pt_regs() 103 win = (struct reg_window32 *) regs->u_regs[UREG_FP]; in gdb_regs_to_pt_regs()
|
D | ptrace_32.c | 51 unsigned long reg_window = regs->u_regs[UREG_I6]; in regwindow32_get() 69 unsigned long reg_window = regs->u_regs[UREG_I6]; in regwindow32_set() 93 membuf_write(&to, regs->u_regs, 16 * sizeof(u32)); in genregs32_get() 120 regs->u_regs, in genregs32_set() 256 return membuf_write(&to, regs->u_regs + 1, 15 * sizeof(u32)); in getregs_get() 282 regs->u_regs + 1, in setregs_set() 362 unsigned long addr2 = current->thread.kregs->u_regs[UREG_I4]; in arch_ptrace()
|
D | kgdb_64.c | 26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; in pt_regs_to_gdb_regs() 28 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); in pt_regs_to_gdb_regs() 94 regs->u_regs[UREG_G1 + i] = gdb_regs[GDB_G1 + i]; in gdb_regs_to_pt_regs() 109 win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); in gdb_regs_to_pt_regs()
|
D | kprobes.c | 243 slot = ®s->u_regs[UREG_I7]; in retpc_fixup() 251 slot = ®s->u_regs[rd]; in retpc_fixup() 258 (regs->u_regs[UREG_FP] + STACK_BIAS); in retpc_fixup() 438 ri->ret_addr = (kprobe_opcode_t *)(regs->u_regs[UREG_RETPC] + 8); in arch_prepare_kretprobe() 442 regs->u_regs[UREG_RETPC] = in arch_prepare_kretprobe()
|
D | unaligned_64.c | 125 return (!reg ? 0 : regs->u_regs[reg]); in fetch_reg() 127 fp = regs->u_regs[UREG_FP]; in fetch_reg() 150 return ®s->u_regs[reg]; in fetch_reg_addr() 152 fp = regs->u_regs[UREG_FP]; in fetch_reg_addr() 413 regs->u_regs[rd] = ret; in handle_popc() 415 unsigned long fp = regs->u_regs[UREG_FP]; in handle_popc() 584 } else if (!test_thread_64bit_stack(regs->u_regs[UREG_FP])) { in handle_ld_nf()
|
D | sys_sparc_32.c | 84 current_pt_regs()->u_regs[UREG_I1] = fd[1]; in SYSCALL_DEFINE0() 138 current->comm, task_pid_nr(current), (int)regs->u_regs[1]); in SYSCALL_DEFINE0()
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | syscall.h | 25 return (syscall_p ? regs->u_regs[UREG_G1] : -1L); in syscall_get_nr() 71 long val = regs->u_regs[UREG_I0]; in syscall_get_error() 79 long val = regs->u_regs[UREG_I0]; in syscall_get_return_value() 90 regs->u_regs[UREG_I0] = -error; in syscall_set_return_value() 93 regs->u_regs[UREG_I0] = val; in syscall_set_return_value() 111 unsigned long val = regs->u_regs[UREG_I0 + j]; in syscall_get_arguments()
|
D | ptrace.h | 70 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP]) 78 return regs->u_regs[UREG_I0]; in regs_return_value() 114 return regs->u_regs[UREG_I6]; in kernel_stack_pointer() 145 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
|
D | perf_event.h | 25 (regs)->u_regs[UREG_I6] = _fp; \ 26 (regs)->u_regs[UREG_I7] = _i7; \
|
D | processor_64.h | 128 "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0]))); \ 172 "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0]))); \ 183 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->u_regs[UREG_FP])
|
D | sigcontext.h | 44 unsigned int u_regs[16]; /* globals and ins */ member 76 unsigned long u_regs[16]; /* globals and ins */ member
|
D | processor_32.h | 79 "i" ((const unsigned long)(&((struct pt_regs *)0)->u_regs[0])) in start_thread() 87 #define KSTK_ESP(tsk) ((tsk)->thread.kregs->u_regs[UREG_FP])
|
/linux-6.1.9/arch/sparc/include/uapi/asm/ |
D | ptrace.h | 23 unsigned long u_regs[16]; /* globals and ins */ member 48 unsigned int u_regs[16]; /* globals and ins */ member 109 unsigned long u_regs[16]; /* globals and ins */ member
|
/linux-6.1.9/arch/sparc/mm/ |
D | fault_64.c | 65 printk(KERN_CRIT "OOPS: RPC [%016lx]\n", regs->u_regs[15]); in bad_kernel_pc() 66 printk("OOPS: RPC <%pS>\n", (void *) regs->u_regs[15]); in bad_kernel_pc() 149 (void *)regs->tpc, (void *)regs->u_regs[UREG_I7], in show_signal_msg() 150 (void *)regs->u_regs[UREG_FP], code); in show_signal_msg()
|
D | fault_32.c | 71 (void *)regs->pc, (void *)regs->u_regs[UREG_I7], in show_signal_msg() 72 (void *)regs->u_regs[UREG_FP], code); in show_signal_msg() 389 sp = regs->u_regs[UREG_FP]; in window_ret_fault()
|
/linux-6.1.9/tools/lib/bpf/ |
D | bpf_tracing.h | 212 #define __PT_PARM1_REG u_regs[UREG_I0] 213 #define __PT_PARM2_REG u_regs[UREG_I1] 214 #define __PT_PARM3_REG u_regs[UREG_I2] 215 #define __PT_PARM4_REG u_regs[UREG_I3] 216 #define __PT_PARM5_REG u_regs[UREG_I4] 217 #define __PT_RET_REG u_regs[UREG_I7] 219 #define __PT_RC_REG u_regs[UREG_I0] 220 #define __PT_SP_REG u_regs[UREG_FP]
|