On Wed, Dec 13, 2023 at 03:58:39PM -0800, Martin KaFai Lau wrote:
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@linux.dev/
Thanks.
Sounds good. I'll rebase my patchset on top of bpf-next.
Thanks, Daniel