Home
last modified time | relevance | path

Searched refs:ro_header (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/arch/riscv/net/
H A Dbpf_jit_core.c122 jit_data->ro_header = in bpf_int_jit_compile()
127 if (!jit_data->ro_header) { in bpf_int_jit_compile()
178 if (WARN_ON(bpf_jit_binary_pack_finalize(prog, jit_data->ro_header, in bpf_int_jit_compile()
180 /* ro_header has been freed */ in bpf_int_jit_compile()
181 jit_data->ro_header = NULL; in bpf_int_jit_compile()
191 bpf_flush_icache(jit_data->ro_header, ctx->ro_insns + ctx->ninsns); in bpf_int_jit_compile()
209 bpf_arch_text_copy(&jit_data->ro_header->size, &jit_data->header->size, in bpf_int_jit_compile()
211 bpf_jit_binary_pack_free(jit_data->ro_header, jit_data->header); in bpf_int_jit_compile()
271 bpf_jit_binary_pack_finalize(prog, jit_data->ro_header, jit_data->header); in bpf_jit_free()
H A Dbpf_jit.h89 struct bpf_binary_header *ro_header; member
/kernel/linux/linux-6.6/kernel/bpf/
H A Dcore.c1093 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local
1100 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc()
1104 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns); in bpf_jit_binary_pack_alloc()
1105 if (!ro_header) { in bpf_jit_binary_pack_alloc()
1112 bpf_arch_text_copy(&ro_header->size, &size, sizeof(size)); in bpf_jit_binary_pack_alloc()
1113 bpf_prog_pack_free(ro_header); in bpf_jit_binary_pack_alloc()
1122 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()
1123 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc()
1126 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()
1129 return ro_header; in bpf_jit_binary_pack_alloc()
1133 bpf_jit_binary_pack_finalize(struct bpf_prog *prog, struct bpf_binary_header *ro_header, struct bpf_binary_header *rw_header) bpf_jit_binary_pack_finalize() argument
1160 bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header, struct bpf_binary_header *rw_header) bpf_jit_binary_pack_free() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dfilter.h1050 struct bpf_binary_header *ro_header,
1052 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,

Completed in 9 milliseconds