Re: [PATCH bpf-next 01/11] libbpf: factor out common operations in BTF writing APIs

2020-10-29 Thread Song Liu
> On Oct 28, 2020, at 5:58 PM, Andrii Nakryiko wrote: > > Factor out commiting of appended type data. Also extract fetching the very > last type in the BTF (to append members to). These two operations are common > across many APIs and will be easier to refactor with split BTF, if they are > ex

[PATCH bpf-next 01/11] libbpf: factor out common operations in BTF writing APIs

2020-10-28 Thread Andrii Nakryiko
Factor out commiting of appended type data. Also extract fetching the very last type in the BTF (to append members to). These two operations are common across many APIs and will be easier to refactor with split BTF, if they are extracted into a single place. Signed-off-by: Andrii Nakryiko --- to