Home
last modified time | relevance | path

Searched refs:hook_pos (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/csky/kernel/
H A Dftrace.c73 unsigned long hook_pos = hook - 2; in ftrace_check_current_nop() local
75 if (copy_from_kernel_nofault((void *)olds, (void *)hook_pos, in ftrace_check_current_nop()
81 (void *)hook_pos, in ftrace_check_current_nop()
96 unsigned long hook_pos = hook - 2; in ftrace_modify_code() local
101 ret = copy_to_kernel_nofault((void *)hook_pos, enable ? call : nops, in ftrace_modify_code()
106 flush_icache_range(hook_pos, hook_pos + MCOUNT_INSN_SIZE); in ftrace_modify_code()
/openbmc/linux/arch/riscv/kernel/
H A Dftrace.c35 static int ftrace_check_current_call(unsigned long hook_pos, in ftrace_check_current_call() argument
49 if (copy_from_kernel_nofault(replaced, (void *)hook_pos, in ftrace_check_current_call()
59 (void *)hook_pos, expected[0], expected[1], replaced[0], in ftrace_check_current_call()
67 static int __ftrace_modify_call(unsigned long hook_pos, unsigned long target, in __ftrace_modify_call() argument
74 make_call_ra(hook_pos, target, call); in __ftrace_modify_call()
76 make_call_t0(hook_pos, target, call); in __ftrace_modify_call()
79 if (patch_insn_write((void *)hook_pos, enable ? call : nops, MCOUNT_INSN_SIZE)) in __ftrace_modify_call()