Searched refs:ro_header (Results 1 – 4 of 4) sorted by relevance
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 2177 struct bpf_binary_header *ro_header; in bpf_int_jit_compile() local 2195 ro_header = jit_data->ro_header; in bpf_int_jit_compile() 2198 image_ptr = (void *)header + ((void *)ro_image_ptr - (void *)ro_header); in bpf_int_jit_compile() 2230 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, sizeof(u32), in bpf_int_jit_compile() 2232 if (!ro_header) in bpf_int_jit_compile() 2271 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile() 2273 ro_header = NULL; in bpf_int_jit_compile() 2282 bpf_flush_icache(ro_header, ctx.ro_image + ctx.idx); in bpf_int_jit_compile() 2286 jit_data->ro_header = ro_header; in bpf_int_jit_compile() 2316 bpf_arch_text_copy(&ro_header->size, &header->size, sizeof(header->size)); in bpf_int_jit_compile() [all …]
|
| H A D | bpf_jit.h | 29 struct bpf_binary_header *ro_header; member
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 2002 struct bpf_binary_header *ro_header; member 2010 struct bpf_binary_header *ro_header = NULL; in bpf_int_jit_compile() local 2050 ro_header = jit_data->ro_header; in bpf_int_jit_compile() 2053 - (void *)ro_header); in bpf_int_jit_compile() 2095 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, in bpf_int_jit_compile() 2098 if (!ro_header) in bpf_int_jit_compile() 2164 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile() 2166 ro_header = NULL; in bpf_int_jit_compile() 2174 jit_data->ro_header = ro_header; in bpf_int_jit_compile() 2196 if (!ro_header && priv_stack_ptr) { in bpf_int_jit_compile() [all …]
|
| /linux/kernel/bpf/ |
| H A D | core.c | 1135 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local 1142 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc() 1146 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns); in bpf_jit_binary_pack_alloc() 1147 if (!ro_header) { in bpf_jit_binary_pack_alloc() 1154 bpf_prog_pack_free(ro_header, size); in bpf_jit_binary_pack_alloc() 1163 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc() 1164 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc() 1167 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc() 1170 return ro_header; in bpf_jit_binary_pack_alloc() 1174 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header, in bpf_jit_binary_pack_finalize() argument [all …]
|