static int __bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len) { union bpf_attr attr; int err; memset(&attr, 0, sizeof(attr)); attr.info.bpf_fd = bpf_fd; attr.info.info_len = *info_len; attr.info.info = (long) info; err = skel_sys_bpf(BPF_OBJ_GE...
BPF_OBJ_GET_INFO_BY_FD cmd for exposing the bpf_prog's and bpf_map's info. The obj's info, which will be extended (and get bigger) over time, is separated from the bpf_attr to avoid bloating the bpf_attr. Signed-off-by: Martin KaFai Lau <ka...@fb.com> Acked-by: Alexei Sta...