Home
last modified time | relevance | path

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

/linux/arch/loongarch/net/
H A Dbpf_jit.c2205 struct bpf_binary_header *ro_header; in bpf_int_jit_compile()
2223 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
2226 image_ptr = (void *)header + ((void *)ro_image_ptr - (void *)ro_header); in bpf_int_jit_compile()
2258 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, sizeof(u32), in bpf_int_jit_compile()
2260 if (!ro_header) in bpf_int_jit_compile()
2299 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_int_jit_compile()
2300 /* ro_header and header have been freed */ in bpf_int_jit_compile()
2301 ro_header = NULL; in bpf_int_jit_compile()
2310 bpf_flush_icache(ro_header, ct in bpf_int_jit_compile()
2177 struct bpf_binary_header *ro_header; bpf_int_jit_compile() local
[all...]
H A Dbpf_jit.h29 struct bpf_binary_header *ro_header; member
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c2076 struct bpf_binary_header *ro_header; in bpf_int_jit_compile()
2084 struct bpf_binary_header *ro_header = NULL; in bpf_int_jit_compile()
2125 ro_header = jit_data->ro_header; in bpf_int_jit_compile()
2128 - (void *)ro_header); in bpf_int_jit_compile()
2178 ro_header = bpf_jit_binary_pack_alloc(image_size, &ro_image_ptr, in bpf_int_jit_compile()
2181 if (!ro_header) in bpf_int_jit_compile()
2247 if (WARN_ON(bpf_jit_binary_pack_finalize(ro_header, header))) { in bpf_jit_supports_subprog_tailcalls()
2248 /* ro_header and header has been freed */ in bpf_jit_supports_subprog_tailcalls()
2249 ro_header in bpf_jit_supports_subprog_tailcalls()
2002 struct bpf_binary_header *ro_header; global() member
2010 struct bpf_binary_header *ro_header = NULL; bpf_int_jit_compile() local
[all...]
/linux/kernel/bpf/
H A Dcore.c1135 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()
1173 /* Copy JITed text from rw_header to its final location, the ro_header
1174 bpf_jit_binary_pack_finalize(struct bpf_binary_header * ro_header,struct bpf_binary_header * rw_header) bpf_jit_binary_pack_finalize() argument
1200 bpf_jit_binary_pack_free(struct bpf_binary_header * ro_header,struct bpf_binary_header * rw_header) bpf_jit_binary_pack_free() argument
[all...]
/linux/include/linux/
H A Dfilter.h1346 int bpf_jit_binary_pack_finalize(struct bpf_binary_header *ro_header, in bpf_jit_dump()
1348 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header, in bpf_jit_dump()