Home
last modified time | relevance | path

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

/linux-6.15/arch/x86/kernel/kprobes/
H A Dopt.c195 regs->ip = (unsigned long)op->kp.addr + INT3_INSN_SIZE; in optimized_callback()
331 if (insn_jump_into_range(&insn, paddr + INT3_INSN_SIZE, in can_optimize()
485 memcpy(op->optinsn.copied_insn, op->kp.addr + INT3_INSN_SIZE, in arch_optimize_kprobes()
511 memcpy(new + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
513 JMP32_INSN_SIZE - INT3_INSN_SIZE); in arch_unoptimize_kprobe()
515 text_poke(addr, new, INT3_INSN_SIZE); in arch_unoptimize_kprobe()
517 text_poke(addr + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
518 new + INT3_INSN_SIZE, in arch_unoptimize_kprobe()
519 JMP32_INSN_SIZE - INT3_INSN_SIZE); in arch_unoptimize_kprobe()
H A Dcore.c474 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE) in prepare_singlestep()
478 len += INT3_INSN_SIZE; in prepare_singlestep()
520 regs->ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_ifmodifiers()
532 unsigned long func = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_call()
541 unsigned long ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_jmp()
550 unsigned long ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_jcc()
558 unsigned long ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_loop()
617 int3_emulate_push(regs, regs->ip - INT3_INSN_SIZE + p->ainsn.size); in kprobe_emulate_call_indirect()
948 regs->ip += (orig_ip - copy_ip) - INT3_INSN_SIZE; in resume_singlestep()
H A Dftrace.c43 instruction_pointer_set(regs, ip + INT3_INSN_SIZE); in kprobe_ftrace_handler()
/linux-6.15/arch/x86/include/asm/
H A Dtext-patching.h47 #define INT3_INSN_SIZE 1 macro
168 int3_emulate_push(regs, regs->ip - INT3_INSN_SIZE + CALL_INSN_SIZE); in int3_emulate_call()
/linux-6.15/arch/x86/kernel/
H A Dalternative.c2261 if (regs->ip - INT3_INSN_SIZE != selftest) in int3_exception_notify()
2846 ip = (void *) regs->ip - INT3_INSN_SIZE; in poke_int3_handler()
2964 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch()
2978 if (len - INT3_INSN_SIZE > 0) { in text_poke_bp_batch()
2979 memcpy(old + INT3_INSN_SIZE, in text_poke_bp_batch()
2980 text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
2981 len - INT3_INSN_SIZE); in text_poke_bp_batch()
2989 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
2990 new + INT3_INSN_SIZE, in text_poke_bp_batch()
2991 len - INT3_INSN_SIZE); in text_poke_bp_batch()
[all …]