Home
last modified time | relevance | path

Searched refs:INT3_INSN_SIZE (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/arch/x86/kernel/kprobes/
Dopt.c187 regs->ip = (unsigned long)op->kp.addr + INT3_INSN_SIZE; in optimized_callback()
344 insn_jump_into_range(&insn, paddr + INT3_INSN_SIZE, in can_optimize()
498 memcpy(op->optinsn.copied_insn, op->kp.addr + INT3_INSN_SIZE, in arch_optimize_kprobes()
524 memcpy(new + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
526 JMP32_INSN_SIZE - INT3_INSN_SIZE); in arch_unoptimize_kprobe()
528 text_poke(addr, new, INT3_INSN_SIZE); in arch_unoptimize_kprobe()
530 text_poke(addr + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
531 new + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
532 JMP32_INSN_SIZE - INT3_INSN_SIZE); in arch_unoptimize_kprobe()
Dcore.c390 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE) in prepare_singlestep()
394 len += INT3_INSN_SIZE; in prepare_singlestep()
443 regs->ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_ifmodifiers()
455 unsigned long func = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_call()
465 unsigned long ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in __kprobe_emulate_jmp()
898 regs->ip += (orig_ip - copy_ip) - INT3_INSN_SIZE; in resume_singlestep()
/Linux-v5.15/arch/x86/kernel/
Dalternative.c559 if (regs->ip - INT3_INSN_SIZE != int3_selftest_ip) in int3_exception_notify()
1008 ip = (void *) regs->ip - INT3_INSN_SIZE; in poke_int3_handler()
1111 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch()
1123 if (len - INT3_INSN_SIZE > 0) { in text_poke_bp_batch()
1124 memcpy(old + INT3_INSN_SIZE, in text_poke_bp_batch()
1125 text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1126 len - INT3_INSN_SIZE); in text_poke_bp_batch()
1127 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1128 (const char *)tp[i].text + INT3_INSN_SIZE, in text_poke_bp_batch()
1129 len - INT3_INSN_SIZE); in text_poke_bp_batch()
[all …]
/Linux-v5.15/arch/x86/include/asm/
Dtext-patching.h53 #define INT3_INSN_SIZE 1 macro
158 int3_emulate_push(regs, regs->ip - INT3_INSN_SIZE + CALL_INSN_SIZE); in int3_emulate_call()