mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
selftests/bpf: test sockopt section name
Add tests that make sure libbpf section detection works. Cc: Andrii Nakryiko <andriin@fb.com> Cc: Martin Lau <kafai@fb.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
4cdbfb59c4
commit
47ac90bbce
1 changed files with 10 additions and 0 deletions
|
@ -134,6 +134,16 @@ static struct sec_name_test tests[] = {
|
|||
{0, BPF_PROG_TYPE_CGROUP_SYSCTL, BPF_CGROUP_SYSCTL},
|
||||
{0, BPF_CGROUP_SYSCTL},
|
||||
},
|
||||
{
|
||||
"cgroup/getsockopt",
|
||||
{0, BPF_PROG_TYPE_CGROUP_SOCKOPT, BPF_CGROUP_GETSOCKOPT},
|
||||
{0, BPF_CGROUP_GETSOCKOPT},
|
||||
},
|
||||
{
|
||||
"cgroup/setsockopt",
|
||||
{0, BPF_PROG_TYPE_CGROUP_SOCKOPT, BPF_CGROUP_SETSOCKOPT},
|
||||
{0, BPF_CGROUP_SETSOCKOPT},
|
||||
},
|
||||
};
|
||||
|
||||
static int test_prog_type_by_name(const struct sec_name_test *test)
|
||||
|
|
Loading…
Add table
Reference in a new issue