Martin KaFai Lau 62dab84c81 bpf: btf: Add struct bpf_btf_info
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 exposed through
the "btf" and "btf_size" members.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-05-09 17:25:13 +02:00
..
2018-05-09 17:25:13 +02:00
2018-03-31 02:15:18 +02:00
2018-05-04 23:41:03 +02:00
2017-01-09 16:56:27 -05:00
2018-04-30 10:55:56 +02:00
2017-11-15 19:46:32 +09:00
2018-04-29 08:45:53 -07:00
2018-05-09 17:25:13 +02:00