Lines Matching refs:rp

186 fasttrap_anarg(struct regs *rp, int function_entry, int argno)  in fasttrap_anarg()  argument
199 return ((&rp->r_rdi)[argno]); in fasttrap_anarg()
201 stack = (uintptr_t *)rp->r_sp; in fasttrap_anarg()
206 uint32_t *stack = (uint32_t *)rp->r_sp; in fasttrap_anarg()
637 fasttrap_return_common(struct regs *rp, uintptr_t pc, pid_t pid, in fasttrap_return_common() argument
679 rp->r_r0, rp->r_r1, 0, 0); in fasttrap_return_common()
703 fasttrap_usdt_args64(fasttrap_probe_t *probe, struct regs *rp, int argc, in fasttrap_usdt_args64() argument
707 uintptr_t *stack = (uintptr_t *)rp->r_sp; in fasttrap_usdt_args64()
713 argv[i] = (&rp->r_rdi)[x]; in fasttrap_usdt_args64()
724 fasttrap_usdt_args32(fasttrap_probe_t *probe, struct regs *rp, int argc, in fasttrap_usdt_args32() argument
728 uint32_t *stack = (uint32_t *)rp->r_sp; in fasttrap_usdt_args32()
742 fasttrap_do_seg(fasttrap_tracepoint_t *tp, struct regs *rp, uintptr_t *addr) in fasttrap_do_seg() argument
751 sel = rp->r_cs; in fasttrap_do_seg()
754 sel = rp->r_ds; in fasttrap_do_seg()
757 sel = rp->r_es; in fasttrap_do_seg()
760 sel = rp->r_fs; in fasttrap_do_seg()
763 sel = rp->r_gs; in fasttrap_do_seg()
766 sel = rp->r_ss; in fasttrap_do_seg()
855 fasttrap_pid_probe(struct regs *rp) in fasttrap_pid_probe() argument
858 uintptr_t pc = rp->r_pc - 1, new_pc = 0; in fasttrap_pid_probe()
925 rp->r_pc = pc; in fasttrap_pid_probe()
942 dtrace_probe(probe->ftp_id, rp->r_rdi, in fasttrap_pid_probe()
943 rp->r_rsi, rp->r_rdx, rp->r_rcx, in fasttrap_pid_probe()
944 rp->r_r8); in fasttrap_pid_probe()
957 dtrace_probe(probe->ftp_id, rp->r_rdi, in fasttrap_pid_probe()
958 rp->r_rsi, rp->r_rdx, rp->r_rcx, in fasttrap_pid_probe()
959 rp->r_r8); in fasttrap_pid_probe()
963 fasttrap_usdt_args64(probe, rp, in fasttrap_pid_probe()
972 uint32_t *stack = (uint32_t *)rp->r_sp; in fasttrap_pid_probe()
1018 fasttrap_usdt_args32(probe, rp, in fasttrap_pid_probe()
1042 rp->r_pc = pc + tp->ftt_size; in fasttrap_pid_probe()
1056 rp->r_r0 = 1; in fasttrap_pid_probe()
1057 new_pc = rp->r_pc; in fasttrap_pid_probe()
1081 ret = fasttrap_fulword((void *)rp->r_sp, &dst); in fasttrap_pid_probe()
1082 addr = rp->r_sp + sizeof (uintptr_t); in fasttrap_pid_probe()
1085 ret = fasttrap_fuword32((void *)rp->r_sp, &dst32); in fasttrap_pid_probe()
1087 addr = rp->r_sp + sizeof (uint32_t); in fasttrap_pid_probe()
1091 fasttrap_sigsegv(p, curthread, rp->r_sp); in fasttrap_pid_probe()
1099 rp->r_sp = addr; in fasttrap_pid_probe()
1110 taken = (rp->r_ps & FASTTRAP_EFLAGS_OF) != 0; in fasttrap_pid_probe()
1113 taken = (rp->r_ps & FASTTRAP_EFLAGS_OF) == 0; in fasttrap_pid_probe()
1116 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) != 0; in fasttrap_pid_probe()
1119 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) == 0; in fasttrap_pid_probe()
1122 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0; in fasttrap_pid_probe()
1125 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0; in fasttrap_pid_probe()
1128 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) != 0 || in fasttrap_pid_probe()
1129 (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0; in fasttrap_pid_probe()
1132 taken = (rp->r_ps & FASTTRAP_EFLAGS_CF) == 0 && in fasttrap_pid_probe()
1133 (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0; in fasttrap_pid_probe()
1136 taken = (rp->r_ps & FASTTRAP_EFLAGS_SF) != 0; in fasttrap_pid_probe()
1139 taken = (rp->r_ps & FASTTRAP_EFLAGS_SF) == 0; in fasttrap_pid_probe()
1142 taken = (rp->r_ps & FASTTRAP_EFLAGS_PF) != 0; in fasttrap_pid_probe()
1145 taken = (rp->r_ps & FASTTRAP_EFLAGS_PF) == 0; in fasttrap_pid_probe()
1148 taken = ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) != in fasttrap_pid_probe()
1149 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1152 taken = ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) == in fasttrap_pid_probe()
1153 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1156 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0 || in fasttrap_pid_probe()
1157 ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) != in fasttrap_pid_probe()
1158 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1161 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0 && in fasttrap_pid_probe()
1162 ((rp->r_ps & FASTTRAP_EFLAGS_SF) == 0) == in fasttrap_pid_probe()
1163 ((rp->r_ps & FASTTRAP_EFLAGS_OF) == 0); in fasttrap_pid_probe()
1178 greg_t cx = rp->r_rcx--; in fasttrap_pid_probe()
1182 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) == 0 && in fasttrap_pid_probe()
1186 taken = (rp->r_ps & FASTTRAP_EFLAGS_ZF) != 0 && in fasttrap_pid_probe()
1203 greg_t cx = rp->r_rcx; in fasttrap_pid_probe()
1217 addr = rp->r_sp - sizeof (uintptr_t); in fasttrap_pid_probe()
1218 ret = fasttrap_sulword((void *)addr, rp->r_fp); in fasttrap_pid_probe()
1220 addr = rp->r_sp - sizeof (uint32_t); in fasttrap_pid_probe()
1222 (uint32_t)rp->r_fp); in fasttrap_pid_probe()
1231 rp->r_sp = addr; in fasttrap_pid_probe()
1248 addr += fasttrap_getreg(rp, tp->ftt_base); in fasttrap_pid_probe()
1250 addr += fasttrap_getreg(rp, tp->ftt_index) << in fasttrap_pid_probe()
1261 fasttrap_do_seg(tp, rp, &addr) != 0) { in fasttrap_pid_probe()
1303 addr = rp->r_sp - sizeof (uintptr_t); in fasttrap_pid_probe()
1307 addr = rp->r_sp - sizeof (uint32_t); in fasttrap_pid_probe()
1318 rp->r_sp = addr; in fasttrap_pid_probe()
1461 reg = &rp->r_rax; in fasttrap_pid_probe()
1465 reg = &rp->r_rcx; in fasttrap_pid_probe()
1469 reg = &rp->r_r8; in fasttrap_pid_probe()
1473 reg = &rp->r_r9; in fasttrap_pid_probe()
1566 rp->r_pc = pc; in fasttrap_pid_probe()
1568 fasttrap_return_common(rp, pc, pid, new_pc); in fasttrap_pid_probe()
1577 rp->r_pc = new_pc; in fasttrap_pid_probe()
1583 fasttrap_return_probe(struct regs *rp) in fasttrap_return_probe() argument
1610 rp->r_pc = pc; in fasttrap_return_probe()
1612 fasttrap_return_common(rp, pc, p->p_pid, npc); in fasttrap_return_probe()
1634 fasttrap_getreg(struct regs *rp, uint_t reg) in fasttrap_getreg() argument
1637 case REG_R15: return (rp->r_r15); in fasttrap_getreg()
1638 case REG_R14: return (rp->r_r14); in fasttrap_getreg()
1639 case REG_R13: return (rp->r_r13); in fasttrap_getreg()
1640 case REG_R12: return (rp->r_r12); in fasttrap_getreg()
1641 case REG_R11: return (rp->r_r11); in fasttrap_getreg()
1642 case REG_R10: return (rp->r_r10); in fasttrap_getreg()
1643 case REG_R9: return (rp->r_r9); in fasttrap_getreg()
1644 case REG_R8: return (rp->r_r8); in fasttrap_getreg()
1645 case REG_RDI: return (rp->r_rdi); in fasttrap_getreg()
1646 case REG_RSI: return (rp->r_rsi); in fasttrap_getreg()
1647 case REG_RBP: return (rp->r_rbp); in fasttrap_getreg()
1648 case REG_RBX: return (rp->r_rbx); in fasttrap_getreg()
1649 case REG_RDX: return (rp->r_rdx); in fasttrap_getreg()
1650 case REG_RCX: return (rp->r_rcx); in fasttrap_getreg()
1651 case REG_RAX: return (rp->r_rax); in fasttrap_getreg()
1652 case REG_TRAPNO: return (rp->r_trapno); in fasttrap_getreg()
1653 case REG_ERR: return (rp->r_err); in fasttrap_getreg()
1654 case REG_RIP: return (rp->r_rip); in fasttrap_getreg()
1655 case REG_CS: return (rp->r_cs); in fasttrap_getreg()
1656 case REG_RFL: return (rp->r_rfl); in fasttrap_getreg()
1657 case REG_RSP: return (rp->r_rsp); in fasttrap_getreg()
1658 case REG_SS: return (rp->r_ss); in fasttrap_getreg()
1659 case REG_FS: return (rp->r_fs); in fasttrap_getreg()
1660 case REG_GS: return (rp->r_gs); in fasttrap_getreg()
1661 case REG_DS: return (rp->r_ds); in fasttrap_getreg()
1662 case REG_ES: return (rp->r_es); in fasttrap_getreg()