Re: [PATCH v2 bpf-next 07/11] libbpf: allow specifying map definitions using BTF

2019-06-17 Thread Song Liu
> On Jun 17, 2019, at 12:26 PM, Andrii Nakryiko wrote: > > This patch adds support for a new way to define BPF maps. It relies on > BTF to describe mandatory and optional attributes of a map, as well as > captures type information of key and value naturally. This eliminates > the need for BPF_

[PATCH v2 bpf-next 07/11] libbpf: allow specifying map definitions using BTF

2019-06-17 Thread Andrii Nakryiko
This patch adds support for a new way to define BPF maps. It relies on BTF to describe mandatory and optional attributes of a map, as well as captures type information of key and value naturally. This eliminates the need for BPF_ANNOTATE_KV_PAIR hack and ensures key/value sizes are always in sync w