btf: extract BTF type size calculation
authorAndrii Nakryiko <andriin@fb.com>
Tue, 5 Feb 2019 01:29:44 +0000 (17:29 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Feb 2019 15:52:57 +0000 (16:52 +0100)
commit69eaab04c675ef2d0127a80b3395aa90dfd1061f
treea75c3cb25d1bf2134b766f4faf95fb337b7a01c3
parenta8a1f7d09cfc7e18874786c7634c9e71384fcd4e
btf: extract BTF type size calculation

This pre-patch extracts calculation of amount of space taken by BTF type descriptor
for later reuse by btf_dedup functionality.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/btf.c