Home
last modified time | relevance | path

Searched refs:patch_instruction (Results 1 – 20 of 20) sorted by relevance

/openbmc/linux/arch/powerpc/kernel/
H A Doptprobes.c129 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(buff + TMPL_EMULATE_IDX, branch_emulate_step); in arch_prepare_optimized_kprobe()
[all …]
H A Dstatic_call.c20 err = patch_instruction(tramp + PPC_SCT_DATA, ppc_inst(target)); in arch_static_call_transform()
26 err = patch_instruction(tramp, ppc_inst(PPC_RAW_BLR())); in arch_static_call_transform()
30 err = patch_instruction(tramp, ppc_inst(PPC_RAW_NOP())); in arch_static_call_transform()
H A Dmodule_32.c177 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 Depapr_paravirt.c41 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 Dmodule_64.c610 if (patch_instruction(&entry->jump[i], in create_stub()
627 if (patch_instruction(&entry->jump[0], in create_stub()
642 if (patch_instruction(&entry->jump[0], in create_stub()
646 if (patch_instruction(&entry->jump[1], in create_stub()
654 if (patch_instruction(((u32 *)&entry->funcdata) + i, in create_stub()
659 if (patch_instruction(&entry->magic, ppc_inst(STUB_MAGIC))) in create_stub()
761 return patch_instruction(instruction, ppc_inst(PPC_INST_LD_TOC)); in restore_r2()
909 if (patch_instruction((u32 *)location, ppc_inst(value))) in apply_relocate_add()
957 if (patch_instruction((u32 *)location, in apply_relocate_add()
963 if (patch_instruction((u32 *)location, in apply_relocate_add()
H A Djump_label.c19 patch_instruction(addr, ppc_inst(PPC_RAW_NOP())); in arch_jump_label_transform()
H A Dkprobes.c181 patch_instruction(p->ainsn.insn, insn); in arch_prepare_kprobe()
192 WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(BREAKPOINT_INSTRUCTION))); in arch_arm_kprobe()
198 WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(p->opcode))); in arch_disarm_kprobe()
H A Dcrash_dump.c48 patch_instruction(p, ppc_inst(PPC_RAW_NOP())); in create_trampoline()
H A Dsetup_32.c92 patch_instruction(addr, insn); /* replace b by bne cr0 */ in machine_init()
H A Dkgdb.c424 err = patch_instruction(addr, ppc_inst(BREAK_INSTR)); in kgdb_arch_set_breakpoint()
439 err = patch_instruction(addr, ppc_inst(instr)); in kgdb_arch_remove_breakpoint()
/openbmc/linux/arch/powerpc/include/asm/
H A Dcode-patching.h75 int patch_instruction(u32 *addr, ppc_inst_t instr);
85 return patch_instruction((u32 *)patch_site_addr(site), instr); in patch_instruction_site()
96 return patch_instruction(addr, ppc_inst((*addr & ~clr) | set)); in modify_instruction()
/openbmc/linux/arch/powerpc/lib/
H A Dfeature-fixups.c148 patch_instruction(dest + j, ppc_inst(instrs[j])); in do_patch_fixups()
170 patch_instruction(dest, ppc_inst(instrs[0])); in do_patch_entry_fixups()
171 patch_instruction(dest + 2, ppc_inst(instrs[2])); in do_patch_entry_fixups()
174 patch_instruction(dest + 1, ppc_inst(instrs[1])); in do_patch_entry_fixups()
175 patch_instruction(dest + 2, ppc_inst(instrs[2])); in do_patch_entry_fixups()
176 patch_instruction(dest, ppc_inst(instrs[0])); in do_patch_entry_fixups()
569 patch_instruction(start, ppc_inst(PPC_RAW_NOP())); in patch_btb_flush_section()
H A Dcode-patching.c356 int patch_instruction(u32 *addr, ppc_inst_t instr) in patch_instruction() function
379 NOKPROBE_SYMBOL(patch_instruction);
388 return patch_instruction(addr, instr); in patch_branch()
H A Dtest-code-patching.c121 patch_instruction(iptr, instr); in test_create_function_call()
345 patch_instruction(iptr, inst); in test_prefixed_patching()
/openbmc/linux/arch/powerpc/platforms/86xx/
H A Dmpc86xx_smp.c86 patch_instruction(vector, ppc_inst(save_vector)); in smp_86xx_kick_cpu()
/openbmc/linux/arch/powerpc/kernel/trace/
H A Dftrace_64_pg.c83 return patch_instruction((u32 *)ip, new); in ftrace_modify_code()
208 if (patch_instruction((u32 *)ip, pop)) { in __ftrace_make_nop()
339 if (patch_instruction((u32 *)ip, ppc_inst(PPC_RAW_NOP()))) { in __ftrace_make_nop_kernel()
H A Dftrace.c86 ret = patch_instruction((u32 *)ip, new); in ftrace_modify_code()
291 ret = patch_instruction((u32 *)ip, new); in ftrace_init_nop()
/openbmc/qemu/hw/i386/
H A Dvapic.c447 static void patch_instruction(VAPICROMState *s, X86CPU *cpu, target_ulong ip) in patch_instruction() function
488 patch_instruction(s, cpu, ip); in vapic_report_tpr_access()
/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dsmp.c828 patch_instruction(vector, ppc_inst(save_vector)); in smp_core99_kick_cpu()
/openbmc/linux/arch/powerpc/xmon/
H A Dxmon.c951 patch_instruction(bp->instr, instr); in insert_bpts()
952 patch_instruction(ppc_inst_next(bp->instr, bp->instr), in insert_bpts()
956 if (patch_instruction((u32 *)bp->address, in insert_bpts()
997 && patch_instruction( in remove_bpts()