selftests/bpf: Test new enum kflag and enum64 API functions
authorYonghong Song <yhs@fb.com>
Tue, 7 Jun 2022 06:27:03 +0000 (23:27 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Jun 2022 17:20:43 +0000 (10:20 -0700)
commit2b7301457ffe7be085744fa49f1244a71c1c6f1d
treec794662471b065a9a40acac0c42b52c137bdea9d
parentd932815a4394b6e8e861f75600666db40c706b8b
selftests/bpf: Test new enum kflag and enum64 API functions

Add tests to use the new enum kflag and enum64 API functions
in selftest btf_write.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220607062703.3724287-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/btf_helpers.c
tools/testing/selftests/bpf/prog_tests/btf_write.c