[all-commits] [llvm/llvm-project] fbcdf4: tsan: intercept epoll_pwait2

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Nov 23 22:27:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbcdf4a4fb9e51039877cc92bb18407416a158d7
      https://github.com/llvm/llvm-project/commit/fbcdf4a4fb9e51039877cc92bb18407416a158d7
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2022-11-24 (Thu, 24 Nov 2022)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_syscalls.inc
    M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list