Lines Matching defs:instr
75 #define FBT_JMP_SHORT_REL 0xeb /* Jump short, relative, displacement relative to next instr. */
76 #define FBT_JMP_NEAR_REL 0xe9 /* Jump near, relative, displacement relative to next instr. */
459 machine_inst_t *instr, *limit, theInstr, i1, i2;
611 for (j = 0, instr = (machine_inst_t *)sym[i].n_value, theInstr = 0;
612 (j < 4) && ((uintptr_t)instr >= instrLow) && (instrHigh > (uintptr_t)(instr + 2));
614 theInstr = instr[0];
618 if ((size = dtrace_instr_size(instr)) <= 0)
621 instr += size;
627 i1 = instr[1];
628 i2 = instr[2];
634 instr += 1; /* Advance to the movl %esp,%ebp */
649 instr += 1; /* Advance past the pushl %ebp */
650 if ((size = dtrace_instr_size(instr)) <= 0)
653 instr += size;
655 if ((instr + 1) >= limit)
658 i1 = instr[0];
659 i2 = instr[1];
665 /* instr already points at the movl %esp,%ebp */
672 fbt->fbtp_patchpoint = instr;
679 fbt->fbtp_hashnext = fbt_probetab[FBT_ADDR2NDX(instr)];
681 fbt_probetab[FBT_ADDR2NDX(instr)] = fbt;
685 if (instr >= limit)
693 if ((size = dtrace_instr_size(instr)) <= 0)
708 uintptr_t check = (uintptr_t)instr - j;
720 instr += size;
728 theInstr = instr[0];
735 instr += size;
742 machine_inst_t *patch_instr = instr;
747 instr += size;
748 if (instr >= limit)
751 size = dtrace_instr_size(instr);
755 theInstr = instr[0];
798 instr += size;