summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-11-27 09:10:47 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-11-27 09:10:47 +0000
commit573d02185fd1941dbf19a0eb3432fe424eaeecfc (patch)
tree189f4af2f59e56cb490cfd56a2a9b5b735d9293d /lib/sanitizer_common/sanitizer_platform_limits_linux.cc
parente35e2dd579831ab2daa250f579e37ec9a2ed8324 (diff)
tsan: support synchronization by means of linux aio
http://llvm-reviews.chandlerc.com/D2269 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_platform_limits_linux.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_platform_limits_linux.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_limits_linux.cc b/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
index 4c9f12acd..bb8f7594c 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
+++ b/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
@@ -70,7 +70,11 @@ COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat));
COMPILER_CHECK(struct_kernel_stat64_sz == sizeof(struct stat64));
#endif
-COMPILER_CHECK(struct_io_event_sz == sizeof(struct io_event));
+COMPILER_CHECK(sizeof(__sanitizer_io_event) == sizeof(struct io_event));
+CHECK_SIZE_AND_OFFSET(io_event, data);
+CHECK_SIZE_AND_OFFSET(io_event, obj);
+CHECK_SIZE_AND_OFFSET(io_event, res);
+CHECK_SIZE_AND_OFFSET(io_event, res2);
#if !SANITIZER_ANDROID
COMPILER_CHECK(sizeof(struct __sanitizer_perf_event_attr) <=