Re: [PATCH bpf-next 3/6] bpf: btf: Add struct bpf_btf_info

2018-05-08 Thread Song Liu
> On May 4, 2018, at 2:49 PM, Martin KaFai Lau wrote: > > During BPF_OBJ_GET_INFO_BY_FD on a btf_fd, the current bpf_attr's > info.info is directly filled with the BTF binary data. It is > not extensible. In this case, we want to add BTF ID. > > This patch adds "struct bpf_btf_info" which ha

[PATCH bpf-next 3/6] bpf: btf: Add struct bpf_btf_info

2018-05-04 Thread Martin KaFai Lau
During BPF_OBJ_GET_INFO_BY_FD on a btf_fd, the current bpf_attr's info.info is directly filled with the BTF binary data. It is not extensible. In this case, we want to add BTF ID. This patch adds "struct bpf_btf_info" which has the BTF ID as one of its member. The BTF binary data itself is expo