]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd1b73178bfd8234e9586ddee0c5431439fcd011
treea75c3cb25d1bf2134b766f4faf95fb337b7a01c3
parentde4868eca78745c80e84b6c402d9c51e8f2f9325
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