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

2019-02-08 Thread Andrii Nakryiko
On Fri, Feb 8, 2019 at 9:13 AM Yonghong Song wrote: > > > > On 2/7/19 6:55 PM, 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, that's similar to > > btf_

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

2019-02-08 Thread Yonghong Song
On 2/7/19 6:55 PM, 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, that's similar to > btf__get_raw_data(), allowing users of libbpf to get access to raw > re

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

2019-02-07 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, that's similar to btf__get_raw_data(), allowing users of libbpf to get access to raw representation of .BTF.ext section. Signed-off-by: Andr