This is an archive of the discontinued LLVM Phabricator instance.

tsan: intercept epoll_pwait2
ClosedPublic

Authored by dvyukov on Nov 23 2022, 7:22 AM.

Details

Summary

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.

Diff Detail

Event Timeline

dvyukov created this revision.Nov 23 2022, 7:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 7:22 AM
Herald added a subscriber: Enna1. · View Herald Transcript
dvyukov requested review of this revision.Nov 23 2022, 7:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 7:22 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Nov 23 2022, 8:14 AM
This revision is now accepted and ready to land.Nov 23 2022, 8:14 AM
This revision was automatically updated to reflect the committed changes.