Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_link.c11 struct test_xdp_link *skel1 = NULL, *skel2 = NULL; in serial_test_xdp_link() local
26 skel2 = test_xdp_link__open_and_load(); in serial_test_xdp_link()
27 if (!ASSERT_OK_PTR(skel2, "skel_load")) in serial_test_xdp_link()
29 prog_fd2 = bpf_program__fd(skel2->progs.xdp_handler); in serial_test_xdp_link()
97 link = bpf_program__attach_xdp(skel2->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link()
107 link = bpf_program__attach_xdp(skel2->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link()
110 skel2->links.xdp_handler = link; in serial_test_xdp_link()
151 test_xdp_link__destroy(skel2); in serial_test_xdp_link()
H A Dsubprogs.c64 struct test_subprogs_unused *skel2; in test_subprogs_alone() local
82 skel2 = test_subprogs_unused__open_and_load(); in test_subprogs_alone()
83 ASSERT_OK_PTR(skel2, "unused_progs_skel"); in test_subprogs_alone()
84 test_subprogs_unused__destroy(skel2); in test_subprogs_alone()
H A Dbpf_iter.c589 struct bpf_iter_test_kern2 *skel2; in test_file_iter() local
616 skel2 = bpf_iter_test_kern2__open_and_load(); in test_file_iter()
617 if (!ASSERT_OK_PTR(skel2, "bpf_iter_test_kern2__open_and_load")) in test_file_iter()
620 err = bpf_link__update_program(link, skel2->progs.dump_task); in test_file_iter()
627 bpf_iter_test_kern2__destroy(skel2); in test_file_iter()