Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/arch/x86/net/
H A Dbpf_jit_comp.c230 #define X86_PATCH_SIZE 5 macro
275 int cnt = X86_PATCH_SIZE; in emit_prologue()
304 offset = func - (ip + X86_PATCH_SIZE); in emit_patch()
329 u8 old_insn[X86_PATCH_SIZE]; in __bpf_arch_text_poke()
330 u8 new_insn[X86_PATCH_SIZE]; in __bpf_arch_text_poke()
334 memcpy(old_insn, nop_insn, X86_PATCH_SIZE); in __bpf_arch_text_poke()
344 memcpy(new_insn, nop_insn, X86_PATCH_SIZE); in __bpf_arch_text_poke()
356 if (memcmp(ip, old_insn, X86_PATCH_SIZE)) in __bpf_arch_text_poke()
359 if (memcmp(ip, new_insn, X86_PATCH_SIZE)) { in __bpf_arch_text_poke()
361 text_poke_bp(ip, new_insn, X86_PATCH_SIZE, NULL); in __bpf_arch_text_poke()
[all …]