Skip to content
Snippets Groups Projects
Commit f04f2ce6 authored by Daniel Xu's avatar Daniel Xu Committed by Martin KaFai Lau
Browse files

bpf: selftests: Add verifier tests for CO-RE bitfield writes


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.

Acked-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Signed-off-by: default avatarDaniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/72698a1080fa565f541d5654705255984ea2a029.1702325874.git.dxu@dxuuu.xyz


Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
parent 7d19c00e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment