Home
last modified time | relevance | path

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

/arch/powerpc/lib/
Dcode-patching.c86 static int map_patch_area(void *addr, unsigned long text_poke_addr) in map_patch_area() argument
96 err = map_kernel_page(text_poke_addr, (pfn << PAGE_SHIFT), PAGE_KERNEL); in map_patch_area()
98 pr_devel("Mapped addr %lx with pfn %lx:%d\n", text_poke_addr, pfn, err); in map_patch_area()
149 unsigned long text_poke_addr; in do_patch_instruction() local
162 text_poke_addr = (unsigned long)__this_cpu_read(text_poke_area)->addr; in do_patch_instruction()
163 if (map_patch_area(addr, text_poke_addr)) { in do_patch_instruction()
168 patch_addr = (u32 *)(text_poke_addr + (kaddr & ~PAGE_MASK)); in do_patch_instruction()
172 err = unmap_patch_area(text_poke_addr); in do_patch_instruction()
174 pr_warn("failed to unmap %lx\n", text_poke_addr); in do_patch_instruction()
/arch/x86/kernel/
Dalternative.c1242 static __always_inline void *text_poke_addr(struct text_poke_loc *tp) in text_poke_addr() function
1251 if (key < text_poke_addr(tp)) in patch_cmp()
1253 if (key > text_poke_addr(tp)) in patch_cmp()
1298 if (text_poke_addr(tp) != ip) in poke_int3_handler()
1388 tp[i].old = *(u8 *)text_poke_addr(&tp[i]); in text_poke_bp_batch()
1389 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch()
1403 text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1405 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1435 perf_event_text_poke(text_poke_addr(&tp[i]), old, len, in text_poke_bp_batch()
1456 text_poke(text_poke_addr(&tp[i]), tp[i].text, INT3_INSN_SIZE); in text_poke_bp_batch()
[all …]