History log of /external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
909fff81b83df049ecc6e02407394640435d7bef 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r235153

Change-Id: I7c900e78d263fe0f574369e8383ccac7e36f5c3b
(cherry picked from commit 259f7063e3e4c4b94dded1e90ab0a943d0fa737b)
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7c9150579ed0278492f51cc8434b1d63a44b9bd1 08-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master compiler-rt for rebase to r233350

Change-Id: I5f20256ce73ec7b5956f742b4062f850bf11b667
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
86277eb844c4983c81de62d7c050e92fe7155788 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master compiler-rt for rebase to r230699.

Change-Id: I6c415fd5f6420e3012d9da76719111721e906dfa
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
6d1862363c88c183b0ed7740fca876342cf0474b 27-Nov-2014 Stephen Hines <srhines@google.com> Update aosp/master compiler-rt for rebase to r222486.

Change-Id: I38047809dbac0425193c82e810315998adbb380d
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
6a211c5814e25d6745a5058cc0e499e5235d3821 21-Jul-2014 Stephen Hines <srhines@google.com> Update compiler-rt for rebase to r212749.

Includes a cherry-pick of:
r213309 - fixes umodsi3

Change-Id: Ic7367e3586b6af7ef74bee6a8cf437d5f28d975a
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
11f5309ec1bf13430c8a3a16f177d9e8e1190e38 15-Nov-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add support for robust mutexes



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0797ff48ae6a585382b6ff8bda98dfa72874e4d0 12-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Avoid needless use of stringification (#symver) in INTERCEPT_FUNCTION_VER.

This is a workaround for clang-format bug (PR17874).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194468 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
a537ea99d3dcc4b2dc0033aee7ad5cb1b378efc7 11-Nov-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Warn if interception fails.

This includes a clang-format pass over common interceptors.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
8aa3d18712dec51d771523867305133ee41e006d 01-Nov-2013 Dmitry Vyukov <dvyukov@google.com> tsna: do not call user code from within runtime (from fflush)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193880 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0b76578bf5bf04a0674ac5a27ade01e3da26a0c9 29-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [tsan] Fix unused variable warnings.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193639 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
5cf2c460e96e593b1c772f1b02d3a217f4837fdc 29-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan/asan: support pthread_setname_np to set thread names



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
58dc8bef3f86f4f8503359b5146be9d78d7e3ef0 28-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: start the background thread with signals blocked, otherwise it can steal users signals



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193519 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
e236dbb5e558b174609d2d13e80685d488c129d8 25-Oct-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept pthread_attr_get*.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
fc81346321671489e2864f0614bf44b6af5d9bdb 17-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Move pthread_cond_signal and pthread_cond_broadcast to common interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192876 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
5e2d3776a314629680921abd1d55d89d95a2da90 16-Oct-2013 Alexey Samsonov <samsonov@google.com> Make some pthread_mutex_* and pthread_cond_* interceptors common.

Reviewers: eugenis, dvyukov

Reviewed By: dvyukov

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1937

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192774 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
06cbed8b8ae64b7ace50c1b4e4eed97a2a8b9965 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: use verbosity flag in sanitizer_common code directly
now it's available from common_flags()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192705 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
3dbbd850cde5728c35aa4c15a279d858604fc6ee 15-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: resolve symlinks for called_from_lib suppressions



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192688 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
67f5544391c338411b0006bda7dc1b852bbdd4fb 11-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: catch more races on file descriptors



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192452 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
29cec483b760082e264340072f3245fad37e2255 11-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix epoll_ctl interceptor

Currently data-race-test unittests fail with the following false positive:


WARNING: ThreadSanitizer: data race (pid=20365)
Write of size 8 at 0x7da000008050 by thread T54:
#0 close tsan_interceptors.cc:1483 (racecheck_unittest-linux-amd64-O0+0x0000000eb34a)
#1 NegativeTests_epoll::Worker2() unittest/posix_tests.cc:1148 (racecheck_unittest-linux-amd64-O0+0x0000000cc6b1)
#2 MyThread::ThreadBody(MyThread*) unittest/./thread_wrappers_pthread.h:367 (racecheck_unittest-linux-amd64-O0+0x000000097500)

Previous read of size 8 at 0x7da000008050 by thread T49:
#0 epoll_ctl tsan_interceptors.cc:1646 (racecheck_unittest-linux-amd64-O0+0x0000000e9fee)
#1 NegativeTests_epoll::Worker1() unittest/posix_tests.cc:1140 (racecheck_unittest-linux-amd64-O0+0x0000000cc5b5)
#2 MyThread::ThreadBody(MyThread*) unittest/./thread_wrappers_pthread.h:367 (racecheck_unittest-linux-amd64-O0+0x000000097500)




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
6eb836f9bd2b96a321ddc7fb5ea08aa65131e61f 11-Oct-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Move the PTHREAD_DESTRUCTOR_ITERATIONS constant to sanitizer_linux.h.

Add a test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192442 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
9fe1d5abd472f3357d5888d1f580fe1866a417f8 04-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix a bug in pthread_once when called from an ignored library
It must set thr->in_rtl = 0 before executing user callback.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191946 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
14dd980b384ad859099b499e12f320c4791fb674 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> asan/msan/tsan: move _exit interceptor to common interceptors



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c78140f0bd5d6b44a2a30d82879480c592f10d52 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept _exit so that we can override exit status



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191898 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
4af0f21c0c98950df1136dbec8824a029ed5bb8e 03-Oct-2013 Dmitry Vyukov <dvyukov@google.com> tsan: ignore interceptors coming from specified libraries

LibIgnore allows to ignore all interceptors called from a particular set
of dynamic libraries. LibIgnore remembers all "called_from_lib" suppressions
from the provided SuppressionContext; finds code ranges for the libraries;
and checks whether the provided PC value belongs to the code ranges.

Also make malloc and friends interceptors use SCOPED_INTERCEPTOR_RAW instead of
SCOPED_TSAN_INTERCEPTOR, because if they are called from an ignored lib,
then must call our internal allocator instead of libc malloc.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191897 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
9a949a8909f652b28e9084de785c848743139fd5 25-Sep-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] A bunch of libc interceptors.

sigwait
sigwaitinfo
sigtimedwait
sigemptyset
sigfillset
sigpending
sigprocmask


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
39fa68e4076f6a86765ddc69c44bcecb804f0b53 22-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: ignore malloc/free/strdup when called from libjvm


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191153 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
d18865339cebcdaa9fc720a1e960cb452f330835 22-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: ignore all interceptors coming directly from JVM


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191152 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
6c21e11b36bb5ebf625463ca6724cf936ef0dc39 21-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept fork syscall



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b47d41f310d9069f68135b7b8cc92b09f7436c4d 21-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept close syscall



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191129 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
eb0be61dee155f501bb249287b17d364fedf3507 20-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: handle memory read/write in syscalls


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191074 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
9880219fc988d9fd60c8aa21c0f6f0e0d7370dd6 20-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: do not crash when user intercepts fopen()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191066 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
fae2bff6de8be5a319ca17fd713731ce8a887476 20-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix linking of tsan runtime into dynamic libraries
versioned symbols can not be linked into dynamic library w/o linker script
also simplifies code as side effect



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c09250fce4e017c8da696a7f01abc125ba2288ad 19-Sep-2013 Alexey Samsonov <samsonov@google.com> [TSan] Fix -Wempty-body warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190993 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
9d4956eca0894f74be09ba7e93cf722e8b400d00 19-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: prevent the following false positive due to __cxa_atexit

WARNING: ThreadSanitizer: data race (pid=29103)
Write of size 8 at 0x7d64003bbf00 by main thread:
#0 free tsan_interceptors.cc:477
#1 __run_exit_handlers <null>:0 (libc.so.6+0x000000050cb7)

Previous write of size 8 at 0x7d64003bbf00 by thread T78 (mutexes: write M9896):
#0 calloc tsan_interceptors.cc:449
#1 ...





git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190989 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
652f78a41de2887aedc1b0314b58bb6b622c80ca 19-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: refactor internal IgnoreCtl interface



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190987 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
a09507c38cf9dd9119e5aa9bd6d91383514f857b 10-Sep-2013 Eli Friedman <eli.friedman@gmail.com> Delete unused variables.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
bd33d3ab168fcbcfe09a3fd6a971994b481e89d0 06-Sep-2013 Kostya Serebryany <kcc@google.com> [tsan] make calloc crash instead of returning 0 on overflow (controlled by the allocator_may_return_null flag)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190135 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
8cde5cb6b7020d079f8db3e389a02df7a007f017 03-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: catch races on condition variables


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189816 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f061554e8bbfad5e29dcd9e81feb725b75869fa0 02-Sep-2013 Dmitry Vyukov <dvyukov@google.com> tsan: properly intercept pthread_cond functions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
cf878fd3e01cd141ad1e095764d64c410c0ce763 13-Aug-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept getaddrinfo
This is necessary to prevent false positives, see:
https://code.google.com/p/thread-sanitizer/issues/detail?id=25



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f109267c5320210e69c1b66add801fd5f2e2a452 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> [*San/RTL] Fix minor breakage

Grumbling: this hasn't been caught by running 'make check-{a,l,t}san check-sanitizer'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188262 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
3c80c6c574850106481f82b9e23d1c728458d4a9 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
e18e3f07802c420eb4b2da407e148084b75cecc9 12-Aug-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept poll/ppoll.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188177 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
158ca5237af46076225d5d82a38ae0f733f57f31 18-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: treat SIGSYS as synchronous signal
It is required for chromium sandboxing code.
From the description it seems to be indeed synchronous -- called back on syscall with incorrect arguments,
but seems to be unused in practice. So this should be fine.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186579 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
48016bcefb6088b464555efe2e606f6a4d01fa00 17-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: disable one more interceptor that causes recursion


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186497 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
67505a8a0cf9621243ed21b67dfa041224c78e4b 16-Jul-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] move strcpy and strncpy to common interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
fbeab51e1cddbeb73ad0d86d1f650081178c1dd8 16-Jul-2013 Dmitry Vyukov <dvyukov@google.com> tsan: support sigsuspend() call
Intercepting it makes it process pending signal before return.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
3fa122e6a8e12db6583793861f6cf776fe1c98a0 09-Jul-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Support GLOB_ALTDIRFUNC in glob interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c8c312adee610a1f9284f567a35562f6f8dc15e0 01-Jul-2013 Alexey Samsonov <samsonov@google.com> Hide mlock/munlock info message under verbosity flag.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185314 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
1dcabd115668f9efba615f7c4e190244a4df361f 25-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add missing __attribute__((visibility("default"))) to interface functions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b916e6a9b3efa4907b70a2dcd418c76b044171e7 24-Jun-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Intercept readv, preadv, writev, pwritev.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184717 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
e7718bcc1372d25fc21100e403cf41b166d42f9b 17-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: consistently use return pc as top frame pc
always substract 1 from the top pc
this allows to get correct stacks with -O2


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184112 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
917f62eaa5c2839155f703dee114a767ff81cca5 10-Jun-2013 Dmitry Vyukov <dvyukov@google.com> tsan: disable getaddrinfo() interceptor for tsan (causes recursion)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183649 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
9666d89b628867b2c790d5415f0371fdb4050b0c 29-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Move TSan and MSan recvmsg interceptors to common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182843 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
9d1525ec52430d0b8ffd6d0893b7f5529105b321 29-May-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Share TSan accept & accept4 interceptors with other sanitizers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182835 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0b694fcab9b2f33bdd6691cbea4e80a5c27191b1 17-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Move all platforms to internal_getpid.

Before, we had an unused internal_getpid function for Linux, and a
platform-independent GetPid function. To make the naming conventions
consistent for syscall-like functions, the GetPid syscall wrapper
in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is
renamed to internal_getpid, bringing the Linux variant into use.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182132 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
edd2821982c058469dca631a3147fdd42045c48a 24-Apr-2013 Dmitry Vyukov <dvyukov@google.com> tsan: disable getpwuid_r() and glob64() interceptors under tsan, because they cause interceptor recursion if user intercepts fopen()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
881b677c189e65872fd315a75a0e56f077339189 12-Apr-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Add syscall handlers to ASan and TSan runtimes.

ASan checks addressability of syscall arguments. TSan does nothing for now.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@179380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b157c67e17c3fc8805c8b7cb590668885680608f 28-Mar-2013 Timur Iskhodzhanov <timurrrr@google.com> Remove all 'static' before ALWAYS_INLINE

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178290 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
8b30c254a63a7421dd81d13dee086a54c4ca134b 25-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept setjmp/longjmp


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7423c7821ff30043def78c6cbb257bd2f4d9eef6 22-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: return 0 on malloc() failure instead of crashing



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177741 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
5043f05a633b8d2f19ebd3dda961408c69473718 21-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept abort() to fflush() libc streams



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177637 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f465bdec3f1a35374be36ed25dd992cb2bb056c0 21-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: remove bogus CHECK
Asynchronous signal (e.g. SIGABRT) can be received with any value of in_rtl.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177636 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
4219ea38d733f73c96c8740777ee0bb7061cbe0f 21-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add a comment about magic numbers


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
236a098869e35b29e938cbb7bd98d8d5b656d47f 20-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: correct sizes of signal-related data structures


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177526 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0ebfc6fb9ba161e994dfd1c3ce898b0895d83c33 20-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: call fflush(0) on exit again


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177522 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
8e1c769ed84f4d5cf23904dee1abeec6f125f1ac 19-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: instruct malloc() to consume less memory



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b9bf700ae7fe59e25976e0abe9636150f3a39cd2 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Don't adjust the size of the user-allocated stack.

Moved this code to sanitizer_common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
74172de3ce25bf52d9d3918c94216f2eef5956e2 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: touch less shadow memory during operations on big memory ranges
greatly reduces memory consumption



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177289 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7ac33ac529ff93a57419f5ddf71b1fde68428577 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: mark shadow for thread stack as "don't need" when thread exits



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177288 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
ac1f5cafad90d902056f458ce5aec27b87260a52 18-Mar-2013 Dmitry Vyukov <dvyukov@google.com> tsan: madvise(DONTNEED) shadow memory on munmap()



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177278 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
2bbd8bec77c2fdb41c5f5b6cb0d83d22bc576650 15-Mar-2013 Alexey Samsonov <samsonov@google.com> [TSan] Switch TSan runtime to use ThreadRegistry class from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177154 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
47a0f6edc48eb6dc46b2e1f203d6783fd7e07505 14-Mar-2013 Alexey Samsonov <samsonov@google.com> [TSan] Add missing header inclusion

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f110e356170fbe990b99c0939d77eeaa89b25497 14-Mar-2013 Alexey Samsonov <samsonov@google.com> [TSan] Use __sanitizer_pthread_attr_t in TSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177012 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
8a6b5e551ab8a331f7e7bc4bfcd74926fbffa3f6 25-Feb-2013 Alexey Samsonov <samsonov@google.com> [TSan] Add interceptor for malloc_usable_size()

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
03f224835f46801a0e22cc2951d21b67304e0457 07-Feb-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept libc __res_iclose
this is required to catch close of file descriptors created in getaddrinfo()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174624 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
52c70e5818727521b89f7fc95a2a383df8985ca6 04-Feb-2013 Dmitry Vyukov <dvyukov@google.com> tsan: intercept bind/listen


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174311 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c05cbca0988c296068e0da1556bd6af7edd43c69 01-Feb-2013 Dmitry Vyukov <dvyukov@google.com> tsan: catch races on fd in more cases


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
334553ec45d8982df45a6f5e656e068142ecde3f 01-Feb-2013 Dmitry Vyukov <dvyukov@google.com> tsan: detect races between plain and atomic memory accesses


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174163 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
ba5e99668e3030cc5bab357a04271a1bdbac209c 30-Jan-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] update style checker script and fix namespace style warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173910 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
31c05ea4d508a476403ba30c1f60ef6190eb46b6 29-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: support for inprocess symbolizer


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173797 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
61ba1b5df34614e0647f5f80d462f6485e817fa5 29-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add interceptor stubs for stat family of functions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173782 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
65199f1b253c4bfb225805629217acb8f0b1e185 25-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] fix calloc overflow in asan/tsan/msan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173441 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
82a9080eaff95d69b270cd863e9df63e3b4e59ad 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] lint


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
4f32c0beaa83ffbb84db23d2e6205bee57c39ce1 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Rename 2 files *.h->*.inc as appropriate.

Also add a missing include.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
996c4f2fa53cce8f9d7b517073f38569460de505 18-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Common *scanf interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c20b321d49f0eff60f1394d56e623d8ca94f24d7 18-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] reapply r172719, r172721-172723, r172725, and also fix the warning on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172791 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
29b37ea8907bc99bf86fab89bf8dc93a520ebac4 17-Jan-2013 Jakob Stoklund Olesen <stoklund@2pi.dk> Revert r172719, r172721-172723, and r172725.

The r172719 patch broke the build on Mac, the others depended on it.

compiler-rt/lib/asan/asan_interceptors.cc:78:13: error: unused function
'SetThreadName' [-Werror,-Wunused-function]
static void SetThreadName(const char *name) {

Orignal headlines:

[asan] attempting to fix the Mac build
[asan] restructure read/pread/pread64 tests
[sanitizer] move write/pwrite/pwrite64 interceptors to common
[msan] start using common interceptors in msan
[tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172763 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
153ba3f41d8f6ad1641ae76cfdf01445cec9db89 17-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] move write/pwrite/pwrite64 interceptors to common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172722 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0223e7dece2c215ed07e2100e1739fa5bf4d8210 17-Jan-2013 Kostya Serebryany <kcc@google.com> [tsan] move prctl interceptor from asan to common_interceptors thus enabling it for tsan too

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172719 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7be1cc87ba99036519437518ec8eb9231916241b 17-Jan-2013 Kostya Serebryany <kcc@google.com> [tsan] add write_range/read_range hooks to common interceptors called from tsan (to find races on read/pread/etc)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172714 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c8033193376c3326478a345c4ae6633d4d2862c6 17-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] a bit more unification for interceptors (merge read/pread/pread64 in asan and tsan)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
fb917e9069ea44f7103f50c658be84a8f66de56c 14-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: describe stack and TLS addresses


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f5d4273457ca3d26e6cf658b266cd61062a65101 10-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: add check for invalid fd


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172060 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
a597258803f870d859e2e8b18bbb4fabf4d5a3f8 09-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: detect races on fd passed to epoll_ctl


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171981 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f17b3822b22751f09549ab563cc5ca61d072b2e8 09-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix crash when user defines own fopen/fileno


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
bb30741133d0053d242e9aef869c6d19e18cbcea 09-Jan-2013 Dmitry Vyukov <dvyukov@google.com> tsan: fix crash when user defines own fopen/fileno


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b843c1fcc203accc4f37a784cb067904b3e79abe 24-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: more defensive file descriptor verification
to prevent assertion failures on code like "write(-1, ...)"


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171030 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b75c67b495ca13801cc629b2c2c9dd0010e54739 19-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix -Wgnu warnings


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
4554b7a7b345cd50ff8138b3cda8dd1135b965fa 18-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: intercept fork() to prevent false race reports on fd's


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
45d4324bf5b0ec282f0a8f96312233e09a882502 18-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add signalfd() and inotify_init() interceptors


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170429 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
d2f08ffcb97726452f4ba11c199a1e06dc2a7e54 18-Dec-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Expose StackTrace::GetPreviousInstructionPc() to get PC of call instruction from return address

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170424 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
ed513f69b8017a69214509105e7ec59fec77b468 14-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: synchronize connect->accept calls


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
983518e360a179d92bdbddebe05a87db3c6cc3c0 14-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add socketpair() interceptor and test


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170184 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
703e4e4a133aa6585361a2c6130cfc2874efff75 12-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: explain why pthread_cond_init() interceptor is commented out


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169975 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c78839f0288e5af16101b5fd3b455e1a88cc1c5e 12-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: more precise handling of IO synchronization


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169970 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
8530e2b953f0b34ecd267a6aba5f155d5c08c5c8 12-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] add sanitizer_common/sanitizer_common_interceptors.h with pread/pread64/read interceptors. Use it in asan. Add asan tests for pread/etc. Add FIXME to tsan/msan interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
063e4a54b2b4ccad8b9c40aa869a134c46804068 07-Dec-2012 David Blaikie <dblaikie@gmail.com> Unbreak the C++98 build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169636 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
68230a12bbd22c9402dd8f9af027fcb2e119f978 07-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: even more fd interceptors + fixes


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
ba3ae356e0827bfdb17feaff53e17c3934470404 07-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: more fd interceptors + bug fixes + tests


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169621 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
01e96987f557524a351b9f2229e7c920cdb96aad 07-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix pipe interceptors and add 2 tests


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169607 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
ddeb2c354235818494d86827e88a0c2fa44bebcc 07-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add pipe interceptors


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
3f4e6d9b75fb3f7f2674a31008738cfda9cda9ed 07-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: refactoring is preparation to more precise fd synchronization handling


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169600 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
1ffeded71b960d8a0f018a46a0035203b1484a7a 05-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: provide own implementation of __cxa_guard_xxx functions
that way we allow static linking of libstdc++


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169376 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
36decbf426ea75eef9ce6f6f43b74a66e66795d3 05-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: remove unnecesary include file


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169370 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
91ac008b435b879bb366bcf9516c53f2d07c30b1 04-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: better error message if we fail to intercept some function
currently the message is SIGSEGV


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
543b94a5cd102c0795b44d78234d5458eed2c75e 30-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: suppress weird race reports when JVM is embed into the process


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
07ba8ef44deb54baa9307298fbffe25ddb30c362 30-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add __libc_memalign interceptor (used by dynamic loader to allocate tls for dlopen'ed modules)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169017 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
92733f94292cd36795238e1a6ed0a99a1dc0454d 30-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: intercept mlock() because of the kernel bug


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168987 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f67ec2b6e8d2ae328c27de0b026eea2d6667836e 23-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of some of the uses of kPageSize. The intent is to get rid of it completely to support platforms with multiple possible page sizes.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
80d46a2fbc0ae5086511a91119a6e28883b9f880 22-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix more bugs in signal handling


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168497 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0bf04eab1910cc8bf622c20ba08c339dc25e297e 21-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix handling of signals
(do not execute synchronous signals in recursive interceptors)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b717f4d415cafbb8526bb33f737b9c07409a73bb 16-Nov-2012 Alexey Samsonov <samsonov@google.com> [TSan] use explicit ctor for BlockingCall

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
ee8ee2437b28ab8bf6f48af15b8b446fb5d55e90 15-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: eevn better handling of signals
add interceptor for poll()
in addition process signals in every atomic op
in addition process signals in blocking libc functions


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
aad173b2f1dae9f88bbffd217ebd46ed1f020bcb 09-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: intercept gettimeofday()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
54e0a9a391616bbd2a4f0fd2d01076291274cb98 07-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: do not sleep at exit if there are no other threads


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167533 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
8a326776e41dc68c810ba3719a24328de517d8f9 07-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add flag to suppress all reports (useful for benchmarking)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b1fe3021eca0843e37878d224ee7f32e32f40d99 02-Nov-2012 Alexey Samsonov <samsonov@google.com> [TSan] finally remove TsanPrintf in favor of Printf from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167294 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
158c6ac3bb46753db217f9c2c73485811a3a1890 05-Oct-2012 Dmitry Vyukov <dvyukov@google.com> tsan: cache pc's that cause suppressions (this way we do not need to symbolize the reports)



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7dccf3f92a867f917ad19f9a6b37bcf93e64b35b 02-Oct-2012 Dmitry Vyukov <dvyukov@google.com> tsan: output tid's in reports


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164998 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7eff311e3e969ae084aadba7d7812591e34d08ab 27-Sep-2012 Alexey Samsonov <samsonov@google.com> [TSan] move replacement for new/delete back into tsan_interceptors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164764 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
4f0ea398bdc99a4a32402057c23bbcc6d19a8eb4 24-Sep-2012 Alexey Samsonov <samsonov@google.com> [TSan] Provide replacements for operators new/delete instead of declaring extern C functions with weirdly mangled names (same strategy is used in ASan).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164487 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
2135d8a7f4ba30fe35ed02d5e6ffd59a95b26219 13-Sep-2012 Alexey Samsonov <samsonov@google.com> [TSan] fix a bunch of warnings reported by pedantic gcc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
223ff76d894fea012086da0413afbf219221d718 11-Sep-2012 Alexander Potapenko <glider@google.com> Revert the lockf() support.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163614 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0ce948e0887e2c23c6510c32a639da9730bbce25 11-Sep-2012 Alexander Potapenko <glider@google.com> Interceptors for lockf and lockf64, minor calloc() fix.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
848531192777acecf79747dc7c1ffeedf5c1da9f 31-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: add "as if synchronized via sleep" feature


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c20e9ba760a93706c9160133cdcce62194f9694f 16-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: implement RWLOCK annotations


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
64310b28c4e418573ddfda2dbedd702ccf20a051 16-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: refactor cur_thread() -> thr


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162017 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
2e87051d136db3150a3ca322d8862f92b0a684bb 15-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: switch to new allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
de782581b15534c627bf19589d33ceff5a3e5c78 12-Aug-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix parameter type for pwrite64() interceptor



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161741 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b93c3d5badc4066120edf3ed1c515cdd516a8776 13-Jul-2012 Kostya Serebryany <kcc@google.com> [tsan] use internal_strnlen in strncpy interceptor (the bug found while booting chromium)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160171 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
fce5bd4cc29fddb5e8f0cb9c12df7c10187a991d 29-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan/asan: unify atomics (move atomics from tsan to sanitizer_common)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159437 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
6e4815579e5b48b48de092afcc3b092dfb97df5c 29-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: replace struct copies where clang inserts memcpy() calls with explicit internal_memcpy() calls


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159431 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
065c4ac846589d04436cb7f19f938ff42035313e 29-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: remove own memset/memcpy/memcmp (too messy)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159430 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
43b0461ceba5469a8c135fbdd39037b645392588 28-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: clear shadow for ucontext, because it's visible to user


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
1fc03d50a87302689482efa24b045a393097b6c3 28-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix crashes if signal is caught during thread bootstrap or shutdown


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
d51a1a10cba87be50e9ada9fa21337c387edb237 27-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: prevent insertion of unwanted memset/memcpy/memcmp into runtime


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159294 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
a5562db12c5331433407ac21602086f34561c25c 27-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: remember and pass original ucontext to signal handlers (instead of a fabricated one)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159278 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
e96366613372e616fc6f2209b81b776f931a2c58 27-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: refactor signal handling code (move some definitions out of common header)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159266 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7a72b4a0f04f7f043ab86396b0faa552f55aa857 27-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: check that signal handlers do not spoil errno.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159264 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
88207ab15125e2f1e9b3d541b735b2b8aba9b6d9 15-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use DEFINE_REAL macro in TSan runtime to call libc implementations of functions. Move strchr to sanitizer_libc.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
327c1c17d9557ed8b197f732c8a070fd6ba821b5 14-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Move internal_memcmp to common sanitizer libc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158450 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
98c8780c22685af63c57ce5312a9ed730ee3408d 09-Jun-2012 Alexey Samsonov <samsonov@google.com> [TSan] use efficient real_memcpy inside runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158260 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
4fac1482179c6bfd84fa129560caa43f341c7336 08-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] add internal_memset and internal_strrchr to sanitizer_common/

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
e19cf55e85f47e158526a932838b26cdafacc37d 08-Jun-2012 Alexey Samsonov <samsonov@google.com> [TSan] s/internal_memset/real_memset

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f7667cc84cdd8923c0b6c7cfc92b7bd5692ce18c 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move internal_strdup and internal_memcpy to common runtime. Make internal allocations from TSan runtime call InternalAlloc from common runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
47b1634df012507799eb39aa17d4022d748ba67b 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move placement_new definiton from TSan to common runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158145 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
e954101f6602ac181a2c3accfbbad0ae51b0bf7c 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
67a64dd8259fdbd867633b27f54d584f435f1ce6 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [TSan] run some renaming as a preparation for factoring out Printf implementation.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
230c3be6cdd094a187f48e27ba0961dbeee70344 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Move more functions/constants to sanitizer_common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
0a4c906dbc8f150657ddd4f19a7192b779f1d605 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use common defines for ASan and TSan runtime. Split defines between interface defines (can be visible in user code that includes interface ASan/TSan headers) and internal defines.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157998 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
603c4be006d8c53905d736bf1f19a49f5ce98276 04-Jun-2012 Alexey Samsonov <samsonov@google.com> Remove file-type tags in .cc files in tsan/ and sanitizer_common/

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157928 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
c0d78c1de1f2607c874020d27b72cf989c5ce092 04-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer]: move internal_strcmp to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157926 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
f037f565b2e02878ceb6e7b49647e814e2990ef5 31-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: intercept longjmp() but die in it, greatly simplifies problem diagnostic


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b4b9fa707324095e3590a57963fd754d7a4dd40e 29-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: prevent recursive signal handlers


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157625 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
789b6c5669547b550034fc9888059b17e2ff1417 25-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: do not call into libc in symbolizer and in other code (this causes recursion and crashes)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157466 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
1070a5a7143c76a2ac0ca3c0c8113d7357d26ff7 25-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: output message about failure to intercept only if verbosity flag is passed



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
e294d09d45aa97d1d2c8ee237ee2ac225442d330 22-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix sizeof sigset_t


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157268 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
26127735454fddae3495794f38189d57dde6510f 22-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: simple memory profiler


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157248 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
05906a7a12865b0fb0f5f6d607848cf7b5a1e5e0 21-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: implement malloc/free hooks



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
6d6acaa301e86d997a9dd5aed51c72a736fa245d 21-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: do not assume non-recursive signal handlers


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
d91d06794506f10fb7599a2b835222fba29394e0 21-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: better, more realistic handling of signals


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157178 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7d38634b30beed9bed44dfa6cb8e977ec51d7c6c 18-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix potential NULL deref


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157047 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
b7b6b1cd9df0c954b1f890fcebf373db984923b3 17-May-2012 Dmitry Vyukov <dvyukov@google.com> tsan: remove shutdown code
tsan runtime shutdown is problematic for 2 reasons:
1. others crash during shutdown
2. we have to override user exit status (don't know it and can't return from atexit handler)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
7ac41484ea322e0ea5774df681660269f5dc321e 10-May-2012 Kostya Serebryany <kcc@google.com> [tsan] First commit of ThreadSanitizer (TSan) run-time library.

Algorithm description: http://code.google.com/p/thread-sanitizer/wiki/ThreadSanitizerAlgorithm

Status:
The tool is known to work on large real-life applications, but still has quite a few rough edges.
Nothing is guaranteed yet.

The tool works on x86_64 Linux.
Support for 64-bit MacOS 10.7+ is planned for late 2012.
Support for 32-bit OSes is doable, but problematic and not yet planed.

Further commits coming:
- tests
- makefiles
- documentation
- clang driver patch

The code was previously developed at http://code.google.com/p/data-race-test/source/browse/trunk/v2/
by Dmitry Vyukov and Kostya Serebryany with contributions from
Timur Iskhodzhanov, Alexander Potapenko, Alexey Samsonov and Evgeniy Stepanov.




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@156542 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc