Lines Matching refs:calc
63 static union ftrace_code_union calc; in ftrace_call_replace() local
65 calc.e8 = 0xe8; in ftrace_call_replace()
66 calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); in ftrace_call_replace()
72 return calc.code; in ftrace_call_replace()
656 static union ftrace_code_union calc; in ftrace_jmp_replace() local
659 calc.e8 = 0xe9; in ftrace_jmp_replace()
660 calc.offset = ftrace_calc_offset(ip + MCOUNT_INSN_SIZE, addr); in ftrace_jmp_replace()
665 return calc.code; in ftrace_jmp_replace()
862 union ftrace_code_union calc; in addr_from_call() local
865 ret = probe_kernel_read(&calc, ptr, MCOUNT_INSN_SIZE); in addr_from_call()
870 if (WARN_ON_ONCE(calc.e8 != 0xe8)) { in addr_from_call()
871 pr_warn("Expected e8, got %x\n", calc.e8); in addr_from_call()
875 return ptr + MCOUNT_INSN_SIZE + calc.offset; in addr_from_call()