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.c2219 struct bpf_binary_header *ro_header; in bpf_int_jit_compile()
2237 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
2240 image_ptr = (void *)header + ((void *)ro_image_ptr - (void *)ro_header); in bpf_int_jit_compile()
2272 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, sizeof(u32), in bpf_int_jit_compile()
2275 if (!ro_header) in bpf_int_jit_compile()
2314 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile()
2315 /* ro_header and header have been freed */ in bpf_int_jit_compile()
2316 ro_header = NULL; in bpf_int_jit_compile()
2325 bpf_flush_icache(ro_header, ct in bpf_int_jit_compile()
2199 struct bpf_binary_header *ro_header; bpf_int_jit_compile() local
[all...]
H A Dbpf_jit.h29 struct bpf_binary_header *ro_header; member
/linux/kernel/bpf/
H A Dcore.c1200 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local
1207 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc()
1211 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns, was_classic); in bpf_jit_binary_pack_alloc()
1212 if (!ro_header) { in bpf_jit_binary_pack_alloc()
1219 bpf_prog_pack_free(ro_header, size); in bpf_jit_binary_pack_alloc()
1228 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()
1229 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc()
1232 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()
1235 return ro_header; in bpf_jit_binary_pack_alloc()
1238 /* Copy JITed text from rw_header to its final location, the ro_header
1239 bpf_jit_binary_pack_finalize(struct bpf_binary_header * ro_header,struct bpf_binary_header * rw_header) bpf_jit_binary_pack_finalize() argument
1265 bpf_jit_binary_pack_free(struct bpf_binary_header * ro_header,struct bpf_binary_header * rw_header) bpf_jit_binary_pack_free() argument
[all...]
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c2154 struct bpf_binary_header *ro_header; member
2162 struct bpf_binary_header *ro_header = NULL; in bpf_int_jit_compile() local
2203 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
2206 - (void *)ro_header); in bpf_int_jit_compile()
2256 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, in bpf_int_jit_compile()
2259 if (!ro_header) in bpf_int_jit_compile()
2325 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile()
2326 /* ro_header and header has been freed */ in bpf_int_jit_compile()
2327 ro_header in bpf_int_jit_compile()
[all...]
/linux/include/linux/
H A Dfilter.h1400 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header,
1402 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,