Home
last modified time | relevance | path

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

/linux/arch/riscv/net/
H A Dbpf_jit_core.c108 jit_data->ro_header = in bpf_int_jit_compile()
114 if (!jit_data->ro_header) in bpf_int_jit_compile()
156 if (WARN_ON(bpf_jit_binary_pack_finalize(jit_data->ro_header, jit_data->header))) { in bpf_int_jit_compile()
158 jit_data->ro_header = NULL; in bpf_int_jit_compile()
187 bpf_arch_text_copy(&jit_data->ro_header->size, &jit_data->header->size, in bpf_int_jit_compile()
189 bpf_jit_binary_pack_free(jit_data->ro_header, jit_data->header); in bpf_int_jit_compile()
236 bpf_jit_binary_pack_finalize(jit_data->ro_header, jit_data->header); in bpf_jit_free()
H A Dbpf_jit.h97 struct bpf_binary_header *ro_header; member
/linux/arch/loongarch/net/
H A Dbpf_jit.c2199 struct bpf_binary_header *ro_header; in bpf_int_jit_compile() local
2217 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
2220 image_ptr = (void *)header + ((void *)ro_image_ptr - (void *)ro_header); in bpf_int_jit_compile()
2252 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, sizeof(u32), in bpf_int_jit_compile()
2255 if (!ro_header) in bpf_int_jit_compile()
2294 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile()
2296 ro_header = NULL; in bpf_int_jit_compile()
2305 bpf_flush_icache(ro_header, ctx.ro_image + ctx.idx); in bpf_int_jit_compile()
2309 jit_data->ro_header = ro_header; in bpf_int_jit_compile()
2339 bpf_arch_text_copy(&ro_header->size, &header->size, sizeof(header->size)); in bpf_int_jit_compile()
[all …]
H A Dbpf_jit.h29 struct bpf_binary_header *ro_header; member
/linux/kernel/bpf/
H A Dcore.c1204 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local
1211 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc()
1215 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns, was_classic); in bpf_jit_binary_pack_alloc()
1216 if (!ro_header) { in bpf_jit_binary_pack_alloc()
1223 bpf_prog_pack_free(ro_header, size); in bpf_jit_binary_pack_alloc()
1232 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()
1233 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc()
1236 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()
1239 return ro_header; in bpf_jit_binary_pack_alloc()
1243 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header, in bpf_jit_binary_pack_finalize() argument
[all …]
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c2152 struct bpf_binary_header *ro_header; member
2160 struct bpf_binary_header *ro_header = NULL; in bpf_int_jit_compile() local
2201 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
2204 - (void *)ro_header); in bpf_int_jit_compile()
2254 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, in bpf_int_jit_compile()
2257 if (!ro_header) in bpf_int_jit_compile()
2323 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile()
2325 ro_header = NULL; in bpf_int_jit_compile()
2333 jit_data->ro_header = ro_header; in bpf_int_jit_compile()
2355 if (!ro_header && priv_stack_ptr) { in bpf_int_jit_compile()
[all …]
/linux/include/linux/
H A Dfilter.h1401 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header,
1403 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,