commit | a871b04310248024e022e104eba3ec81d144cc64 | [log] [tgz] |
---|---|---|
author | Andrii Nakryiko <andriin@fb.com> | Fri Sep 25 18:13:54 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Mon Sep 28 17:27:32 2020 -0700 |
tree | fca80aa038de4a1ff389b3f1e3edc1138f10b4b5 | |
parent | 919d2b1dbb074d438027135ba644411931179a59 [diff] |
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