Searched refs:skel1 (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_link.c | 11 struct test_xdp_link *skel1 = NULL, *skel2 = NULL; in serial_test_xdp_link() local 21 skel1 = test_xdp_link__open_and_load(); in serial_test_xdp_link() 22 if (!ASSERT_OK_PTR(skel1, "skel_load")) in serial_test_xdp_link() 24 prog_fd1 = bpf_program__fd(skel1->progs.xdp_handler); in serial_test_xdp_link() 54 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link() 70 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in serial_test_xdp_link() 73 skel1->links.xdp_handler = link; in serial_test_xdp_link() 103 bpf_link__destroy(skel1->links.xdp_handler); in serial_test_xdp_link() 104 skel1->links.xdp_handler = NULL; in serial_test_xdp_link() 117 err = bpf_link__update_program(link, skel1->progs.xdp_handler); in serial_test_xdp_link() [all …]
|
| H A D | tailcalls.c | 1914 struct tailcall_bpf2bpf_fexit *skel1 = NULL, *skel2 = NULL; in test_tailcall_bpf2bpf_fexit_links() local 1922 skel1 = tailcall_bpf2bpf_fexit__open(); in test_tailcall_bpf2bpf_fexit_links() 1923 if (!ASSERT_OK_PTR(skel1, "tailcall_bpf2bpf_fexit__open")) in test_tailcall_bpf2bpf_fexit_links() 1927 err = bpf_program__set_attach_target(skel1->progs.fexit, prog_fd, "subprog_tail"); in test_tailcall_bpf2bpf_fexit_links() 1931 err = tailcall_bpf2bpf_fexit__load(skel1); in test_tailcall_bpf2bpf_fexit_links() 1935 skel1->links.fexit = bpf_program__attach_trace(skel1->progs.fexit); in test_tailcall_bpf2bpf_fexit_links() 1936 if (!ASSERT_OK_PTR(skel1->links.fexit, "bpf_program__attach_trace")) in test_tailcall_bpf2bpf_fexit_links() 1951 tailcall_bpf2bpf_fexit__destroy(skel1); in test_tailcall_bpf2bpf_fexit_links()
|
| H A D | bpf_iter.c | 669 struct bpf_iter_test_kern1 *skel1; in test_file_iter() local 674 skel1 = bpf_iter_test_kern1__open_and_load(); in test_file_iter() 675 if (!ASSERT_OK_PTR(skel1, "bpf_iter_test_kern1__open_and_load")) in test_file_iter() 678 link = bpf_program__attach_iter(skel1->progs.dump_task, NULL); in test_file_iter() 714 bpf_iter_test_kern1__destroy(skel1); in test_file_iter()
|