Home
last modified time | relevance | path

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

/linux-6.1.9/arch/powerpc/lib/
Dcode-patching.c47 static int map_patch_area(void *addr, unsigned long text_poke_addr);
108 static int map_patch_area(void *addr, unsigned long text_poke_addr) in map_patch_area() argument
112 return map_kernel_page(text_poke_addr, (pfn << PAGE_SHIFT), PAGE_KERNEL); in map_patch_area()
154 unsigned long text_poke_addr; in __do_patch_instruction() local
158 text_poke_addr = (unsigned long)__this_cpu_read(text_poke_area)->addr & PAGE_MASK; in __do_patch_instruction()
159 patch_addr = (u32 *)(text_poke_addr + offset_in_page(addr)); in __do_patch_instruction()
161 pte = virt_to_kpte(text_poke_addr); in __do_patch_instruction()
162 __set_pte_at(&init_mm, text_poke_addr, pte, pfn_pte(pfn, PAGE_KERNEL), 0); in __do_patch_instruction()
169 pte_clear(&init_mm, text_poke_addr, pte); in __do_patch_instruction()
170 flush_tlb_kernel_range(text_poke_addr, text_poke_addr + PAGE_SIZE); in __do_patch_instruction()
/linux-6.1.9/arch/x86/kernel/
Dalternative.c1352 static __always_inline void *text_poke_addr(struct text_poke_loc *tp) in text_poke_addr() function
1361 if (key < text_poke_addr(tp)) in patch_cmp()
1363 if (key > text_poke_addr(tp)) in patch_cmp()
1408 if (text_poke_addr(tp) != ip) in poke_int3_handler()
1498 tp[i].old = *(u8 *)text_poke_addr(&tp[i]); in text_poke_bp_batch()
1499 text_poke(text_poke_addr(&tp[i]), &int3, INT3_INSN_SIZE); in text_poke_bp_batch()
1513 text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1515 text_poke(text_poke_addr(&tp[i]) + INT3_INSN_SIZE, in text_poke_bp_batch()
1545 perf_event_text_poke(text_poke_addr(&tp[i]), old, len, in text_poke_bp_batch()
1566 text_poke(text_poke_addr(&tp[i]), tp[i].text, INT3_INSN_SIZE); in text_poke_bp_batch()
[all …]