Lines Matching refs:MCOUNT_INSN_SIZE

50 	char code[MCOUNT_INSN_SIZE];
67 calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); in ftrace_call_replace()
107 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code_direct()
120 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code_direct()
124 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code_direct()
130 if (probe_kernel_write((void *)ip, new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code_direct()
234 unsigned char old[MCOUNT_INSN_SIZE]; in update_ftrace_func()
237 memcpy(old, (void *)ip, MCOUNT_INSN_SIZE); in update_ftrace_func()
298 regs->ip += MCOUNT_INSN_SIZE - 1; in ftrace_int3_handler()
315 unsigned char replaced[MCOUNT_INSN_SIZE]; in add_break()
318 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in add_break()
324 if (memcmp(replaced, old, MCOUNT_INSN_SIZE) != 0) in add_break()
385 unsigned char ins[MCOUNT_INSN_SIZE]; in remove_breakpoint()
392 if (probe_kernel_read(ins, (void *)ip, MCOUNT_INSN_SIZE)) in remove_breakpoint()
405 if (memcmp(&ins[1], &nop[1], MCOUNT_INSN_SIZE - 1) != 0) { in remove_breakpoint()
415 if (memcmp(&ins[1], &nop[1], MCOUNT_INSN_SIZE - 1) == 0) in remove_breakpoint()
424 if (memcmp(&ins[1], &nop[1], MCOUNT_INSN_SIZE - 1) != 0) in remove_breakpoint()
437 return ftrace_write(ip, new, MCOUNT_INSN_SIZE - 1); in add_update_code()
674 calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); in ftrace_jmp_replace()
770 trampoline = alloc_tramp(size + MCOUNT_INSN_SIZE + sizeof(void *)); in create_trampoline()
774 *tramp_size = size + MCOUNT_INSN_SIZE + sizeof(void *); in create_trampoline()
787 memcpy(trampoline + size, jmp, MCOUNT_INSN_SIZE); in create_trampoline()
797 ptr = (unsigned long *)(trampoline + size + MCOUNT_INSN_SIZE); in create_trampoline()
886 ret = probe_kernel_read(&calc, ptr, MCOUNT_INSN_SIZE); in addr_from_call()
896 return ptr + MCOUNT_INSN_SIZE + calc.offset; in addr_from_call()