summaryrefslogtreecommitdiff
path: root/test/tsan/mmap_large.cc
AgeCommit message (Collapse)Author
2015-12-08[PPC64, TSAN] LLVM basic enablement of thread sanitizer for PPC64 (BE and LE)Bill Schmidt
This patch is by Simone Atzeni with portions by Adhemerval Zanella. This contains the LLVM patches to enable the thread sanitizer for PPC64, both big- and little-endian. Two different virtual memory sizes are supported: Old kernels use a 44-bit address space, while newer kernels require a 46-bit address space. There are two companion patches that will be added shortly. There is a Clang patch to actually turn on the use of the thread sanitizer for PPC64. There is also a patch that I wrote to provide interceptor support for setjmp/longjmp on PPC64. Patch discussion at reviews.llvm.org/D12841. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255057 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-03[tsan] Use MAP_ANON instead of MAP_ANONYMOUSKuba Brecka
In mmap_large.cc, let's use MAP_ANON instead of MAP_ANONYMOUS, because MAP_ANONYMOUS is only available on OS X 10.11 and later. Differential Revision: http://reviews.llvm.org/D15180 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@254601 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-05[tsan] Enable tsan for aarch64Adhemerval Zanella
This patch enabled TSAN for aarch64 with 39-bit VMA layout. As defined by tsan_platform.h the layout used is: 0000 4000 00 - 0200 0000 00: main binary 2000 0000 00 - 4000 0000 00: shadow memory 4000 0000 00 - 5000 0000 00: metainfo 5000 0000 00 - 6000 0000 00: - 6000 0000 00 - 6200 0000 00: traces 6200 0000 00 - 7d00 0000 00: - 7d00 0000 00 - 7e00 0000 00: heap 7e00 0000 00 - 7fff ffff ff: modules and main thread stack Which gives it about 8GB for main binary, 4GB for heap and 8GB for modules and main thread stack. Most of tests are passing, with the exception of: * ignore_lib0, ignore_lib1, ignore_lib3 due a kernel limitation for no support to make mmap page non-executable. * longjmp tests due missing specialized assembly routines. These tests are xfail for now. The only tsan issue still showing is: rtl/TsanRtlTest/Posix.ThreadLocalAccesses Which still required further investigation. The test is disable for aarch64 for now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@244055 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-23[Tsan] Fix the mmap_large.cc test to build on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D8545 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@233001 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20[TSan][MIPS64] Fix few more test cases for MIPS64Mohit K. Bhakkad
Patch by Sagar Thakur Reviewers: dvyukov, samsonov, kcc. Subscribers: dsanders, mohit.bhakkad, Anand.Takale, llvm-commits. Differential Revision: http://reviews.llvm.org/D7290 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@230002 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-05tsan: fix testDmitry Vyukov
this test is flaky because of ASLR app memory is 7e8000000000-800000000000, there may or may not be a 1TB hole depending on where ASLR will choose to map libraries git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@223469 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-30Add %run to all lit testsGreg Fitzgerald
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207709 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-23tsan: more precise check for "app memory" in COMPAT modeDmitry Vyukov
this fires when a user makes mmap with fixed address (see the test) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206952 91177308-0d34-0410-b5e6-96231b3b80d8