Searched refs:X86_PATCH_SIZE (Results 1 – 1 of 1) sorted by relevance
| /Linux-v6.6/arch/x86/net/ |
| D | bpf_jit_comp.c | 254 #define X86_PATCH_SIZE 5 macro 302 memcpy(prog, x86_nops[5], X86_PATCH_SIZE); in emit_prologue() 303 prog += X86_PATCH_SIZE; in emit_prologue() 329 offset = func - (ip + X86_PATCH_SIZE); in emit_patch() 360 u8 old_insn[X86_PATCH_SIZE]; in __bpf_arch_text_poke() 361 u8 new_insn[X86_PATCH_SIZE]; in __bpf_arch_text_poke() 365 memcpy(old_insn, nop_insn, X86_PATCH_SIZE); in __bpf_arch_text_poke() 375 memcpy(new_insn, nop_insn, X86_PATCH_SIZE); in __bpf_arch_text_poke() 387 if (memcmp(ip, old_insn, X86_PATCH_SIZE)) in __bpf_arch_text_poke() 390 if (memcmp(ip, new_insn, X86_PATCH_SIZE)) { in __bpf_arch_text_poke() [all …]
|