diff options
author | Mauricio Vásquez <mauricio@kinvolk.io> | 2022-02-15 17:58:56 -0500 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-02-16 10:14:34 -0800 |
commit | 704c91e59fe045708aa3f11d0c2bf9c83e39d24c (patch) | |
tree | c21e843d3c3be73c57977cde514121d3b806ec4f /tools/testing/selftests/bpf/prog_tests/mmap.c | |
parent | 1d1ffbf7f0b261fd5dcac2cd40a92b9394df08f6 (diff) |
selftests/bpf: Test "bpftool gen min_core_btf"
This commit reuses the core_reloc test to check if the BTF files
generated with "bpftool gen min_core_btf" are correct. This introduces
test_core_btfgen() that runs all the core_reloc tests, but this time
the source BTF files are generated by using "bpftool gen min_core_btf".
The goal of this test is to check that the generated files are usable,
and not to check if the algorithm is creating an optimized BTF file.
Signed-off-by: Mauricio Vásquez <mauricio@kinvolk.io>
Signed-off-by: Rafael David Tinoco <rafael.tinoco@aquasec.com>
Signed-off-by: Lorenzo Fontana <lorenzo.fontana@elastic.co>
Signed-off-by: Leonardo Di Donato <leonardo.didonato@elastic.co>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220215225856.671072-8-mauricio@kinvolk.io
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/mmap.c')
0 files changed, 0 insertions, 0 deletions