tools/bpf: change selftest test_btf for both jit and non-jit
authorYonghong Song <yhs@fb.com>
Sun, 25 Nov 2018 07:20:45 +0000 (23:20 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 27 Nov 2018 01:57:10 +0000 (17:57 -0800)
commit812dd689da2a9af1208449588e4529c89a9d661d
tree7cd26f6f2f345411b5c5ce34b17d1c4efb19303d
parentba64e7d8525236aa56ab58ba3a3a71615c4ee289
tools/bpf: change selftest test_btf for both jit and non-jit

The selftest test_btf is changed to test both jit and non-jit.
The test result should be the same regardless of whether jit
is enabled or not.

Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_btf.c