OSDN Git Service

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)
commit8800cd031af085807028656c6ba7eb7908d78262
tree72415988e295a8ecf3655c9ac4fe0168956508bc
parenteb04bbb608e683f8fd3ef7f716e2fa32dd90861f
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: c0fa1b6c3efc ("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