Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/lib/
Dcode-patching.c192 int patch_instruction(unsigned int *addr, unsigned int instr) in patch_instruction() function
201 NOKPROBE_SYMBOL(patch_instruction);
205 return patch_instruction(addr, create_branch(addr, target, flags)); in patch_branch()
213 return patch_instruction(addr, create_branch(addr, target, flags)); in patch_branch_site()
221 return patch_instruction(addr, instr); in patch_instruction_site()
509 patch_instruction(iptr, create_branch(iptr, dest, BRANCH_SET_LINK)); in test_create_function_call()
600 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
608 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
618 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
628 patch_instruction(q, translate_branch(q, p)); in test_translate_branch()
[all …]
Dfeature-fixups.c152 patch_instruction(dest, instrs[0]); in do_stf_entry_barrier_fixups()
158 patch_instruction(dest + 1, instrs[1]); in do_stf_entry_barrier_fixups()
160 patch_instruction(dest + 2, instrs[2]); in do_stf_entry_barrier_fixups()
213 patch_instruction(dest, instrs[0]); in do_stf_exit_barrier_fixups()
214 patch_instruction(dest + 1, instrs[1]); in do_stf_exit_barrier_fixups()
215 patch_instruction(dest + 2, instrs[2]); in do_stf_exit_barrier_fixups()
216 patch_instruction(dest + 3, instrs[3]); in do_stf_exit_barrier_fixups()
217 patch_instruction(dest + 4, instrs[4]); in do_stf_exit_barrier_fixups()
218 patch_instruction(dest + 5, instrs[5]); in do_stf_exit_barrier_fixups()
266 patch_instruction(dest, instrs[0]); in do_rfi_flush_fixups()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Doptprobes.c154 patch_instruction(addr, PPC_INST_ADDIS | ___PPC_RT(4) | in patch_imm32_load_insns()
159 patch_instruction(addr, PPC_INST_ORI | ___PPC_RA(4) | in patch_imm32_load_insns()
170 patch_instruction(addr, PPC_INST_ADDIS | ___PPC_RT(3) | in patch_imm64_load_insns()
175 patch_instruction(addr, PPC_INST_ORI | ___PPC_RA(3) | in patch_imm64_load_insns()
180 patch_instruction(addr, PPC_INST_RLDICR | ___PPC_RA(3) | in patch_imm64_load_insns()
185 patch_instruction(addr, PPC_INST_ORIS | ___PPC_RA(3) | in patch_imm64_load_insns()
190 patch_instruction(addr, PPC_INST_ORI | ___PPC_RA(3) | in patch_imm64_load_insns()
237 rc = patch_instruction(buff + i, *(optprobe_template_entry + i)); in arch_prepare_optimized_kprobe()
269 patch_instruction(buff + TMPL_CALL_HDLR_IDX, branch_op_callback); in arch_prepare_optimized_kprobe()
270 patch_instruction(buff + TMPL_EMULATE_IDX, branch_emulate_step); in arch_prepare_optimized_kprobe()
[all …]
Depapr_paravirt.c52 patch_instruction(epapr_hypercall_start + i, inst); in early_init_dt_scan_epapr()
54 patch_instruction(epapr_ev_idle_start + i, inst); in early_init_dt_scan_epapr()
Djump_label.c23 patch_instruction(addr, PPC_INST_NOP); in arch_jump_label_transform()
Dcrash_dump.c49 patch_instruction(p, PPC_INST_NOP); in create_trampoline()
Dkprobes.c154 patch_instruction(p->addr, BREAKPOINT_INSTRUCTION); in arch_arm_kprobe()
160 patch_instruction(p->addr, p->opcode); in arch_disarm_kprobe()
Dsetup_32.c117 patch_instruction(addr, insn); /* replace b by bne cr0 */ in machine_init()
/Linux-v4.19/arch/powerpc/perf/
D8xx-pmu.c183 patch_instruction(&itlb_miss_exit_1, insn); in mpc8xx_pmu_del()
185 patch_instruction(&itlb_miss_exit_2, insn); in mpc8xx_pmu_del()
191 patch_instruction(&dtlb_miss_exit_1, insn); in mpc8xx_pmu_del()
192 patch_instruction(&dtlb_miss_exit_2, insn); in mpc8xx_pmu_del()
193 patch_instruction(&dtlb_miss_exit_3, insn); in mpc8xx_pmu_del()
/Linux-v4.19/arch/powerpc/mm/
D8xx_mmu.c116 patch_instruction(addr, instr); in mmu_patch_cmp_limit()
127 patch_instruction(&DTLBMiss_jmp, PPC_INST_NOP); in mmu_mapin_ram()
Dslb.c305 patch_instruction(insn_addr, insn); in patch_slb_encoding()
/Linux-v4.19/arch/powerpc/kernel/trace/
Dftrace.c71 if (patch_instruction((unsigned int *)ip, new)) in ftrace_modify_code()
193 if (patch_instruction((unsigned int *)ip, pop)) { in __ftrace_make_nop()
265 if (patch_instruction((unsigned int *)ip, op)) in __ftrace_make_nop()
451 if (patch_instruction((unsigned int *)ip, op))
/Linux-v4.19/arch/powerpc/platforms/powernv/
Didle.c280 err = patch_instruction( in store_fastsleep_workaround_applyonce()
299 err = patch_instruction( in store_fastsleep_workaround_applyonce()
846 patch_instruction( in pnv_init_idle_states()
849 patch_instruction( in pnv_init_idle_states()
/Linux-v4.19/arch/powerpc/include/asm/
Dcode-patching.h34 int patch_instruction(unsigned int *addr, unsigned int instr);
/Linux-v4.19/arch/powerpc/xmon/
Dxmon.c866 if (patch_instruction((unsigned int *)bp->address, in insert_bpts()
904 && patch_instruction( in remove_bpts()