Home
last modified time | relevance | path

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

/openbmc/linux/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()
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
/openbmc/linux/kernel/bpf/
H A Dcore.c1097 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local
1104 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc()
1108 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns); in bpf_jit_binary_pack_alloc()
1109 if (!ro_header) { in bpf_jit_binary_pack_alloc()
1116 bpf_arch_text_copy(&ro_header->size, &size, sizeof(size)); in bpf_jit_binary_pack_alloc()
1117 bpf_prog_pack_free(ro_header); in bpf_jit_binary_pack_alloc()
1126 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()
1127 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc()
1130 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()
1133 return ro_header; in bpf_jit_binary_pack_alloc()
[all …]
/openbmc/linux/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,