/linux/arch/powerpc/kernel/ |
H A D | optprobes.c | 129 patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HI(val)))); in patch_imm32_load_insns() 130 patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val)))); in patch_imm32_load_insns() 139 patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HIGHEST(val)))); in patch_imm64_load_insns() 140 patch_instruction(addr++, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_HIGHER(val)))); in patch_imm64_load_insns() 141 patch_instruction(addr++, ppc_inst(PPC_RAW_SLDI(reg, reg, 32))); in patch_imm64_load_insns() 142 patch_instruction(addr++, ppc_inst(PPC_RAW_ORIS(reg, reg, PPC_HI(val)))); in patch_imm64_load_insns() 143 patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val)))); in patch_imm64_load_insns() 195 rc = patch_instruction(buff + i, ppc_inst(*(optprobe_template_entry + i))); in arch_prepare_optimized_kprobe() 225 patch_instruction(buff + TMPL_CALL_HDLR_IDX, branch_op_callback); in arch_prepare_optimized_kprobe() 226 patch_instruction(buf in arch_prepare_optimized_kprobe() [all...] |
H A D | module_32.c | 177 if (patch_instruction(&entry->jump[0], ppc_inst(PPC_RAW_LIS(_R12, PPC_HA(val))))) in do_plt_call() 179 if (patch_instruction(&entry->jump[1], ppc_inst(PPC_RAW_ADDI(_R12, _R12, PPC_LO(val))))) in do_plt_call() 181 if (patch_instruction(&entry->jump[2], ppc_inst(PPC_RAW_MTCTR(_R12)))) in do_plt_call() 183 if (patch_instruction(&entry->jump[3], ppc_inst(PPC_RAW_BCTR()))) in do_plt_call() 193 return patch_instruction(loc, ppc_inst((*loc & 0xffff0000) | value)); in patch_location_16() 261 if (patch_instruction(location, ppc_inst(value))) in apply_relocate_add()
|
H A D | epapr_paravirt.c | 41 patch_instruction(epapr_hypercall_start + i, inst); in early_init_dt_scan_epapr() 43 patch_instruction(epapr_ev_idle_start + i, inst); in early_init_dt_scan_epapr()
|
H A D | module_64.c | 640 if (patch_instruction(&entry->jump[i], in create_stub() 657 if (patch_instruction(&entry->jump[0], in create_stub() 672 if (patch_instruction(&entry->jump[0], in create_stub() 676 if (patch_instruction(&entry->jump[1], in create_stub() 790 return patch_instruction(instruction, ppc_inst(PPC_INST_LD_TOC)); in restore_r2() 938 if (patch_instruction((u32 *)location, ppc_inst(value))) in apply_relocate_add() 986 if (patch_instruction((u32 *)location, in apply_relocate_add() 992 if (patch_instruction((u32 *)location, in apply_relocate_add()
|
H A D | jump_label.c | 19 patch_instruction(addr, ppc_inst(PPC_RAW_NOP())); in arch_jump_label_transform()
|
H A D | crash_dump.c | 49 patch_instruction(p, ppc_inst(PPC_RAW_NOP())); in create_trampoline()
|
H A D | setup_32.c | 92 patch_instruction(addr, insn); /* replace b by bne cr0 */ in machine_init()
|
/linux/arch/powerpc/include/asm/ |
H A D | text-patching.h | 75 int patch_instruction(u32 *addr, ppc_inst_t instr); 83 * The instruction patching functions patch_instruction() and similar must be 101 return patch_instruction(addr, ppc_inst(val)); in patch_uint() 109 return patch_instruction(addr, ppc_inst(val)); in patch_ulong() 123 return patch_instruction((u32 *)patch_site_addr(site), instr); in patch_instruction_site() 134 return patch_instruction(addr, ppc_inst((*addr & ~clr) | set)); in modify_instruction()
|
/linux/arch/powerpc/lib/ |
H A D | code-patching.c | 358 * During early early boot patch_instruction is called in patch_mem() 378 int patch_instruction(u32 *addr, ppc_inst_t instr) in patch_instruction() function 385 NOKPROBE_SYMBOL(patch_instruction); 407 int patch_instruction(u32 *addr, ppc_inst_t instr) in patch_instruction() function 411 NOKPROBE_SYMBOL(patch_instruction) in NOKPROBE_SYMBOL() argument 585 return patch_instruction(addr, instr); in patch_branch()
|
H A D | test-code-patching.c | 121 patch_instruction(iptr, instr); in test_create_function_call() 345 patch_instruction(iptr, inst); in test_prefixed_patching()
|
/linux/arch/powerpc/platforms/86xx/ |
H A D | mpc86xx_smp.c | 86 patch_instruction(vector, ppc_inst(save_vector)); in smp_86xx_kick_cpu()
|
/linux/arch/powerpc/kernel/trace/ |
H A D | ftrace_64_pg.c | 83 return patch_instruction((u32 *)ip, new); in ftrace_modify_code() 226 if (patch_instruction((u32 *)ip, pop)) { in __ftrace_make_nop() 357 if (patch_instruction((u32 *)ip, ppc_inst(PPC_RAW_NOP()))) { in __ftrace_make_nop_kernel()
|
H A D | ftrace.c | 90 ret = patch_instruction((u32 *)ip, new); in ftrace_modify_code() 518 ret = patch_instruction((u32 *)ip, new); in ftrace_init_nop()
|
/linux/arch/powerpc/xmon/ |
H A D | xmon.c | 938 patch_instruction(bp->instr, instr); in insert_bpts() 939 patch_instruction(ppc_inst_next(bp->instr, bp->instr), in insert_bpts() 943 if (patch_instruction((u32 *)bp->address, in insert_bpts() 984 && patch_instruction( in remove_bpts()
|