Home
last modified time | relevance | path

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

/Linux-v6.6/arch/riscv/kernel/
Dftrace.c34 static int ftrace_check_current_call(unsigned long hook_pos, in ftrace_check_current_call() argument
48 if (copy_from_kernel_nofault(replaced, (void *)hook_pos, in ftrace_check_current_call()
58 (void *)hook_pos, expected[0], expected[1], replaced[0], in ftrace_check_current_call()
66 static int __ftrace_modify_call(unsigned long hook_pos, unsigned long target, in __ftrace_modify_call() argument
73 make_call_ra(hook_pos, target, call); in __ftrace_modify_call()
75 make_call_t0(hook_pos, target, call); in __ftrace_modify_call()
79 ((void *)hook_pos, enable ? call : nops, MCOUNT_INSN_SIZE)) in __ftrace_modify_call()
/Linux-v6.6/arch/csky/kernel/
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()