Searched refs:ro_header (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/arch/riscv/net/ |
D | bpf_jit_core.c | 125 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()
|
D | bpf_jit.h | 101 struct bpf_binary_header *ro_header; member
|
/linux-6.12.1/arch/arm64/net/ |
D | bpf_jit_comp.c | 1738 struct bpf_binary_header *ro_header; member 1747 struct bpf_binary_header *ro_header; in bpf_int_jit_compile() local 1784 ro_header = jit_data->ro_header; in bpf_int_jit_compile() 1787 - (void *)ro_header); in bpf_int_jit_compile() 1832 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, in bpf_int_jit_compile() 1835 if (!ro_header) { in bpf_int_jit_compile() 1912 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile() 1914 ro_header = NULL; in bpf_int_jit_compile() 1923 bpf_flush_icache(ro_header, ctx.ro_image + ctx.idx); in bpf_int_jit_compile() 1928 jit_data->ro_header = ro_header; in bpf_int_jit_compile() [all …]
|
/linux-6.12.1/kernel/bpf/ |
D | core.c | 1137 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local 1144 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc() 1148 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns); in bpf_jit_binary_pack_alloc() 1149 if (!ro_header) { in bpf_jit_binary_pack_alloc() 1156 bpf_prog_pack_free(ro_header, size); in bpf_jit_binary_pack_alloc() 1165 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc() 1166 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc() 1169 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc() 1172 return ro_header; in bpf_jit_binary_pack_alloc() 1176 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header, in bpf_jit_binary_pack_finalize() argument [all …]
|
/linux-6.12.1/include/linux/ |
D | filter.h | 1247 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header, 1249 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,
|