Home
last modified time | relevance | path

Searched refs:fd3 (Results 1 – 4 of 4) sorted by relevance

/linux/tools/perf/tests/
H A Dbp_signal.c35 static int fd3; variable
78 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
99 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
202 * fd3 - watchpoint event on __test_function with SIGIO in test__bp_signal()
215 * incq (%rdi) - fd3 event watchpoint hit -> count3 == 1 (wp and bp in one insn) in test__bp_signal()
223 * the_var++ - fd3 event watchpoint hit -> count3 == 2 (standalone watchpoint) in test__bp_signal()
244 fd3 = wp_event((void *)&the_var, SIGIO); in test__bp_signal()
248 ioctl(fd3, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
258 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal()
262 count3 = bp_count(fd3); in test__bp_signal()
[all...]
/linux/tools/testing/selftests/core/
H A Dclose_range_test.c383 int fd1, fd2, fd3, fd4, flags, ret, status; in TEST() local
425 fd3 = dup2(fd1, 42); in TEST()
426 EXPECT_GT(fd3, 0); in TEST()
428 flags = fcntl(fd1, F_DUPFD_QUERY, fd3); in TEST()
441 flags = fcntl(fd3, F_GETFD); in TEST()
464 fd3 = dup2(fd1, 42); in TEST()
465 EXPECT_GT(fd3, 0); in TEST()
467 flags = fcntl(fd1, F_DUPFD_QUERY, fd3); in TEST()
485 flags = fcntl(fd3, F_GETFD); in TEST()
491 EXPECT_EQ(close(fd3), in TEST()
500 int i, fd1, fd2, fd3, flags, ret, status; TEST() local
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_opts.c116 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_tc_opts_before_target() local
127 fd3 = bpf_program__fd(skel->progs.tc3); in test_tc_opts_before_target()
132 id3 = id_from_prog_fd(fd3); in test_tc_opts_before_target()
181 err = bpf_prog_attach_opts(fd3, loopback, target, &opta); in test_tc_opts_before_target()
239 err = bpf_prog_detach_opts(fd3, 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
279 fd3 = bpf_program__fd(skel->progs.tc3); in test_tc_opts_after_target()
284 id3 = id_from_prog_fd(fd3); in test_tc_opts_after_target()
333 err = bpf_prog_attach_opts(fd3, loopback, target, &opta); in test_tc_opts_after_target()
405 err = bpf_prog_detach_opts(fd3, loopbac in test_tc_opts_after_target()
570 __u32 fd1, fd2, fd3, id1, id2, id3; test_tc_chain_classic() local
671 __u32 fd1, fd2, fd3, id1, id2, id3, detach_fd; test_tc_opts_replace_target() local
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
2282 __u32 fd1, fd2, fd3, id1, id2, id3; test_tc_chain_mixed() local
2467 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; test_tc_opts_query_target() local
[all...]
H A Dcgroup_mprog_opts.c23 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_prog_attach_detach() local
38 fd3 = bpf_program__fd(skel->progs.getsockopt_3); in test_prog_attach_detach()
43 id3 = id_from_prog_fd(fd3); in test_prog_attach_detach()
78 /* ordering: [fd2, fd3, fd1] */ in test_prog_attach_detach()
79 err = bpf_prog_attach_opts(fd3, cg, atype, &opta); in test_prog_attach_detach()
90 /* ordering: [fd2, fd3, fd1, fd4] */ in test_prog_attach_detach()
126 err = bpf_prog_detach_opts(fd3, cg, atype, &optd); in test_prog_attach_detach()
156 __u32 fd1, fd2, fd3, fd4, id1, id2, id3, id4; in test_link_attach_detach() local
171 fd3 = bpf_program__fd(skel->progs.getsockopt_3); in test_link_attach_detach()
176 id3 = id_from_prog_fd(fd3); in test_link_attach_detach()
280 __u32 fd1, fd2, fd3, fd4; test_preorder_prog_attach_detach() local
[all...]