libbpf: Expose btf__align_of() API
authorAndrii Nakryiko <andriin@fb.com>
Sat, 14 Dec 2019 01:43:30 +0000 (17:43 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 15 Dec 2019 23:58:05 +0000 (15:58 -0800)
commit3d208f4ca111a614903f49d5a77b93ddc6de294e
treef698fa181502b4cacb53743a79fcfbfac6a88960
parent544402d4b49332a4a9b2b8fff20f9d9f5ef86559
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
tools/lib/bpf/btf.c
tools/lib/bpf/btf.h
tools/lib/bpf/btf_dump.c
tools/lib/bpf/libbpf.map