/tools/testing/selftests/memfd/ |
D | memfd_test.c | 440 int r, fd2; in mfd_assert_shrink() local 450 fd2 = mfd_assert_open(fd, in mfd_assert_shrink() 453 close(fd2); in mfd_assert_shrink() 737 int fd, fd2; in test_seal_future_write() local 758 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write() 760 mfd_assert_read(fd2); in test_seal_future_write() 761 mfd_assert_read_shared(fd2); in test_seal_future_write() 762 mfd_fail_write(fd2); in test_seal_future_write() 765 close(fd2); in test_seal_future_write() 853 int fd, fd2; in test_share_dup() local [all …]
|
/tools/perf/tests/ |
D | bp_signal.c | 33 static int fd2; variable 76 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 97 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 237 fd2 = bp_event(sig_handler, SIGUSR1); in test__bp_signal() 241 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() 251 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in test__bp_signal() 255 count2 = bp_count(fd2); in test__bp_signal() 259 close(fd2); in test__bp_signal()
|
/tools/testing/selftests/proc/ |
D | fd-002-posix-eq.c | 27 int fd0, fd1, fd2; in main() local 40 fd2 = open(buf, O_RDONLY); in main() 41 assert(fd2 >= 0); in main() 47 rv = fstat(fd2, &st2); in main()
|
/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) in sys_kcmp() argument 25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp() 37 int fd1, fd2; in main() local 91 fd2 = open(kpath, O_RDWR, 0644); in main() 92 if (fd2 < 0) { in main() 102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
|
/tools/testing/selftests/net/ |
D | reuseaddr_conflict.c | 89 int fd1, fd2; in main() local 104 fd2 = open_port(0, 1); in main() 105 if (fd2 >= 0) in main()
|
D | reuseport_bpf.c | 311 int fd1, fd2, opt; in test_extra_filter() local 317 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 318 if (fd2 < 0) in test_extra_filter() 324 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() 328 attach_ebpf(fd2, 10); in test_extra_filter() 333 if (!bind(fd2, addr, sockaddr_size()) || errno != EADDRINUSE) in test_extra_filter() 392 int fd1, fd2, opt = 1; in test_filter_without_bind() local 398 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 399 if (fd2 < 0) in test_filter_without_bind() 403 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_filter_without_bind() [all …]
|
/tools/testing/selftests/sync/ |
D | sync.c | 68 int sync_merge(const char *name, int fd1, int fd2) in sync_merge() argument 73 data.fd2 = fd2; in sync_merge()
|
D | sync.h | 36 int sync_merge(const char *name, int fd1, int fd2);
|