Searched refs:ro_header (Results 1 – 2 of 2) sorted by relevance
1066 struct bpf_binary_header *ro_header; in bpf_jit_binary_pack_alloc() local1073 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc()1077 ro_header = bpf_prog_pack_alloc(size, bpf_fill_ill_insns); in bpf_jit_binary_pack_alloc()1078 if (!ro_header) { in bpf_jit_binary_pack_alloc()1085 bpf_arch_text_copy(&ro_header->size, &size, sizeof(size)); in bpf_jit_binary_pack_alloc()1086 bpf_prog_pack_free(ro_header); in bpf_jit_binary_pack_alloc()1095 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()1096 BPF_PROG_CHUNK_SIZE - sizeof(*ro_header)); in bpf_jit_binary_pack_alloc()1099 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()1102 return ro_header; in bpf_jit_binary_pack_alloc()[all …]
1056 struct bpf_binary_header *ro_header,1058 void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,