bpf: Add BTF_KIND_FLOAT support
mainline inclusion from mainline-5.13-rc1 commit b1828f0b category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5Q927 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b1828f0b04828aa8cccadf00a702f459caefeed9 ------------------------------------------------- On the kernel side, introduce a new btf_kind_operations. It is similar to that of BTF_KIND_INT, however, it does not need to handle encodings and bit offsets. Do not implement printing, since the kernel does not know how to format floating-point values. Signed-off-by: NIlya Leoshkevich <iii@linux.ibm.com> Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Acked-by: NYonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20210226202256.116518-7-iii@linux.ibm.com (cherry picked from commit b1828f0b) Signed-off-by: NWang Yufen <wangyufen@huawei.com> Conflicts: kernel/bpf/btf.c
Showing
想要评论请 注册 或 登录