On 2/14/19 3:01 PM, Andrey Ignatov wrote:
> Add new accessor for bpf_object to get opaque struct btf * from it.
> 
> struct btf * is needed for all operations with BTF and it's present in
> bpf_object. The only thing missing is a way to get it.
> 
> Example use-case is to get BTF key_type_id an value_type_id for a map in
nit: an => and
> bpf_object. It can be done with btf__get_map_kv_tids() but that function
> requires struct btf *.
> 
> Similar API can be added for struct btf_ext but no use-case for it yet.
> 
> Signed-off-by: Andrey Ignatov <r...@fb.com>

Acked-by: Yonghong Song <y...@fb.com>

Reply via email to