]> 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)
commite85dbeb312b086e900526c8554dd39db34d48607
tree72415988e295a8ecf3655c9ac4fe0168956508bc
parenteb49bb9eef060516dcf564c296729dad3ce998b7
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: 0cafe40328e4 ("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