Searched refs:hook_pos (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.4/arch/riscv/kernel/ |
| D | ftrace.c | 13 static int ftrace_check_current_call(unsigned long hook_pos, in ftrace_check_current_call() argument 27 if (probe_kernel_read(replaced, (void *)hook_pos, MCOUNT_INSN_SIZE)) in ftrace_check_current_call() 36 (void *)hook_pos, expected[0], expected[1], replaced[0], in ftrace_check_current_call() 44 static int __ftrace_modify_call(unsigned long hook_pos, unsigned long target, in __ftrace_modify_call() argument 51 make_call(hook_pos, target, call); in __ftrace_modify_call() 54 ret = probe_kernel_write((void *)hook_pos, enable ? call : nops, in __ftrace_modify_call() 61 flush_icache_range((void *)hook_pos, (void *)hook_pos + MCOUNT_INSN_SIZE); in __ftrace_modify_call()
|
| /Linux-v5.4/arch/csky/kernel/ |
| D | ftrace.c | 72 unsigned long hook_pos = hook - 2; in ftrace_check_current_nop() local 74 if (probe_kernel_read((void *)olds, (void *)hook_pos, sizeof(nops))) in ftrace_check_current_nop() 79 (void *)hook_pos, in ftrace_check_current_nop() 94 unsigned long hook_pos = hook - 2; in ftrace_modify_code() local 99 ret = probe_kernel_write((void *)hook_pos, enable ? call : nops, in ftrace_modify_code() 104 flush_icache_range(hook_pos, hook_pos + MCOUNT_INSN_SIZE); in ftrace_modify_code()
|