]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: fix two test_btf unit test cases
authorMartin KaFai Lau <kafai@fb.com>
Tue, 27 Nov 2018 21:23:29 +0000 (13:23 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 29 Nov 2018 00:03:05 +0000 (16:03 -0800)
commitf82cd093d6f6f78d527304d62b61d521ccae1574
tree72415988e295a8ecf3655c9ac4fe0168956508bc
parent1e5bcbd132cef9fb13d5c312709cfc8b26a8a661
tools/bpf: fix two test_btf unit test cases

There are two unit test cases, which should encode
TYPEDEF type, but instead encode PTR type.
The error is flagged out after enforcing name
checking in the previous patch.

Fixes: d998e17d2c13 ("bpf: btf: Add BTF tests")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_btf.c