Lines Matching refs:tramp
128 unsigned long entry, ptr, tramp; in __ftrace_make_nop() local
145 tramp = find_bl_target(ip, op); in __ftrace_make_nop()
147 pr_devel("ip:%lx jumps to %lx", ip, tramp); in __ftrace_make_nop()
149 if (module_trampoline_target(mod, tramp, &ptr)) { in __ftrace_make_nop()
227 unsigned long tramp; in __ftrace_make_nop() local
239 tramp = find_bl_target(ip, op); in __ftrace_make_nop()
249 pr_devel("ip:%lx jumps to %lx", ip, tramp); in __ftrace_make_nop()
252 if (copy_from_kernel_nofault(jmp, (void *)tramp, sizeof(jmp))) { in __ftrace_make_nop()
253 pr_err("Failed to read %lx\n", tramp); in __ftrace_make_nop()
268 tramp = (jmp[1] & 0xffff) | in __ftrace_make_nop()
270 if (tramp & 0x8000) in __ftrace_make_nop()
271 tramp -= 0x10000; in __ftrace_make_nop()
273 pr_devel(" %lx ", tramp); in __ftrace_make_nop()
275 if (tramp != addr) { in __ftrace_make_nop()
277 tramp); in __ftrace_make_nop()
310 static int add_ftrace_tramp(unsigned long tramp) in add_ftrace_tramp() argument
316 ftrace_tramps[i] = tramp; in add_ftrace_tramp()
329 static int setup_mcount_compiler_tramp(unsigned long tramp) in setup_mcount_compiler_tramp() argument
341 else if (ftrace_tramps[i] == tramp) in setup_mcount_compiler_tramp()
348 else if (ftrace_plt_tramps[i] == tramp) in setup_mcount_compiler_tramp()
352 if (copy_inst_from_kernel_nofault(&op, (void *)tramp)) { in setup_mcount_compiler_tramp()
364 ptr = find_bl_target(tramp, op); in setup_mcount_compiler_tramp()
377 if (create_branch(&instr, (void *)tramp, ptr, 0)) { in setup_mcount_compiler_tramp()
383 if (patch_branch((u32 *)tramp, ptr, 0)) { in setup_mcount_compiler_tramp()
388 if (add_ftrace_tramp(tramp)) { in setup_mcount_compiler_tramp()
398 unsigned long tramp, ip = rec->ip; in __ftrace_make_nop_kernel() local
414 tramp = find_bl_target(ip, op); in __ftrace_make_nop_kernel()
416 pr_devel("ip:%lx jumps to %lx", ip, tramp); in __ftrace_make_nop_kernel()
418 if (setup_mcount_compiler_tramp(tramp)) { in __ftrace_make_nop_kernel()
525 unsigned long entry, ptr, tramp; local
543 if (!mod->arch.tramp || !mod->arch.tramp_regs) {
545 if (!mod->arch.tramp) {
553 tramp = mod->arch.tramp_regs;
556 tramp = mod->arch.tramp;
558 if (module_trampoline_target(mod, tramp, &ptr)) {
573 if (create_branch(&instr, ip, tramp, BRANCH_SET_LINK)) {
578 if (patch_branch(ip, tramp, BRANCH_SET_LINK)) {
605 if (!rec->arch.mod->arch.tramp) {
611 err = create_branch(&op, ip, rec->arch.mod->arch.tramp, BRANCH_SET_LINK);
631 unsigned long tramp, entry, ptr; local
660 tramp = find_ftrace_tramp((unsigned long)ip);
661 if (!tramp) {
666 if (patch_branch(ip, tramp, BRANCH_SET_LINK)) {
718 unsigned long entry, ptr, tramp; local
722 if (!mod->arch.tramp || !mod->arch.tramp_regs) {
740 tramp = find_bl_target(ip, op);
743 pr_devel("ip:%lx jumps to %lx", ip, tramp);
745 if (tramp != entry) {
747 if (module_trampoline_target(mod, tramp, &ptr)) {
773 tramp = mod->arch.tramp_regs;
775 tramp = mod->arch.tramp;
777 if (module_trampoline_target(mod, tramp, &ptr)) {
792 if (create_branch(&op, (u32 *)ip, tramp, BRANCH_SET_LINK)) {
797 if (patch_branch((u32 *)ip, tramp, BRANCH_SET_LINK)) {
887 unsigned int *tramp[] = { ftrace_tramp_text, ftrace_tramp_init }; local
909 memcpy(tramp[i], stub_insns, sizeof(stub_insns));
910 tramp[i][1] |= PPC_HA(reladdr);
911 tramp[i][2] |= PPC_LO(reladdr);
912 add_ftrace_tramp((unsigned long)tramp[i]);