Searched refs:rw_image (Results 1 – 6 of 6) sorted by relevance
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 1631 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, u8 *rw_image, in do_jit() argument 1687 if (rw_image) in do_jit() 1688 memcpy(rw_image + proglen, temp, ilen); in do_jit() 2173 ex = (void *)rw_image + ((void *)ex - (void *)image); in do_jit() 2301 ex = (void *)rw_image + ((void *)ex - (void *)image); in do_jit() 2753 memcpy(rw_image + proglen, temp, ilen); in do_jit() 2944 void *image, void *rw_image) in invoke_bpf_prog() argument 2972 if (emit_rsb_call(&prog, bpf_trampoline_enter(p), image + (prog - (u8 *)rw_image))) in invoke_bpf_prog() 2996 if (emit_rsb_call(&prog, p->bpf_func, image + (prog - (u8 *)rw_image))) in invoke_bpf_prog() 3023 if (emit_rsb_call(&prog, bpf_trampoline_exit(p), image + (prog - (u8 *)rw_image))) in invoke_bpf_prog() [all …]
|
| /linux/kernel/bpf/ |
| H A D | dispatcher.c | 115 tmp = d->num_progs ? d->rw_image + noff : NULL; in bpf_dispatcher_update() 151 d->rw_image = bpf_jit_alloc_exec(PAGE_SIZE); in bpf_dispatcher_change_prog() 152 if (!d->rw_image) { in bpf_dispatcher_change_prog()
|
| H A D | core.c | 1114 u8 **rw_image, in bpf_jit_binary_pack_alloc() argument 1150 *rw_image = &(*rw_header)->image[start]; in bpf_jit_binary_pack_alloc()
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp.c | 675 static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *rw_image, in __arch_prepare_bpf_trampoline() argument 687 u32 *image = (u32 *)rw_image; in __arch_prepare_bpf_trampoline() 1017 void *rw_image, *tmp; in arch_prepare_bpf_trampoline() local 1024 rw_image = kvmalloc(size, GFP_KERNEL); in arch_prepare_bpf_trampoline() 1025 if (!rw_image) in arch_prepare_bpf_trampoline() 1028 ret = __arch_prepare_bpf_trampoline(im, rw_image, rw_image + size, image, m, in arch_prepare_bpf_trampoline() 1034 bpf_jit_dump(1, ret - BPF_INSN_SAFETY * 4, 1, rw_image); in arch_prepare_bpf_trampoline() 1036 tmp = bpf_arch_text_copy(image, rw_image, size); in arch_prepare_bpf_trampoline() 1041 kvfree(rw_image); in arch_prepare_bpf_trampoline()
|
| /linux/include/linux/ |
| H A D | filter.h | 1274 u8 **rw_image,
|
| H A D | bpf.h | 1332 void *rw_image; member
|