Lines Matching refs:regs

80 	struct pt_regs *regs = task_pt_regs(child);  in putregs()  local
83 uregs->flags = regs->flags; in putregs()
88 *regs = *uregs; in putregs()
100 struct pt_regs regs; in tile_gpr_get() local
102 getregs(target, &regs); in tile_gpr_get()
104 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &regs, 0, in tile_gpr_get()
105 sizeof(regs)); in tile_gpr_get()
114 struct pt_regs regs; in tile_gpr_set() local
116 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &regs, 0, in tile_gpr_set()
117 sizeof(regs)); in tile_gpr_set()
121 putregs(target, &regs); in tile_gpr_set()
254 int do_syscall_trace_enter(struct pt_regs *regs) in do_syscall_trace_enter() argument
266 if (tracehook_report_syscall_entry(regs)) in do_syscall_trace_enter()
267 regs->regs[TREG_SYSCALL_NR] = -1; in do_syscall_trace_enter()
271 trace_sys_enter(regs, regs->regs[TREG_SYSCALL_NR]); in do_syscall_trace_enter()
273 return regs->regs[TREG_SYSCALL_NR]; in do_syscall_trace_enter()
276 void do_syscall_trace_exit(struct pt_regs *regs) in do_syscall_trace_exit() argument
293 errno = (long) regs->regs[0]; in do_syscall_trace_exit()
295 regs->regs[1] = -errno; in do_syscall_trace_exit()
297 regs->regs[1] = 0; in do_syscall_trace_exit()
300 tracehook_report_syscall_exit(regs, 0); in do_syscall_trace_exit()
303 trace_sys_exit(regs, regs->regs[0]); in do_syscall_trace_exit()
306 void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs) in send_sigtrap() argument
313 info.si_addr = (void __user *) regs->pc; in send_sigtrap()
320 void __kprobes do_breakpoint(struct pt_regs* regs, int fault_num) in do_breakpoint() argument
323 send_sigtrap(current, regs); in do_breakpoint()