Home
last modified time | relevance | path

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

/Linux-v5.10/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()
/Linux-v5.10/arch/riscv/kernel/
Dftrace.c27 static int ftrace_check_current_call(unsigned long hook_pos, in ftrace_check_current_call() argument
41 if (copy_from_kernel_nofault(replaced, (void *)hook_pos, in ftrace_check_current_call()
51 (void *)hook_pos, expected[0], expected[1], replaced[0], in ftrace_check_current_call()
59 static int __ftrace_modify_call(unsigned long hook_pos, unsigned long target, in __ftrace_modify_call() argument
65 make_call(hook_pos, target, call); in __ftrace_modify_call()
69 ((void *)hook_pos, enable ? call : nops, MCOUNT_INSN_SIZE)) in __ftrace_modify_call()