Home
last modified time | relevance | path

Searched refs:text_poke_addr (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/lib/
Dcode-patching.c88 static int map_patch_area(void *addr, unsigned long text_poke_addr) in map_patch_area() argument
98 err = map_kernel_page(text_poke_addr, (pfn << PAGE_SHIFT), PAGE_KERNEL); in map_patch_area()
100 pr_devel("Mapped addr %lx with pfn %lx:%d\n", text_poke_addr, pfn, err); in map_patch_area()
151 unsigned long text_poke_addr; in do_patch_instruction() local
164 text_poke_addr = (unsigned long)__this_cpu_read(text_poke_area)->addr; in do_patch_instruction()
165 if (map_patch_area(addr, text_poke_addr)) { in do_patch_instruction()
170 patch_addr = (struct ppc_inst *)(text_poke_addr + (kaddr & ~PAGE_MASK)); in do_patch_instruction()
174 err = unmap_patch_area(text_poke_addr); in do_patch_instruction()
176 pr_warn("failed to unmap %lx\n", text_poke_addr); in do_patch_instruction()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dalternative.c1301 static __always_inline void *text_poke_addr(struct text_poke_loc *tp) in text_poke_addr() function
1310 if (key < text_poke_addr(tp)) in patch_cmp()
1312 if (key > text_poke_addr(tp)) in patch_cmp()
1357 if (text_poke_addr(tp) != ip) in poke_int3_handler()
1445 tp[i].old = *(u8 *)text_poke_addr(&tp[i]); in text_poke_bp_batch()
1446 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch()
1460 text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1462 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1492 perf_event_text_poke(text_poke_addr(&tp[i]), old, len, in text_poke_bp_batch()
1513 text_poke(text_poke_addr(&tp[i]), tp[i].text, INT3_INSN_SIZE); in text_poke_bp_batch()
[all …]