Lines Matching refs:image
285 bpf_jit_free_exec(im->image); in bpf_tramp_image_free()
384 void *image; in bpf_tramp_image_alloc() local
396 im->image = image = bpf_jit_alloc_exec(PAGE_SIZE); in bpf_tramp_image_alloc()
397 if (!image) in bpf_tramp_image_alloc()
399 set_vm_flush_reset_perms(image); in bpf_tramp_image_alloc()
408 bpf_image_ksym_add(image, ksym); in bpf_tramp_image_alloc()
412 bpf_jit_free_exec(im->image); in bpf_tramp_image_alloc()
434 err = unregister_fentry(tr, tr->cur_image->image); in bpf_trampoline_update()
470 err = arch_prepare_bpf_trampoline(im, im->image, im->image + PAGE_SIZE, in bpf_trampoline_update()
476 set_memory_ro((long)im->image, 1); in bpf_trampoline_update()
477 set_memory_x((long)im->image, 1); in bpf_trampoline_update()
483 err = modify_fentry(tr, tr->cur_image->image, im->image, lock_direct_mutex); in bpf_trampoline_update()
486 err = register_fentry(tr, im->image); in bpf_trampoline_update()
499 set_memory_nx((long)im->image, 1); in bpf_trampoline_update()
500 set_memory_rw((long)im->image, 1); in bpf_trampoline_update()
1067 arch_prepare_bpf_trampoline(struct bpf_tramp_image *tr, void *image, void *image_end, in arch_prepare_bpf_trampoline() argument