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.c124 jit_data->ro_header = in bpf_int_jit_compile()
129 if (!jit_data->ro_header) { in bpf_int_jit_compile()
180 if (WARN_ON(bpf_jit_binary_pack_finalize(jit_data->ro_header, jit_data->header))) { in bpf_int_jit_compile()
182 jit_data->ro_header = NULL; in bpf_int_jit_compile()
192 bpf_flush_icache(jit_data->ro_header, ctx->ro_insns + ctx->ninsns); in bpf_int_jit_compile()
210 bpf_arch_text_copy(&jit_data->ro_header->size, &jit_data->header->size, in bpf_int_jit_compile()
212 bpf_jit_binary_pack_free(jit_data->ro_header, jit_data->header); in bpf_int_jit_compile()
259 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.c1931 struct bpf_binary_header *ro_header; in bpf_int_jit_compile() local
1966 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
1969 image_ptr = (void *)header + ((void *)ro_image_ptr - (void *)ro_header); in bpf_int_jit_compile()
2005 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, sizeof(u32), in bpf_int_jit_compile()
2007 if (!ro_header) { in bpf_int_jit_compile()
2052 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile()
2054 ro_header = NULL; in bpf_int_jit_compile()
2063 bpf_flush_icache(ro_header, ctx.ro_image + ctx.idx); in bpf_int_jit_compile()
2067 jit_data->ro_header = ro_header; in bpf_int_jit_compile()
2095 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/arch/arm64/net/
H A Dbpf_jit_comp.c2005 struct bpf_binary_header *ro_header; member
2014 struct bpf_binary_header *ro_header = NULL; in bpf_int_jit_compile() local
2070 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
2073 - (void *)ro_header); in bpf_int_jit_compile()
2121 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, in bpf_int_jit_compile()
2124 if (!ro_header) { in bpf_int_jit_compile()
2201 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile()
2203 ro_header = NULL; in bpf_int_jit_compile()
2212 bpf_flush_icache(ro_header, ctx.ro_image + ctx.idx); in bpf_int_jit_compile()
2217 jit_data->ro_header = ro_header; in bpf_int_jit_compile()
[all …]
/linux/kernel/bpf/
H A Dcore.c1136 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local
1143 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc()
1147 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns); in bpf_jit_binary_pack_alloc()
1148 if (!ro_header) { in bpf_jit_binary_pack_alloc()
1155 bpf_prog_pack_free(ro_header, size); in bpf_jit_binary_pack_alloc()
1164 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()
1165 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc()
1168 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()
1171 return ro_header; in bpf_jit_binary_pack_alloc()
1175 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header, in bpf_jit_binary_pack_finalize() argument
[all …]
/linux/include/linux/
H A Dfilter.h1299 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header,
1301 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,