]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Generate BTF_KIND_FLOAT when linking vmlinux
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 13 Apr 2021 19:00:43 +0000 (21:00 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 13 Apr 2021 21:34:27 +0000 (14:34 -0700)
commit30543eb069c522f61fdf172f3dd1704c352d7a6c
tree3e9dd11dd9475f029f1b0c249c1e92e2e4b6852a
parent65aac0a7b88d7ea5670b9774886b40e6b9f82e3d
bpf: Generate BTF_KIND_FLOAT when linking vmlinux

pahole v1.21 supports the --btf_gen_floats flag, which makes it
generate the information about the floating-point types [1].

Adjust link-vmlinux.sh to pass this flag to pahole in case it's
supported, which is determined using a simple version check.

[1] https://lore.kernel.org/dwarves/YHRiXNX1JUF2Az0A@kernel.org/

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210413190043.21918-1-iii@linux.ibm.com
scripts/link-vmlinux.sh