Lines Matching +full:resume +full:- +full:offset
1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
21 * Gcc-csky with -pg will insert stub in function prologue:
27 * If the (callee - current_pc) is less then 64MB, we'll use bsr:
38 * (r26 is our reserved link-reg)
44 long offset; in make_jbsr() local
48 offset = (long) callee - (long) pc; in make_jbsr()
50 if (unlikely(offset < -67108864 || offset > 67108864)) { in make_jbsr()
58 offset = offset >> 1; in make_jbsr()
61 ((uint16_t)((unsigned long) offset >> 16) & 0x3ff); in make_jbsr()
62 call[2] = (uint16_t)((unsigned long) offset & 0xffff); in make_jbsr()
73 unsigned long hook_pos = hook - 2; in ftrace_check_current_nop()
77 return -EFAULT; in ftrace_check_current_nop()
85 return -EINVAL; in ftrace_check_current_nop()
96 unsigned long hook_pos = hook - 2; in ftrace_modify_code()
104 return -EPERM; in ftrace_modify_code()
113 int ret = ftrace_check_current_nop(rec->ip); in ftrace_make_call()
118 return ftrace_modify_code(rec->ip, addr, true, false); in ftrace_make_call()
124 return ftrace_modify_code(rec->ip, addr, false, false); in ftrace_make_nop()
142 return ftrace_modify_code(rec->ip, addr, true, true); in ftrace_modify_call()
153 if (unlikely(atomic_read(¤t->tracing_graph_pause))) in prepare_ftrace_return()
161 * For csky-gcc function has sub-call: in prepare_ftrace_return()
168 * We only need set *parent for resume in prepare_ftrace_return()
170 * For csky-gcc function has no sub-call: in prepare_ftrace_return()
176 * We need set *parent and *(frame_pointer + 4) for resume, in prepare_ftrace_return()
212 if (atomic_inc_return(¶m->cpu_count) == 1) { in __ftrace_modify_code()
213 ftrace_modify_all_code(param->command); in __ftrace_modify_code()
214 atomic_inc(¶m->cpu_count); in __ftrace_modify_code()
216 while (atomic_read(¶m->cpu_count) <= num_online_cpus()) in __ftrace_modify_code()