Searched refs:X86_PATCH_SIZE (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 304 #define X86_PATCH_SIZE 5 macro 352 memcpy(prog, x86_nops[5], X86_PATCH_SIZE); in emit_prologue() 353 prog += X86_PATCH_SIZE; in emit_prologue() 379 offset = func - (ip + X86_PATCH_SIZE); in emit_patch() 410 u8 old_insn[X86_PATCH_SIZE]; in __bpf_arch_text_poke() 411 u8 new_insn[X86_PATCH_SIZE]; in __bpf_arch_text_poke() 415 memcpy(old_insn, nop_insn, X86_PATCH_SIZE); in __bpf_arch_text_poke() 425 memcpy(new_insn, nop_insn, X86_PATCH_SIZE); in __bpf_arch_text_poke() 437 if (memcmp(ip, old_insn, X86_PATCH_SIZE)) in __bpf_arch_text_poke() 440 if (memcmp(ip, new_insn, X86_PATCH_SIZE)) { in __bpf_arch_text_poke() [all …]
|