Home
last modified time | relevance | path

Searched refs:text_poke_addr (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/arch/powerpc/lib/
H A Dcode-patching.c60 static int map_patch_area(void *addr, unsigned long text_poke_addr);
239 static int map_patch_area(void *addr, unsigned long text_poke_addr) in map_patch_area() argument
243 return map_kernel_page(text_poke_addr, (pfn << PAGE_SHIFT), PAGE_KERNEL); in map_patch_area()
285 unsigned long text_poke_addr; in __do_patch_instruction_mm() local
293 text_poke_addr = __this_cpu_read(cpu_patching_context.addr); in __do_patch_instruction_mm()
294 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_instruction_mm()
296 pte = get_locked_pte(patching_mm, text_poke_addr, &ptl); in __do_patch_instruction_mm()
300 __set_pte_at(patching_mm, text_poke_addr, pte, pfn_pte(pfn, PAGE_KERNEL), 0); in __do_patch_instruction_mm()
319 pte_clear(patching_mm, text_poke_addr, pte); in __do_patch_instruction_mm()
324 local_flush_tlb_page_psize(patching_mm, text_poke_addr, mmu_virtual_psiz in __do_patch_instruction_mm()
335 unsigned long text_poke_addr; __do_patch_instruction() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/lib/
H A 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/
H A Dalternative.c1367 static __always_inline void *text_poke_addr(struct text_poke_loc *tp) in text_poke_addr() function
1376 if (key < text_poke_addr(tp)) in patch_cmp()
1378 if (key > text_poke_addr(tp)) in patch_cmp()
1423 if (text_poke_addr(tp) != ip) in poke_int3_handler()
1513 tp[i].old = *(u8 *)text_poke_addr(&tp[i]); in text_poke_bp_batch()
1514 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch()
1528 text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1530 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1560 perf_event_text_poke(text_poke_addr(&tp[i]), old, len, in text_poke_bp_batch()
1581 text_poke(text_poke_addr( in text_poke_bp_batch()
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dalternative.c2062 static __always_inline void *text_poke_addr(struct text_poke_loc *tp) in text_poke_addr() function
2071 if (key < text_poke_addr(tp)) in patch_cmp()
2073 if (key > text_poke_addr(tp)) in patch_cmp()
2118 if (text_poke_addr(tp) != ip) in poke_int3_handler()
2222 tp[i].old = *(u8 *)text_poke_addr(&tp[i]); in text_poke_bp_batch()
2223 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch()
2239 text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
2248 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
2279 perf_event_text_poke(text_poke_addr(&tp[i]), old, len, new, len); in text_poke_bp_batch()
2304 text_poke(text_poke_addr( in text_poke_bp_batch()
[all...]

Completed in 7 milliseconds