Lines Matching refs:skel
111 struct test_skmsg_load_helpers *skel; in test_skmsg_helpers() local
114 skel = test_skmsg_load_helpers__open_and_load(); in test_skmsg_helpers()
115 if (CHECK_FAIL(!skel)) { in test_skmsg_helpers()
120 verdict = bpf_program__fd(skel->progs.prog_msg_verdict); in test_skmsg_helpers()
121 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers()
135 test_skmsg_load_helpers__destroy(skel); in test_skmsg_helpers()
142 struct test_sockmap_update *skel; in test_sockmap_update() local
152 skel = test_sockmap_update__open_and_load(); in test_sockmap_update()
153 if (CHECK(!skel, "open_and_load", "cannot load skeleton\n")) in test_sockmap_update()
156 prog = bpf_program__fd(skel->progs.copy_sock_map); in test_sockmap_update()
157 src = bpf_map__fd(skel->maps.src); in test_sockmap_update()
159 dst_map = skel->maps.dst_sock_map; in test_sockmap_update()
161 dst_map = skel->maps.dst_sock_hash; in test_sockmap_update()
179 compare_cookies(skel->maps.src, dst_map); in test_sockmap_update()
182 test_sockmap_update__destroy(skel); in test_sockmap_update()
189 struct test_sockmap_invalid_update *skel; in test_sockmap_invalid_update() local
192 skel = test_sockmap_invalid_update__open_and_load(); in test_sockmap_invalid_update()
193 if (CHECK(skel, "open_and_load", "verifier accepted map_update\n")) in test_sockmap_invalid_update()
194 test_sockmap_invalid_update__destroy(skel); in test_sockmap_invalid_update()
203 struct bpf_iter_sockmap *skel; in test_sockmap_copy() local
209 skel = bpf_iter_sockmap__open_and_load(); in test_sockmap_copy()
210 if (CHECK(!skel, "bpf_iter_sockmap__open_and_load", "skeleton open_and_load failed\n")) in test_sockmap_copy()
214 src = skel->maps.sockmap; in test_sockmap_copy()
218 src = skel->maps.sockhash; in test_sockmap_copy()
245 link = bpf_program__attach_iter(skel->progs.copy, &opts); in test_sockmap_copy()
260 if (CHECK(skel->bss->elems != num_elems, "elems", "got %u expected %u\n", in test_sockmap_copy()
261 skel->bss->elems, num_elems)) in test_sockmap_copy()
264 if (CHECK(skel->bss->socks != num_sockets, "socks", "got %u expected %u\n", in test_sockmap_copy()
265 skel->bss->socks, num_sockets)) in test_sockmap_copy()
268 compare_cookies(src, skel->maps.dst); in test_sockmap_copy()
280 bpf_iter_sockmap__destroy(skel); in test_sockmap_copy()