libbpf: Expose btf__align_of() API

Expose BTF API that calculates type alignment requirements.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191214014341.3442258-7-andriin@fb.com
This commit is contained in:
Andrii Nakryiko 2019-12-13 17:43:30 -08:00 • committed by Alexei Starovoitov
commit 3d208f4ca1
4 changed files with 47 additions and 41 deletions