Home
last modified time | relevance | path

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

/linux/arch/x86/net/
H A Dbpf_jit_comp.c3707 struct bpf_binary_header *rw_header; member
3720 struct bpf_binary_header *rw_header = NULL; in bpf_int_jit_compile() local
3766 rw_header = jit_data->rw_header; in bpf_int_jit_compile()
3767 rw_image = (void *)rw_header + ((void *)image - (void *)header); in bpf_int_jit_compile()
3801 bpf_arch_text_copy(&header->size, &rw_header->size, in bpf_int_jit_compile()
3802 sizeof(rw_header->size)); in bpf_int_jit_compile()
3803 bpf_jit_binary_pack_free(header, rw_header); in bpf_int_jit_compile()
3833 &image, align, &rw_header, &rw_image, in bpf_int_jit_compile()
3855 if (WARN_ON(bpf_jit_binary_pack_finalize(header, rw_header))) { in bpf_int_jit_compile()
3868 jit_data->rw_header = rw_header; in bpf_int_jit_compile()
[all …]
/linux/kernel/bpf/
H A Dcore.c1131 struct bpf_binary_header **rw_header, in bpf_jit_binary_pack_alloc() argument
1152 *rw_header = kvmalloc(size, GFP_KERNEL); in bpf_jit_binary_pack_alloc()
1153 if (!*rw_header) { in bpf_jit_binary_pack_alloc()
1160 bpf_fill_ill_insns(*rw_header, size); in bpf_jit_binary_pack_alloc()
1161 (*rw_header)->size = size; in bpf_jit_binary_pack_alloc()
1168 *rw_image = &(*rw_header)->image[start]; in bpf_jit_binary_pack_alloc()
1175 struct bpf_binary_header *rw_header) in bpf_jit_binary_pack_finalize() argument
1179 ptr = bpf_arch_text_copy(ro_header, rw_header, rw_header->size); in bpf_jit_binary_pack_finalize()
1181 kvfree(rw_header); in bpf_jit_binary_pack_finalize()
1201 struct bpf_binary_header *rw_header) in bpf_jit_binary_pack_free() argument
[all …]