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)
commit571d01a9d06f984ce51bd7625036e67f7f1f886c
tree86ff9f6b0d34d748bb5a805a4dbe6333c534c341
parentc6f1bfe89ac95dc829dcb4ed54780da134ac5fce
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/test_btf_decl_tag.c [moved from tools/testing/selftests/bpf/progs/btf_decl_tag.c with 100% similarity]