| /llvm-project/libc/test/src/sys/epoll/linux/ |
| H A D | epoll_ctl_test.cpp | 22 int epfd = LIBC_NAMESPACE::epoll_create1(0); in TEST() local 23 ASSERT_GT(epfd, 0); in TEST() 34 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_ADD, pipefd[0], &event), in TEST() 38 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_ADD, pipefd[0], &event), in TEST() 41 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_DEL, pipefd[0], &event), in TEST() 46 ASSERT_THAT(LIBC_NAMESPACE::close(epfd), Succeeds()); in TEST()
|
| H A D | epoll_wait_test.cpp | 22 int epfd = LIBC_NAMESPACE::epoll_create1(0); in TEST() local 23 ASSERT_GT(epfd, 0); in TEST() 34 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_ADD, pipefd[0], &event), in TEST() 39 ASSERT_THAT(LIBC_NAMESPACE::epoll_wait(epfd, &event, 1, 0), Succeeds()); in TEST() 43 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_DEL, pipefd[0], &event), in TEST() 48 ASSERT_THAT(LIBC_NAMESPACE::close(epfd), Succeeds()); in TEST()
|
| H A D | epoll_pwait_test.cpp | 23 int epfd = LIBC_NAMESPACE::epoll_create1(0); in TEST() local 24 ASSERT_GT(epfd, 0); in TEST() 35 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_ADD, pipefd[0], &event), in TEST() 40 ASSERT_THAT(LIBC_NAMESPACE::epoll_pwait(epfd, &event, 1, 0, nullptr), in TEST() 46 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_DEL, pipefd[0], &event), in TEST() 51 ASSERT_THAT(LIBC_NAMESPACE::close(epfd), Succeeds()); in TEST()
|
| H A D | epoll_pwait2_test.cpp | 23 int epfd = LIBC_NAMESPACE::epoll_create1(0); in TEST() local 24 ASSERT_GT(epfd, 0); in TEST() 39 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_ADD, pipefd[0], &event), in TEST() 45 LIBC_NAMESPACE::epoll_pwait2(epfd, &event, 1, &time_spec, nullptr), in TEST() 51 ASSERT_THAT(LIBC_NAMESPACE::epoll_ctl(epfd, EPOLL_CTL_DEL, pipefd[0], &event), in TEST() 56 ASSERT_THAT(LIBC_NAMESPACE::close(epfd), Succeeds()); in TEST()
|
| /llvm-project/libc/src/sys/epoll/linux/ |
| H A D | epoll_wait.cpp | 25 (int epfd, struct epoll_event *events, int maxevents, 29 SYS_epoll_wait, epfd, reinterpret_cast<long>(events), maxevents, timeout); 32 SYS_epoll_pwait, epfd, reinterpret_cast<long>(events), maxevents, timeout,
|
| H A D | epoll_ctl.cpp | 21 (int epfd, int op, int fd, epoll_event *event)) { 22 int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_epoll_ctl, epfd, op, fd,
|
| H A D | epoll_pwait.cpp | 25 (int epfd, struct epoll_event *events, int maxevents, 28 SYS_epoll_pwait, epfd, reinterpret_cast<long>(events), maxevents, timeout,
|
| H A D | epoll_pwait2.cpp | 26 (int epfd, struct epoll_event *events, int maxevents, 29 SYS_epoll_pwait2, epfd, reinterpret_cast<long>(events), maxevents,
|
| /llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_interceptors_posix.cpp | 1996 TSAN_INTERCEPTOR(int, epoll_ctl, int epfd, int op, int fd, void *ev) { in TSAN_INTERCEPTOR() 1997 SCOPED_TSAN_INTERCEPTOR(epoll_ctl, epfd, op, fd, ev); in TSAN_INTERCEPTOR() 1998 if (epfd >= 0) in TSAN_INTERCEPTOR() 1999 FdAccess(thr, pc, epfd); in TSAN_INTERCEPTOR() 2000 if (epfd >= 0 && fd >= 0) in TSAN_INTERCEPTOR() 2002 if (op == EPOLL_CTL_ADD && epfd >= 0) { 2003 FdPollAdd(thr, pc, epfd, fd); in TSAN_INTERCEPTOR() argument 2004 FdRelease(thr, pc, epfd); in TSAN_INTERCEPTOR() 2006 int res = REAL(epoll_ctl)(epfd, op, fd, ev); in TSAN_INTERCEPTOR() 2010 TSAN_INTERCEPTOR(int, epoll_wait, int epfd, voi in TSAN_INTERCEPTOR() 1968 TSAN_INTERCEPTOR(int,epoll_ctl,int epfd,int op,int fd,void * ev) TSAN_INTERCEPTOR() argument 1982 TSAN_INTERCEPTOR(int,epoll_wait,int epfd,void * ev,int cnt,int timeout) TSAN_INTERCEPTOR() argument 1992 TSAN_INTERCEPTOR(int,epoll_pwait,int epfd,void * ev,int cnt,int timeout,void * sigmask) TSAN_INTERCEPTOR() argument [all...] |
| H A D | tsan_fd.cpp | 307 void FdPollAdd(ThreadState *thr, uptr pc, int epfd, int fd) { in FdPollAdd() argument 308 DPrintf("#%d: FdPollAdd(%d, %d)\n", thr->tid, epfd, fd); in FdPollAdd() 309 if (bogusfd(epfd) || bogusfd(fd)) in FdPollAdd() 321 FdDesc *epd = fddesc(thr, pc, epfd); in FdPollAdd()
|
| H A D | tsan_fd.h | 52 void FdPollAdd(ThreadState *thr, uptr pc, int epfd, int fd);
|
| /llvm-project/libc/src/sys/epoll/ |
| H A D | epoll_wait.h | 17 int epoll_wait(int epfd, epoll_event *events, int maxevents, int timeout);
|
| H A D | epoll_ctl.h | 18 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event);
|
| H A D | epoll_pwait.h | 19 int epoll_pwait(int epfd, struct epoll_event *events, int maxevents,
|
| H A D | epoll_pwait2.h | 20 int epoll_pwait2(int epfd, epoll_event *events, int maxevents,
|
| /llvm-project/compiler-rt/include/sanitizer/ |
| H A D | linux_syscall_hooks.h | 1205 #define __sanitizer_syscall_pre_epoll_ctl(epfd, op, fd, event) \ argument 1206 __sanitizer_syscall_pre_impl_epoll_ctl((long)(epfd), (long)(op), (long)(fd), \ 1208 #define __sanitizer_syscall_post_epoll_ctl(res, epfd, op, fd, event) \ argument 1209 __sanitizer_syscall_post_impl_epoll_ctl(res, (long)(epfd), (long)(op), \ 1211 #define __sanitizer_syscall_pre_epoll_wait(epfd, events, maxevents, timeout) \ argument 1212 __sanitizer_syscall_pre_impl_epoll_wait((long)(epfd), (long)(events), \ 1214 #define __sanitizer_syscall_post_epoll_wait(res, epfd, events, maxevents, \ argument 1216 __sanitizer_syscall_post_impl_epoll_wait(res, (long)(epfd), (long)(events), \ 1218 #define __sanitizer_syscall_pre_epoll_pwait(epfd, events, maxevents, timeout, \ argument 1221 (long)(epfd), (long)(events), (long)(maxevents), (long)(timeout), \ [all …]
|
| /llvm-project/compiler-rt/test/dfsan/ |
| H A D | custom.cpp | 1347 int epfd = epoll_create1(0); in test_epoll_wait() local 1348 assert(epfd != -1); in test_epoll_wait() 1352 ret = epoll_ctl(epfd, EPOLL_CTL_ADD, pipe_fds[0], &event); in test_epoll_wait() 1359 ret = epoll_wait(epfd, &event, /*maxevents=*/1, /*timeout=*/0); in test_epoll_wait() 1369 ret = epoll_wait(epfd, &event, /*maxevents=*/1, /*timeout=*/0); in test_epoll_wait() 1378 close(epfd); in test_epoll_wait()
|
| /llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_syscalls.inc | 2110 PRE_SYSCALL(epoll_ctl)(long epfd, long op, long fd, void *event) {} 2112 POST_SYSCALL(epoll_ctl)(long res, long epfd, long op, long fd, void *event) { 2120 (long epfd, void *events, long maxevents, long timeout) {} 2123 (long res, long epfd, void *events, long maxevents, long timeout) { 2125 COMMON_SYSCALL_FD_ACQUIRE(epfd); 2132 (long epfd, void *events, long maxevents, long timeout, 2139 (long res, long epfd, void *events, long maxevents, long timeout, 2142 COMMON_SYSCALL_FD_ACQUIRE(epfd); 2149 (long epfd, void *events, long maxevents, 2159 (long res, long epfd, voi [all...] |
| /llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_interceptors.cpp | 966 INTERCEPTOR(int, epoll_wait, int epfd, void *events, int maxevents, in INTERCEPTOR() 969 int res = REAL(epoll_wait)(epfd, events, maxevents, timeout); 981 INTERCEPTOR(int, epoll_pwait, int epfd, void *events, int maxevents, 984 int res = REAL(epoll_pwait)(epfd, events, maxevents, timeout, sigmask); 970 INTERCEPTOR(int,epoll_wait,int epfd,void * events,int maxevents,int timeout) INTERCEPTOR() argument 985 INTERCEPTOR(int,epoll_pwait,int epfd,void * events,int maxevents,int timeout,void * sigmask) INTERCEPTOR() argument
|
| /llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_custom.cpp | 1446 int __dfsw_epoll_wait(int epfd, struct epoll_event *events, int maxevents, in __dfsw_epoll_wait() 1450 int ret = epoll_wait(epfd, events, maxevents, timeout); in __dfsw_epoll_wait() 1458 int __dfso_epoll_wait(int epfd, struct epoll_event *events, int maxevents, in __dfso_epoll_wait() 1465 return __dfsw_epoll_wait(epfd, events, maxevents, timeout, epfd_label, in __dfso_epoll_wait() 1443 __dfsw_epoll_wait(int epfd,struct epoll_event * events,int maxevents,int timeout,dfsan_label epfd_label,dfsan_label events_label,dfsan_label maxevents_label,dfsan_label timeout_label,dfsan_label * ret_label) __dfsw_epoll_wait() argument 1455 __dfso_epoll_wait(int epfd,struct epoll_event * events,int maxevents,int timeout,dfsan_label epfd_label,dfsan_label events_label,dfsan_label maxevents_label,dfsan_label timeout_label,dfsan_label * ret_label,dfsan_origin epfd_origin,dfsan_origin events_origin,dfsan_origin maxevents_origin,dfsan_origin timeout_origin,dfsan_origin * ret_origin) __dfso_epoll_wait() argument
|