]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: add __uint and __type macro for BTF-defined maps
authorAndrii Nakryiko <andriin@fb.com>
Fri, 5 Jul 2019 15:50:10 +0000 (08:50 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Jul 2019 20:52:25 +0000 (22:52 +0200)
commitcaedc0674b42f05be2d88bc021c2ad5fd42a118b
treef7c03072a0a2feed3174f8f6d154c1bada6149b6
parent1567886d50cffe2136b0ddef7cf544ba4ce0462b
selftests/bpf: add __uint and __type macro for BTF-defined maps

Add simple __uint and __type macro that hide details of how type and
integer values are captured in BTF-defined maps.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/bpf_helpers.h