Searched refs:INT3_INSN_SIZE (Results 1 – 5 of 5) sorted by relevance
| /linux/arch/x86/kernel/kprobes/ |
| H A D | opt.c | 191 regs->ip = (unsigned long)op->kp.addr + INT3_INSN_SIZE; in optimized_callback() 327 if (insn_jump_into_range(&insn, paddr + INT3_INSN_SIZE, in can_optimize() 481 memcpy(op->optinsn.copied_insn, op->kp.addr + INT3_INSN_SIZE, in arch_optimize_kprobes() 507 memcpy(new + INT3_INSN_SIZE, in arch_unoptimize_kprobe() 509 JMP32_INSN_SIZE - INT3_INSN_SIZE); in arch_unoptimize_kprobe() 511 text_poke(addr, new, INT3_INSN_SIZE); in arch_unoptimize_kprobe() 513 text_poke(addr + INT3_INSN_SIZE, in arch_unoptimize_kprobe() 514 new + INT3_INSN_SIZE, in arch_unoptimize_kprobe() 515 JMP32_INSN_SIZE - INT3_INSN_SIZE); in arch_unoptimize_kprobe()
|
| H A D | core.c | 473 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE) in prepare_singlestep() 477 len += INT3_INSN_SIZE; in prepare_singlestep() 501 regs->ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_ifmodifiers() 513 unsigned long func = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_call() 522 unsigned long ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_jmp() 531 unsigned long ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_jcc() 539 unsigned long ip = regs->ip - INT3_INSN_SIZE + p->ainsn.size; in kprobe_emulate_loop() 598 int3_emulate_push(regs, regs->ip - INT3_INSN_SIZE + p->ainsn.size); in kprobe_emulate_call_indirect() 929 regs->ip += (orig_ip - copy_ip) - INT3_INSN_SIZE; in resume_singlestep()
|
| H A D | ftrace.c | 43 instruction_pointer_set(regs, ip + INT3_INSN_SIZE); in kprobe_ftrace_handler()
|
| /linux/arch/x86/include/asm/ |
| H A D | text-patching.h | 47 #define INT3_INSN_SIZE 1 macro 169 int3_emulate_push(regs, regs->ip - INT3_INSN_SIZE + CALL_INSN_SIZE); in int3_emulate_call()
|
| /linux/arch/x86/kernel/ |
| H A D | alternative.c | 2324 if (regs->ip - INT3_INSN_SIZE != selftest) in int3_exception_notify() 2851 ip = (void *) regs->ip - INT3_INSN_SIZE; in smp_text_poke_int3_handler() 2968 text_poke(text_poke_addr(&text_poke_array.vec[i]), &int3, INT3_INSN_SIZE); in smp_text_poke_batch_finish() 2982 if (len - INT3_INSN_SIZE > 0) { in smp_text_poke_batch_finish() 2983 memcpy(old + INT3_INSN_SIZE, in smp_text_poke_batch_finish() 2984 text_poke_addr(&text_poke_array.vec[i]) + INT3_INSN_SIZE, in smp_text_poke_batch_finish() 2985 len - INT3_INSN_SIZE); in smp_text_poke_batch_finish() 2993 text_poke(text_poke_addr(&text_poke_array.vec[i]) + INT3_INSN_SIZE, in smp_text_poke_batch_finish() 2994 new + INT3_INSN_SIZE, in smp_text_poke_batch_finish() 2995 len - INT3_INSN_SIZE); in smp_text_poke_batch_finish() [all …]
|