Lines Matching refs:opcode

142 	kprobe_opcode_t opcode;  in can_boost()  local
150 if (insn->opcode.nbytes == 2) in can_boost()
151 return test_bit(insn->opcode.bytes[1], in can_boost()
154 if (insn->opcode.nbytes != 1) in can_boost()
166 opcode = insn->opcode.bytes[0]; in can_boost()
168 switch (opcode) { in can_boost()
245 buf[0] = kp->opcode; in __recover_probed_insn()
270 if (insn->opcode.bytes[0] == 0x0f) { in is_exception_insn()
272 return insn->opcode.bytes[1] == 0xff || in is_exception_insn()
273 insn->opcode.bytes[1] == 0xb9 || in is_exception_insn()
274 insn->opcode.bytes[1] == 0x0b; in is_exception_insn()
278 return insn->opcode.bytes[0] == 0xcc || in is_exception_insn()
279 insn->opcode.bytes[0] == 0xcd || in is_exception_insn()
280 insn->opcode.bytes[0] == 0xce || in is_exception_insn()
281 insn->opcode.bytes[0] == 0xf1; in is_exception_insn()
320 if (insn.opcode.bytes[0] == INT3_INSN_OPCODE && in can_probe()
356 if (insn.opcode.value == 0xBA) in can_probe()
358 else if (insn.opcode.value == 0x3) in can_probe()
418 if (insn->opcode.bytes[0] == INT3_INSN_OPCODE) in __copy_instruction()
488 switch (p->ainsn.opcode) { in kprobe_emulate_ifmodifiers()
614 insn_byte_t opcode = insn->opcode.bytes[0]; in prepare_emulation() local
616 switch (opcode) { in prepare_emulation()
626 p->ainsn.opcode = opcode; in prepare_emulation()
660 p->ainsn.jcc.type = opcode & 0xf; in prepare_emulation()
664 opcode = insn->opcode.bytes[1]; in prepare_emulation()
665 if ((opcode & 0xf0) == 0x80) { in prepare_emulation()
668 p->ainsn.jcc.type = opcode & 0xf; in prepare_emulation()
673 } else if (opcode == 0x01 && in prepare_emulation()
685 p->ainsn.loop.type = opcode & 0x3; in prepare_emulation()
694 opcode = insn->modrm.bytes[0]; in prepare_emulation()
695 switch (X86_MODRM_REG(opcode)) { in prepare_emulation()
712 if (X86_MODRM_MOD(opcode) != 3) in prepare_emulation()
715 p->ainsn.indirect.reg = X86_MODRM_RM(opcode); in prepare_emulation()
751 p->opcode = buf[0]; in arch_copy_kprobe()
794 perf_event_text_poke(p->addr, &p->opcode, 1, &int3, 1); in arch_arm_kprobe()
801 perf_event_text_poke(p->addr, &int3, 1, &p->opcode, 1); in arch_disarm_kprobe()
802 text_poke(p->addr, &p->opcode, 1); in arch_disarm_kprobe()