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
parent 544402d4b4
commit 3d208f4ca1
4 changed files with 47 additions and 41 deletions

View File

@@ -212,4 +212,5 @@ LIBBPF_0.0.6 {
LIBBPF_0.0.7 {
global:
bpf_program__attach;
btf__align_of;
} LIBBPF_0.0.6;