Home
last modified time | relevance | path

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

/Linux-v5.10/arch/powerpc/kernel/
Doptprobes.c152 patch_instruction((struct ppc_inst *)addr, in patch_imm32_load_insns()
158 patch_instruction((struct ppc_inst *)addr, in patch_imm32_load_insns()
170 patch_instruction((struct ppc_inst *)addr, in patch_imm64_load_insns()
176 patch_instruction((struct ppc_inst *)addr, in patch_imm64_load_insns()
182 patch_instruction((struct ppc_inst *)addr, in patch_imm64_load_insns()
188 patch_instruction((struct ppc_inst *)addr, in patch_imm64_load_insns()
194 patch_instruction((struct ppc_inst *)addr, in patch_imm64_load_insns()
242 rc = patch_instruction((struct ppc_inst *)(buff + i), in arch_prepare_optimized_kprobe()
277 patch_instruction((struct ppc_inst *)(buff + TMPL_CALL_HDLR_IDX), in arch_prepare_optimized_kprobe()
279 patch_instruction((struct ppc_inst *)(buff + TMPL_EMULATE_IDX), in arch_prepare_optimized_kprobe()
[all …]
Depapr_paravirt.c41 patch_instruction((struct ppc_inst *)(epapr_hypercall_start + i), inst); in early_init_dt_scan_epapr()
43 patch_instruction((struct ppc_inst *)(epapr_ev_idle_start + i), inst); in early_init_dt_scan_epapr()
Djump_label.c19 patch_instruction(addr, ppc_inst(PPC_INST_NOP)); in arch_jump_label_transform()
Dkprobes.c141 patch_instruction((struct ppc_inst *)p->ainsn.insn, insn); in arch_prepare_kprobe()
152 patch_instruction((struct ppc_inst *)p->addr, ppc_inst(BREAKPOINT_INSTRUCTION)); in arch_arm_kprobe()
158 patch_instruction((struct ppc_inst *)p->addr, ppc_inst(p->opcode)); in arch_disarm_kprobe()
Dcrash_dump.c48 patch_instruction(p, ppc_inst(PPC_INST_NOP)); in create_trampoline()
Dsetup_32.c91 patch_instruction(addr, insn); /* replace b by bne cr0 */ in machine_init()
Dkgdb.c428 err = patch_instruction(addr, ppc_inst(BREAK_INSTR)); in kgdb_arch_set_breakpoint()
443 err = patch_instruction(addr, ppc_inst(instr)); in kgdb_arch_remove_breakpoint()
/Linux-v5.10/arch/powerpc/lib/
Dfeature-fixups.c152 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0])); in do_stf_entry_barrier_fixups()
159 patch_instruction((struct ppc_inst *)(dest + 1), in do_stf_entry_barrier_fixups()
162 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2])); in do_stf_entry_barrier_fixups()
215 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0])); in do_stf_exit_barrier_fixups()
216 patch_instruction((struct ppc_inst *)(dest + 1), ppc_inst(instrs[1])); in do_stf_exit_barrier_fixups()
217 patch_instruction((struct ppc_inst *)(dest + 2), ppc_inst(instrs[2])); in do_stf_exit_barrier_fixups()
218 patch_instruction((struct ppc_inst *)(dest + 3), ppc_inst(instrs[3])); in do_stf_exit_barrier_fixups()
219 patch_instruction((struct ppc_inst *)(dest + 4), ppc_inst(instrs[4])); in do_stf_exit_barrier_fixups()
220 patch_instruction((struct ppc_inst *)(dest + 5), ppc_inst(instrs[5])); in do_stf_exit_barrier_fixups()
270 patch_instruction((struct ppc_inst *)dest, ppc_inst(instrs[0])); in do_uaccess_flush_fixups()
[all …]
Dcode-patching.c192 int patch_instruction(struct ppc_inst *addr, struct ppc_inst instr) in patch_instruction() function
201 NOKPROBE_SYMBOL(patch_instruction);
208 return patch_instruction(addr, instr); in patch_branch()
502 patch_instruction(iptr, instr); in test_create_function_call()
597 patch_instruction(q, instr); in test_translate_branch()
606 patch_instruction(q, instr); in test_translate_branch()
617 patch_instruction(q, instr); in test_translate_branch()
628 patch_instruction(q, instr); in test_translate_branch()
638 patch_instruction(q, instr); in test_translate_branch()
649 patch_instruction(p, instr); in test_translate_branch()
[all …]
/Linux-v5.10/arch/powerpc/include/asm/
Dcode-patching.h31 int patch_instruction(struct ppc_inst *addr, struct ppc_inst instr);
41 return patch_instruction((struct ppc_inst *)patch_site_addr(site), instr); in patch_instruction_site()
52 return patch_instruction((struct ppc_inst *)addr, ppc_inst((*addr & ~clr) | set)); in modify_instruction()
/Linux-v5.10/arch/powerpc/kernel/trace/
Dftrace.c82 if (patch_instruction((struct ppc_inst *)ip, new)) in ftrace_modify_code()
211 if (patch_instruction((struct ppc_inst *)ip, pop)) { in __ftrace_make_nop()
283 if (patch_instruction((struct ppc_inst *)ip, op)) in __ftrace_make_nop()
427 if (patch_instruction((struct ppc_inst *)ip, ppc_inst(PPC_INST_NOP))) { in __ftrace_make_nop_kernel()
620 if (patch_instruction((struct ppc_inst *)ip, op))
/Linux-v5.10/arch/powerpc/platforms/86xx/
Dmpc86xx_smp.c86 patch_instruction((struct ppc_inst *)vector, ppc_inst(save_vector)); in smp_86xx_kick_cpu()
/Linux-v5.10/arch/powerpc/platforms/powermac/
Dsmp.c826 patch_instruction((struct ppc_inst *)vector, ppc_inst(save_vector)); in smp_core99_kick_cpu()
/Linux-v5.10/arch/powerpc/xmon/
Dxmon.c947 patch_instruction(bp->instr, instr); in insert_bpts()
948 patch_instruction(ppc_inst_next(bp->instr, &instr), in insert_bpts()
952 if (patch_instruction((struct ppc_inst *)bp->address, in insert_bpts()
993 && patch_instruction( in remove_bpts()