tsan: intercept epoll_pwait2
authorDmitry Vyukov <dvyukov@google.com>
Wed, 23 Nov 2022 15:20:29 +0000 (16:20 +0100)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 24 Nov 2022 06:27:09 +0000 (07:27 +0100)
commitfbcdf4a4fb9e51039877cc92bb18407416a158d7
tree0f84de8453639cae9257141d6bc2fa0f7212ed5e
parent875adb400754bb331d3540af67c94577ff58e8c8
tsan: intercept epoll_pwait2

It's a new syscall similar to epoll_pwait.
Add a similar interceptor for it and add synchronization
annotations in epoll_wait* syscall wrappers.
Testing this is problematic b/c it's not present in glibc
and the syscall itself may not be supported by the kernel.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D138574
compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc
compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp