diff options
author | Daniel Müller <deso@posteo.net> | 2022-05-24 01:04:24 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-06-03 01:26:28 +0200 |
commit | 0b27b3d9fdf88c132b095a30ee2c61cd6e56e6cc (patch) | |
tree | 2b7824110c83f617466e47fc9cb56249fc60a347 /tools/bpf | |
parent | libbpf: Introduce libbpf_bpf_attach_type_str (diff) | |
download | linux-0b27b3d9fdf88c132b095a30ee2c61cd6e56e6cc.tar.xz linux-0b27b3d9fdf88c132b095a30ee2c61cd6e56e6cc.zip |
selftests/bpf: Add test for libbpf_bpf_attach_type_str
This change adds a test for libbpf_bpf_attach_type_str. The test
retrieves all variants of the bpf_attach_type enumeration using BTF and
makes sure that the function under test works as expected for them.
Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220523230428.3077108-9-deso@posteo.net
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions