Lines Matching refs:aux
2166 static int bpf_tail_call_get_aux(struct bpf_jited_aux *aux) in bpf_tail_call_get_aux() argument
2171 ret = bpf_derive_elf_map_from_fdinfo(aux->map_fd, &tmp, &aux->map); in bpf_tail_call_get_aux()
2173 ret = bpf_derive_prog_from_fdinfo(aux->prog_fd, &aux->prog); in bpf_tail_call_get_aux()
2207 struct bpf_jited_aux aux = {}; in bpf_fill_prog_arrays() local
2216 aux.map_fd = ctx->map_fds[idx]; in bpf_fill_prog_arrays()
2217 aux.prog_fd = fd; in bpf_fill_prog_arrays()
2219 if (bpf_tail_call_get_aux(&aux)) in bpf_fill_prog_arrays()
2221 if (!aux.map.owner.type) in bpf_fill_prog_arrays()
2224 if (aux.prog.type != aux.map.owner.type) in bpf_fill_prog_arrays()
2226 aux.map.owner.type, aux.prog.type); in bpf_fill_prog_arrays()
2227 if (aux.prog.jited != aux.map.owner.jited) in bpf_fill_prog_arrays()
2229 aux.map.owner.jited ? "is" : "not", in bpf_fill_prog_arrays()
2230 aux.prog.jited ? "is" : "not"); in bpf_fill_prog_arrays()
2548 const struct bpf_map_data *aux, unsigned int entries) in bpf_map_set_send() argument
2551 .aux.uds_ver = BPF_SCM_AUX_VER, in bpf_map_set_send()
2552 .aux.num_ent = entries, in bpf_map_set_send()
2558 strncpy(msg.aux.obj_name, aux->obj, sizeof(msg.aux.obj_name)); in bpf_map_set_send()
2559 memcpy(&msg.aux.obj_st, aux->st, sizeof(msg.aux.obj_st)); in bpf_map_set_send()
2562 amsg_buf = (char *)msg.aux.ent; in bpf_map_set_send()
2570 memcpy(cmsg_buf, &aux->fds[i], sizeof(aux->fds[0]) * min_fd); in bpf_map_set_send()
2571 memcpy(amsg_buf, &aux->ent[i], sizeof(aux->ent[0]) * min_fd); in bpf_map_set_send()
2582 bpf_map_set_recv(int fd, int *fds, struct bpf_map_aux *aux, in bpf_map_set_recv() argument
2592 amsg_buf = (char *)msg.aux.ent; in bpf_map_set_recv()
2593 mmsg_buf = (char *)&msg.aux; in bpf_map_set_recv()
2611 if (msg.aux.uds_ver != BPF_SCM_AUX_VER) in bpf_map_set_recv()
2619 memcpy(&aux->ent[i], amsg_buf, sizeof(aux->ent[0]) * min_fd); in bpf_map_set_recv()
2620 memcpy(aux, mmsg_buf, offsetof(struct bpf_map_aux, ent)); in bpf_map_set_recv()
2622 needed = aux->num_ent; in bpf_map_set_recv()
2667 int bpf_recv_map_fds(const char *path, int *fds, struct bpf_map_aux *aux, in bpf_recv_map_fds() argument
2689 ret = bpf_map_set_recv(fd, fds, aux, entries); in bpf_recv_map_fds()