Lines Matching refs:rp

194 fasttrap_anarg(struct regs *rp, int function_entry, int argno)  in fasttrap_anarg()  argument
208 return ((&rp->r_rdi)[argno]); in fasttrap_anarg()
210 stack = (uintptr_t *)rp->r_sp; in fasttrap_anarg()
216 uint32_t *stack = (uint32_t *)rp->r_sp; in fasttrap_anarg()
659 fasttrap_return_common(struct regs *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument
701 rp->r_r0, rp->r_r1, 0, 0); in fasttrap_return_common()
726 fasttrap_usdt_args64(fasttrap_probe_t *probe, struct regs *rp, int argc, in fasttrap_usdt_args64() argument
730 uintptr_t *stack = (uintptr_t *)rp->r_sp; in fasttrap_usdt_args64()
736 argv[i] = (&rp->r_rdi)[x]; in fasttrap_usdt_args64()
748 fasttrap_usdt_args32(fasttrap_probe_t *probe, struct regs *rp, int argc, in fasttrap_usdt_args32() argument
752 uint32_t *stack = (uint32_t *)rp->r_sp; in fasttrap_usdt_args32()
766 fasttrap_do_seg(fasttrap_tracepoint_t *tp, struct regs *rp, uintptr_t *addr) in fasttrap_do_seg() argument
775 sel = rp->r_cs; in fasttrap_do_seg()
778 sel = rp->r_ds; in fasttrap_do_seg()
781 sel = rp->r_es; in fasttrap_do_seg()
784 sel = rp->r_fs; in fasttrap_do_seg()
787 sel = rp->r_gs; in fasttrap_do_seg()
790 sel = rp->r_ss; in fasttrap_do_seg()
879 fasttrap_pid_probe(struct regs *rp) in fasttrap_pid_probe() argument
882 uintptr_t pc = rp->r_pc - 1, new_pc = 0; in fasttrap_pid_probe()
951 rp->r_pc = pc; in fasttrap_pid_probe()
969 dtrace_probe(probe->ftp_id, rp->r_rdi, in fasttrap_pid_probe()
970 rp->r_rsi, rp->r_rdx, rp->r_rcx, in fasttrap_pid_probe()
971 rp->r_r8); in fasttrap_pid_probe()
984 dtrace_probe(probe->ftp_id, rp->r_rdi, in fasttrap_pid_probe()
985 rp->r_rsi, rp->r_rdx, rp->r_rcx, in fasttrap_pid_probe()
986 rp->r_r8); in fasttrap_pid_probe()
990 fasttrap_usdt_args64(probe, rp, in fasttrap_pid_probe()
1000 uint32_t *stack = (uint32_t *)rp->r_sp; in fasttrap_pid_probe()
1046 fasttrap_usdt_args32(probe, rp, in fasttrap_pid_probe()
1072 rp->r_pc = pc + tp->ftt_size; in fasttrap_pid_probe()
1086 rp->r_r0 = 1; in fasttrap_pid_probe()
1087 new_pc = rp->r_pc; in fasttrap_pid_probe()
1113 ret = fasttrap_fulword((void *)rp->r_sp, &dst); in fasttrap_pid_probe()
1114 addr = rp->r_sp + sizeof (uintptr_t); in fasttrap_pid_probe()
1118 ret = fasttrap_fuword32((void *)rp->r_sp, &dst32); in fasttrap_pid_probe()
1120 addr = rp->r_sp + sizeof (uint32_t); in fasttrap_pid_probe()
1125 fasttrap_sigsegv(p, curthread, rp->r_sp); in fasttrap_pid_probe()
1133 rp->r_sp = addr; in fasttrap_pid_probe()
1144 taken = (rp->r_ps & FASTTRAP_EFLAGS_OF) != 0; in fasttrap_pid_probe()
1147 taken = (rp->r_ps & FASTTRAP_EFLAGS_OF) == 0; in fasttrap_pid_probe()
1150 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) != 0; in fasttrap_pid_probe()
1153 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) == 0; in fasttrap_pid_probe()
1156 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0; in fasttrap_pid_probe()
1159 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0; in fasttrap_pid_probe()
1162 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) != 0 || in fasttrap_pid_probe()
1163 (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0; in fasttrap_pid_probe()
1166 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) == 0 && in fasttrap_pid_probe()
1167 (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0; in fasttrap_pid_probe()
1170 taken = (rp->r_ps & FASTTRAP_EFLAGS_SF) != 0; in fasttrap_pid_probe()
1173 taken = (rp->r_ps & FASTTRAP_EFLAGS_SF) == 0; in fasttrap_pid_probe()
1176 taken = (rp->r_ps & FASTTRAP_EFLAGS_PF) != 0; in fasttrap_pid_probe()
1179 taken = (rp->r_ps & FASTTRAP_EFLAGS_PF) == 0; in fasttrap_pid_probe()
1182 taken = ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) != in fasttrap_pid_probe()
1183 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1186 taken = ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) == in fasttrap_pid_probe()
1187 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1190 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0 || in fasttrap_pid_probe()
1191 ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) != in fasttrap_pid_probe()
1192 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1195 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0 && in fasttrap_pid_probe()
1196 ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) == in fasttrap_pid_probe()
1197 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1213 greg_t cx = rp->r_rcx--; in fasttrap_pid_probe()
1215 greg_t cx = rp->r_ecx--; in fasttrap_pid_probe()
1220 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0 && in fasttrap_pid_probe()
1224 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0 && in fasttrap_pid_probe()
1242 greg_t cx = rp->r_rcx; in fasttrap_pid_probe()
1244 greg_t cx = rp->r_ecx; in fasttrap_pid_probe()
1261 addr = rp->r_sp - sizeof (uintptr_t); in fasttrap_pid_probe()
1262 ret = fasttrap_sulword((void *)addr, rp->r_fp); in fasttrap_pid_probe()
1265 addr = rp->r_sp - sizeof (uint32_t); in fasttrap_pid_probe()
1267 (uint32_t)rp->r_fp); in fasttrap_pid_probe()
1277 rp->r_sp = addr; in fasttrap_pid_probe()
1294 addr += fasttrap_getreg(rp, tp->ftt_base); in fasttrap_pid_probe()
1296 addr += fasttrap_getreg(rp, tp->ftt_index) << in fasttrap_pid_probe()
1307 fasttrap_do_seg(tp, rp, &addr) != 0) { in fasttrap_pid_probe()
1354 addr = rp->r_sp - sizeof (uintptr_t); in fasttrap_pid_probe()
1359 addr = rp->r_sp - sizeof (uint32_t); in fasttrap_pid_probe()
1372 rp->r_sp = addr; in fasttrap_pid_probe()
1525 reg = &rp->r_rax; in fasttrap_pid_probe()
1529 reg = &rp->r_rcx; in fasttrap_pid_probe()
1533 reg = &rp->r_r8; in fasttrap_pid_probe()
1537 reg = &rp->r_r9; in fasttrap_pid_probe()
1635 rp->r_pc = pc; in fasttrap_pid_probe()
1637 fasttrap_return_common(rp, pc, pid, new_pc); in fasttrap_pid_probe()
1646 rp->r_pc = new_pc; in fasttrap_pid_probe()
1652 fasttrap_return_probe(struct regs *rp) in fasttrap_return_probe() argument
1679 rp->r_pc = pc; in fasttrap_return_probe()
1681 fasttrap_return_common(rp, pc, p->p_pid, npc); in fasttrap_return_probe()
1703 fasttrap_getreg(struct regs *rp, uint_t reg) in fasttrap_getreg() argument
1707 case REG_R15: return (rp->r_r15); in fasttrap_getreg()
1708 case REG_R14: return (rp->r_r14); in fasttrap_getreg()
1709 case REG_R13: return (rp->r_r13); in fasttrap_getreg()
1710 case REG_R12: return (rp->r_r12); in fasttrap_getreg()
1711 case REG_R11: return (rp->r_r11); in fasttrap_getreg()
1712 case REG_R10: return (rp->r_r10); in fasttrap_getreg()
1713 case REG_R9: return (rp->r_r9); in fasttrap_getreg()
1714 case REG_R8: return (rp->r_r8); in fasttrap_getreg()
1715 case REG_RDI: return (rp->r_rdi); in fasttrap_getreg()
1716 case REG_RSI: return (rp->r_rsi); in fasttrap_getreg()
1717 case REG_RBP: return (rp->r_rbp); in fasttrap_getreg()
1718 case REG_RBX: return (rp->r_rbx); in fasttrap_getreg()
1719 case REG_RDX: return (rp->r_rdx); in fasttrap_getreg()
1720 case REG_RCX: return (rp->r_rcx); in fasttrap_getreg()
1721 case REG_RAX: return (rp->r_rax); in fasttrap_getreg()
1722 case REG_TRAPNO: return (rp->r_trapno); in fasttrap_getreg()
1723 case REG_ERR: return (rp->r_err); in fasttrap_getreg()
1724 case REG_RIP: return (rp->r_rip); in fasttrap_getreg()
1725 case REG_CS: return (rp->r_cs); in fasttrap_getreg()
1726 case REG_RFL: return (rp->r_rfl); in fasttrap_getreg()
1727 case REG_RSP: return (rp->r_rsp); in fasttrap_getreg()
1728 case REG_SS: return (rp->r_ss); in fasttrap_getreg()
1729 case REG_FS: return (rp->r_fs); in fasttrap_getreg()
1730 case REG_GS: return (rp->r_gs); in fasttrap_getreg()
1731 case REG_DS: return (rp->r_ds); in fasttrap_getreg()
1732 case REG_ES: return (rp->r_es); in fasttrap_getreg()
1743 return (((greg_t *)&rp->r_gs)[reg]); in fasttrap_getreg()