Lines Matching refs:MCOUNT_INSN_SIZE
22 ftrace_orig_code[MCOUNT_INSN_SIZE] = {
41 static unsigned char ftrace_nop_code[MCOUNT_INSN_SIZE] = {
60 ftrace_call_code[MCOUNT_INSN_SIZE] = {
97 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code()
113 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
117 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code()
122 if (probe_kernel_write(((void *)ip), new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
124 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code()
131 unsigned char __attribute__((aligned(8))) replaced[MCOUNT_INSN_SIZE]; in ftrace_make_nop_check()
134 if (probe_kernel_read(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_make_nop_check()
145 if (memcmp(replaced, ftrace_call_code, MCOUNT_INSN_SIZE) != 0) in ftrace_make_nop_check()
155 if (memcmp(replaced, ftrace_orig_code, MCOUNT_INSN_SIZE) != 0) in ftrace_make_nop_check()