OSDN Git Service

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)
commit00acd00814527a1856c92beda17475205bddaba6
treef7c03072a0a2feed3174f8f6d154c1bada6149b6
parentef99b02b23ef4308057573f76750e661b5aea3e1
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