Home
last modified time | relevance | path

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

/linux-6.15/arch/riscv/net/
H A Dbpf_jit_core.c125 jit_data->ro_header = in bpf_int_jit_compile()
130 if (!jit_data->ro_header) { in bpf_int_jit_compile()
181 if (WARN_ON(bpf_jit_binary_pack_finalize(jit_data->ro_header, jit_data->header))) { in bpf_int_jit_compile()
183 jit_data->ro_header = NULL; in bpf_int_jit_compile()
193 bpf_flush_icache(jit_data->ro_header, ctx->ro_insns + ctx->ninsns); in bpf_int_jit_compile()
211 bpf_arch_text_copy(&jit_data->ro_header->size, &jit_data->header->size, in bpf_int_jit_compile()
213 bpf_jit_binary_pack_free(jit_data->ro_header, jit_data->header); in bpf_int_jit_compile()
260 bpf_jit_binary_pack_finalize(jit_data->ro_header, jit_data->header); in bpf_jit_free()
H A Dbpf_jit.h101 struct bpf_binary_header *ro_header; member
/linux-6.15/arch/arm64/net/
H A Dbpf_jit_comp.c1868 struct bpf_binary_header *ro_header; member
1877 struct bpf_binary_header *ro_header; in bpf_int_jit_compile() local
1914 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
1917 - (void *)ro_header); in bpf_int_jit_compile()
1962 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, in bpf_int_jit_compile()
1965 if (!ro_header) { in bpf_int_jit_compile()
2044 ro_header = NULL; in bpf_int_jit_compile()
2053 bpf_flush_icache(ro_header, ctx.ro_image + ctx.idx); in bpf_int_jit_compile()
2058 jit_data->ro_header = ro_header; in bpf_int_jit_compile()
2085 bpf_arch_text_copy(&ro_header->size, &header->size, in bpf_int_jit_compile()
[all …]
/linux-6.15/kernel/bpf/
H A Dcore.c1142 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local
1153 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns); in bpf_jit_binary_pack_alloc()
1154 if (!ro_header) { in bpf_jit_binary_pack_alloc()
1161 bpf_prog_pack_free(ro_header, size); in bpf_jit_binary_pack_alloc()
1171 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc()
1174 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()
1177 return ro_header; in bpf_jit_binary_pack_alloc()
1186 ptr = bpf_arch_text_copy(ro_header, rw_header, rw_header->size); in bpf_jit_binary_pack_finalize()
1191 bpf_prog_pack_free(ro_header, ro_header->size); in bpf_jit_binary_pack_finalize()
1210 u32 size = ro_header->size; in bpf_jit_binary_pack_free()
[all …]
/linux-6.15/include/linux/
H A Dfilter.h1269 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header,
1271 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,