Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_mprog_opts.c23 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_prog_attach_detach() local
39 fd4 = bpf_program__fd(skel->progs.getsockopt_4); in test_prog_attach_detach()
44 id4 = id_from_prog_fd(fd4); in test_prog_attach_detach()
90 /* ordering: [fd2, fd3, fd1, fd4] */ in test_prog_attach_detach()
91 err = bpf_prog_attach_opts(fd4, cg, atype, &opta); in test_prog_attach_detach()
120 err = bpf_prog_detach_opts(fd4, cg, atype, &optd); in test_prog_attach_detach()
156 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_link_attach_detach() local
172 fd4 = bpf_program__fd(skel->progs.getsockopt_4); in test_link_attach_detach()
177 id4 = id_from_prog_fd(fd4); in test_link_attach_detach()
222 /* ordering: [fd2, fd3, fd1, fd4] */ in test_link_attach_detach()
280 __u32 fd1, fd2, fd3, fd4; test_preorder_prog_attach_detach() local
[all...]
H A Dtc_opts.c116 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_before_target() local
128 fd4 = bpf_program__fd(skel->progs.tc4); in test_tc_opts_before_target()
133 id4 = id_from_prog_fd(fd4); in test_tc_opts_before_target()
204 err = bpf_prog_attach_opts(fd4, loopback, target, &opta); in test_tc_opts_before_target()
234 err = bpf_prog_detach_opts(fd4, loopback, target, &optd); in test_tc_opts_before_target()
268 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_after_target() local
280 fd4 = bpf_program__fd(skel->progs.tc4); in test_tc_opts_after_target()
285 id4 = id_from_prog_fd(fd4); in test_tc_opts_after_target()
356 err = bpf_prog_attach_opts(fd4, loopback, target, &opta); in test_tc_opts_after_target()
386 err = bpf_prog_detach_opts(fd4, loopbac in test_tc_opts_after_target()
1031 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_prepend_target() local
1171 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_append_target() local
1311 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_dev_cleanup_target() local
1656 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_detach_target() local
1827 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_detach_before_target() local
2034 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_detach_after_target() local
2467 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_query_target() local
[all...]
/linux/tools/testing/selftests/core/
H A Dclose_range_test.c383 int fd1, fd2, fd3, fd4, flags, ret, status; in TEST() local
474 fd4 = open("/dev/null", O_RDWR); in TEST()
475 EXPECT_GT(fd4, 0); in TEST()
478 flags = fcntl(fd1, F_DUPFD_QUERY, fd4); in TEST()
492 EXPECT_EQ(close(fd4), 0); in TEST()