Home
last modified time | relevance | path

Searched refs:query_prog_cnt (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dlsm_cgroup.c19 static __u32 query_prog_cnt(int cgroup_fd, const char *attach_func) in query_prog_cnt() function
105 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_sk_alloc_security"), 0, "prog count"); in test_lsm_cgroup_functional()
106 ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 0, "total prog count"); in test_lsm_cgroup_functional()
114 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_sk_alloc_security"), 1, "prog count"); in test_lsm_cgroup_functional()
115 ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 1, "total prog count"); in test_lsm_cgroup_functional()
117 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_inet_csk_clone"), 0, "prog count"); in test_lsm_cgroup_functional()
121 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_inet_csk_clone"), 1, "prog count"); in test_lsm_cgroup_functional()
122 ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 2, "total prog count"); in test_lsm_cgroup_functional()
126 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_post_create"), 0, "prog count"); in test_lsm_cgroup_functional()
131 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_post_create"), 1, "prog count"); in test_lsm_cgroup_functional()
[all …]