]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: rename btf_decl_tag.c to test_btf_decl_tag.c
authorYonghong Song <yhs@fb.com>
Thu, 27 Jan 2022 15:46:11 +0000 (07:46 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 27 Jan 2022 20:03:46 +0000 (12:03 -0800)
commitb8938d917ab5e810bc6aa7820d8b2b96d83966c5
tree86ff9f6b0d34d748bb5a805a4dbe6333c534c341
parent02824895791caa2b5b9d04d51a64ae6faafef56f
selftests/bpf: rename btf_decl_tag.c to test_btf_decl_tag.c

The uapi btf.h contains the following declaration:
  struct btf_decl_tag {
       __s32   component_idx;
  };

The skeleton will also generate a struct with name
"btf_decl_tag" for bpf program btf_decl_tag.c.

Rename btf_decl_tag.c to test_btf_decl_tag.c so
the corresponding skeleton struct name becomes
"test_btf_decl_tag". This way, we could include
uapi btf.h in prog_tests/btf_tag.c.
There is no functionality change for this patch.

Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220127154611.656699-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/btf_tag.c
tools/testing/selftests/bpf/progs/btf_decl_tag.c [deleted file]
tools/testing/selftests/bpf/progs/test_btf_decl_tag.c [new file with mode: 0644]