Skip to content

Conversation

@kernel-patches-bot
Copy link

Pull request for series with
subject: Add BTF_KIND_FLOAT support
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=431143

kernel-patches-bot and others added 7 commits February 9, 2021 19:18
Add a new kind value, expand the kind bitfield, add a macro for parsing the additional u32. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
The logic follows that of BTF_KIND_INT most of the time, some functions are even unified to work on both. Sanitization replaces BTF_KIND_FLOATs with equally-sized BTF_KIND_INTs on older kernels. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Only dumping support needs to be adjusted, the code structure follows that of BTF_KIND_INT. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
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: Ilya Leoshkevich <iii@linux.ibm.com>
Test the good variants as well as potential malformed ones. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
The description is based on BTF_KIND_INT. Also document the expansion of the kind bitfield. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
@kernel-patches-bot
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=431143 expired. Closing PR.

@kernel-patches-bot kernel-patches-bot deleted the series/431143=>bpf-next branch February 12, 2021 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants