Re: [PATCH bpf-next v5 5/9] bpf: selftests: Add verifier tests for CO-RE bitfield writes
From: Martin KaFai Lau
Date: Wed Dec 13 2023 - 19:04:35 EST
On 12/11/23 12:20 PM, Daniel Xu wrote:
Add some tests that exercise BPF_CORE_WRITE_BITFIELD() macro. Since some
non-trivial bit fiddling is going on, make sure various edge cases (such
as adjacent bitfields and bitfields at the edge of structs) are
exercised.
Hi DanielXu, I have pushed the libbpf changes (adding BPF_CORE_WRITE_BITFIELD)
and verifier test in patch 3-5 which is useful by itself. e.g. Another patchset
can start using it also:
https://lore.kernel.org/bpf/8fccb066-6d17-4fa8-ba67-287042046ea4@xxxxxxxxx/
Thanks.