Lines Matching refs:skel
113 struct test_skmsg_load_helpers *skel; in test_skmsg_helpers() local
116 skel = test_skmsg_load_helpers__open_and_load(); in test_skmsg_helpers()
117 if (CHECK_FAIL(!skel)) { in test_skmsg_helpers()
122 verdict = bpf_program__fd(skel->progs.prog_msg_verdict); in test_skmsg_helpers()
123 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers()
137 test_skmsg_load_helpers__destroy(skel); in test_skmsg_helpers()
144 struct test_sockmap_update *skel; in test_sockmap_update() local
154 skel = test_sockmap_update__open_and_load(); in test_sockmap_update()
155 if (CHECK(!skel, "open_and_load", "cannot load skeleton\n")) in test_sockmap_update()
158 prog = bpf_program__fd(skel->progs.copy_sock_map); in test_sockmap_update()
159 src = bpf_map__fd(skel->maps.src); in test_sockmap_update()
161 dst_map = skel->maps.dst_sock_map; in test_sockmap_update()
163 dst_map = skel->maps.dst_sock_hash; in test_sockmap_update()
181 compare_cookies(skel->maps.src, dst_map); in test_sockmap_update()
184 test_sockmap_update__destroy(skel); in test_sockmap_update()
191 struct test_sockmap_invalid_update *skel; in test_sockmap_invalid_update() local
194 skel = test_sockmap_invalid_update__open_and_load(); in test_sockmap_invalid_update()
195 if (CHECK(skel, "open_and_load", "verifier accepted map_update\n")) in test_sockmap_invalid_update()
196 test_sockmap_invalid_update__destroy(skel); in test_sockmap_invalid_update()
205 struct bpf_iter_sockmap *skel; in test_sockmap_copy() local
211 skel = bpf_iter_sockmap__open_and_load(); in test_sockmap_copy()
212 if (CHECK(!skel, "bpf_iter_sockmap__open_and_load", "skeleton open_and_load failed\n")) in test_sockmap_copy()
216 src = skel->maps.sockmap; in test_sockmap_copy()
220 src = skel->maps.sockhash; in test_sockmap_copy()
247 link = bpf_program__attach_iter(skel->progs.copy, &opts); in test_sockmap_copy()
262 if (CHECK(skel->bss->elems != num_elems, "elems", "got %u expected %u\n", in test_sockmap_copy()
263 skel->bss->elems, num_elems)) in test_sockmap_copy()
266 if (CHECK(skel->bss->socks != num_sockets, "socks", "got %u expected %u\n", in test_sockmap_copy()
267 skel->bss->socks, num_sockets)) in test_sockmap_copy()
270 compare_cookies(src, skel->maps.dst); in test_sockmap_copy()
282 bpf_iter_sockmap__destroy(skel); in test_sockmap_copy()
288 struct test_sockmap_skb_verdict_attach *skel; in test_sockmap_skb_verdict_attach() local
291 skel = test_sockmap_skb_verdict_attach__open_and_load(); in test_sockmap_skb_verdict_attach()
292 if (CHECK_FAIL(!skel)) { in test_sockmap_skb_verdict_attach()
297 verdict = bpf_program__fd(skel->progs.prog_skb_verdict); in test_sockmap_skb_verdict_attach()
298 map = bpf_map__fd(skel->maps.sock_map); in test_sockmap_skb_verdict_attach()
315 test_sockmap_skb_verdict_attach__destroy(skel); in test_sockmap_skb_verdict_attach()