summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/metadata.c
AgeCommit message (Collapse)AuthorFilesLines
2020-09-16selftests/bpf: Test load and dump metadata with btftool and skelYiFei Zhu1-0/+141
This is a simple test to check that loading and dumping metadata in btftool works, whether or not metadata contents are used by the program. A C test is also added to make sure the skeleton code can read the metadata values. Signed-off-by: YiFei Zhu <zhuyifei@google.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Cc: YiFei Zhu <zhuyifei1999@gmail.com> Link: https://lore.kernel.org/bpf/20200915234543.3220146-6-sdf@google.com