Re: [PATCH v4 bpf-next 3/4] btf: expose API to work with raw btf_ext data

2019-02-08 Thread Yonghong Song
On 2/8/19 11:19 AM, Andrii Nakryiko wrote: > This patch changes struct btf_ext to retain original data in sequential > block of memory, which makes it possible to expose > btf_ext__get_raw_data() interface similar to btf__get_raw_data(), allowing > users of libbpf to get access to raw representat

[PATCH v4 bpf-next 3/4] btf: expose API to work with raw btf_ext data

2019-02-08 Thread Andrii Nakryiko
This patch changes struct btf_ext to retain original data in sequential block of memory, which makes it possible to expose btf_ext__get_raw_data() interface similar to btf__get_raw_data(), allowing users of libbpf to get access to raw representation of .BTF.ext section. Signed-off-by: Andrii Nakry