Re: [PATCH bpf-next] bpf: make bpf_link_info.iter similar to bpf_iter_link_info

2020-08-28 Thread Daniel Borkmann
On 8/28/20 7:19 AM, Yonghong Song wrote: bpf_link_info.iter is used by link_query to return bpf_iter_link_info to user space. Fields may be different ,e.g., map_fd vs. map_id, so we cannot reuse the exact structure. But make them similar, e.g., struct bpf_link_info { /* common fields */

[PATCH bpf-next] bpf: make bpf_link_info.iter similar to bpf_iter_link_info

2020-08-27 Thread Yonghong Song
bpf_link_info.iter is used by link_query to return bpf_iter_link_info to user space. Fields may be different ,e.g., map_fd vs. map_id, so we cannot reuse the exact structure. But make them similar, e.g., struct bpf_link_info { /* common fields */ union { struct { ... } raw_trace