Home
last modified time | relevance | path

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

/Linux-v5.4/arch/powerpc/kernel/
Doptprobes.c150 patch_instruction(addr, PPC_INST_ADDIS | ___PPC_RT(4) | in patch_imm32_load_insns()
155 patch_instruction(addr, PPC_INST_ORI | ___PPC_RA(4) | in patch_imm32_load_insns()
166 patch_instruction(addr, PPC_INST_ADDIS | ___PPC_RT(3) | in patch_imm64_load_insns()
171 patch_instruction(addr, PPC_INST_ORI | ___PPC_RA(3) | in patch_imm64_load_insns()
176 patch_instruction(addr, PPC_INST_RLDICR | ___PPC_RA(3) | in patch_imm64_load_insns()
181 patch_instruction(addr, PPC_INST_ORIS | ___PPC_RA(3) | in patch_imm64_load_insns()
186 patch_instruction(addr, PPC_INST_ORI | ___PPC_RA(3) | in patch_imm64_load_insns()
233 rc = patch_instruction(buff + i, *(optprobe_template_entry + i)); in arch_prepare_optimized_kprobe()
265 patch_instruction(buff + TMPL_CALL_HDLR_IDX, branch_op_callback); in arch_prepare_optimized_kprobe()
266 patch_instruction(buff + TMPL_EMULATE_IDX, branch_emulate_step); in arch_prepare_optimized_kprobe()
[all …]
Depapr_paravirt.c40 patch_instruction(epapr_hypercall_start + i, inst); in early_init_dt_scan_epapr()
42 patch_instruction(epapr_ev_idle_start + i, inst); in early_init_dt_scan_epapr()
Djump_label.c18 patch_instruction(addr, PPC_INST_NOP); in arch_jump_label_transform()
Dcrash_dump.c47 patch_instruction(p, PPC_INST_NOP); in create_trampoline()
Dkgdb.c427 err = patch_instruction(addr, BREAK_INSTR); in kgdb_arch_set_breakpoint()
442 err = patch_instruction(addr, instr); in kgdb_arch_remove_breakpoint()
Dsetup_32.c89 patch_instruction(addr, insn); /* replace b by bne cr0 */ in machine_init()
Dkprobes.c141 patch_instruction(p->addr, BREAKPOINT_INSTRUCTION); in arch_arm_kprobe()
147 patch_instruction(p->addr, p->opcode); in arch_disarm_kprobe()
/Linux-v5.4/arch/powerpc/lib/
Dcode-patching.c186 int patch_instruction(unsigned int *addr, unsigned int instr) in patch_instruction() function
195 NOKPROBE_SYMBOL(patch_instruction);
199 return patch_instruction(addr, create_branch(addr, target, flags)); in patch_branch()
487 patch_instruction(iptr, create_branch(iptr, dest, BRANCH_SET_LINK)); in test_create_function_call()
578 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
586 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
596 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
606 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
615 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
625 patch_instruction(p, create_cond_branch(p, addr, 0)); in test_translate_branch()
[all …]
Dfeature-fixups.c148 patch_instruction(dest, instrs[0]); in do_stf_entry_barrier_fixups()
154 patch_instruction(dest + 1, instrs[1]); in do_stf_entry_barrier_fixups()
156 patch_instruction(dest + 2, instrs[2]); in do_stf_entry_barrier_fixups()
209 patch_instruction(dest, instrs[0]); in do_stf_exit_barrier_fixups()
210 patch_instruction(dest + 1, instrs[1]); in do_stf_exit_barrier_fixups()
211 patch_instruction(dest + 2, instrs[2]); in do_stf_exit_barrier_fixups()
212 patch_instruction(dest + 3, instrs[3]); in do_stf_exit_barrier_fixups()
213 patch_instruction(dest + 4, instrs[4]); in do_stf_exit_barrier_fixups()
214 patch_instruction(dest + 5, instrs[5]); in do_stf_exit_barrier_fixups()
262 patch_instruction(dest, instrs[0]); in do_rfi_flush_fixups()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/
Dcode-patching.h30 int patch_instruction(unsigned int *addr, unsigned int instr);
40 return patch_instruction((unsigned int *)patch_site_addr(site), instr); in patch_instruction_site()
51 return patch_instruction(addr, (*addr & ~clr) | set); in modify_instruction()
/Linux-v5.4/arch/powerpc/kernel/trace/
Dftrace.c81 if (patch_instruction((unsigned int *)ip, new)) in ftrace_modify_code()
207 if (patch_instruction((unsigned int *)ip, pop)) { in __ftrace_make_nop()
279 if (patch_instruction((unsigned int *)ip, op)) in __ftrace_make_nop()
419 if (patch_instruction((unsigned int *)ip, PPC_INST_NOP)) { in __ftrace_make_nop_kernel()
606 if (patch_instruction((unsigned int *)ip, op))
/Linux-v5.4/arch/powerpc/platforms/86xx/
Dmpc86xx_smp.c85 patch_instruction(vector, save_vector); in smp_86xx_kick_cpu()
/Linux-v5.4/arch/powerpc/platforms/powermac/
Dsmp.c831 patch_instruction(vector, save_vector); in smp_core99_kick_cpu()
/Linux-v5.4/arch/powerpc/xmon/
Dxmon.c869 if (patch_instruction((unsigned int *)bp->address, in insert_bpts()
907 && patch_instruction( in remove_bpts()