libbpf: Add btf__new_empty() to create an empty BTF object
Add an ability to create an empty BTF object from scratch. This is going to be used by pahole for BTF encoding. And also by selftest for convenient creation of BTF objects. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20200926011357.2366158-7-andriin@fb.com
This commit is contained in:

committed by
Alexei Starovoitov

parent
919d2b1dbb
commit
a871b04310
@@ -307,6 +307,7 @@ LIBBPF_0.2.0 {
|
||||
bpf_program__section_name;
|
||||
btf__add_str;
|
||||
btf__find_str;
|
||||
btf__new_empty;
|
||||
perf_buffer__buffer_cnt;
|
||||
perf_buffer__buffer_fd;
|
||||
perf_buffer__epoll_fd;
|
||||
|
Reference in New Issue
Block a user