summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_common.h
Commit message (Collapse)AuthorAgeFilesLines
...
* [Sanitizer] support running external llvm-symbolizer on MacAlexey Samsonov2013-06-111-0/+2
| | | | llvm-svn: 183730
* tsan: fix windows mingw buildDmitry Vyukov2013-06-101-3/+3
| | | | llvm-svn: 183644
* Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching ↵Alexey Samsonov2013-05-291-4/+0
| | | | | | to a custom allocator. llvm-svn: 182836
* [nolibc] Move all platforms to internal_getpid.Peter Collingbourne2013-05-171-1/+0
| | | | | | | | | | 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. llvm-svn: 182132
* [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate ↵Peter Collingbourne2013-05-171-0/+2
| | | | | | | | | | | | | | | | library Introduce a new object library, RTSanitizerCommonLibc, which will contain the subset of sanitizer_common with libc dependencies. RTSanitizerCommon contains the remainder of sanitizer_common, and is intended to have no libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting with sanitizer_common.cc, whose libc-dependent portion is moved to sanitizer_common_libcdep.cc, the first member of the new library. This split affects the CMake build only. The makefile build continues to produce the full sanitizer_common library. llvm-svn: 182118
* [sanitizer] Generic sorting in sanitizer_common.Sergey Matveev2013-05-131-0/+38
| | | | llvm-svn: 181698
* [nolibc] Change internal syscall API to remove reliance on libc's errno.Peter Collingbourne2013-05-081-1/+1
| | | | | | | | | | | | | This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 llvm-svn: 181436
* [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.Sergey Matveev2013-05-071-0/+2
| | | | | | | | Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). llvm-svn: 181322
* Revert r180599 "[sanitizer] Clear LD_PRELOAD when forking an external ↵Sergey Matveev2013-04-261-1/+0
| | | | | | symbolizer." llvm-svn: 180602
* [sanitizer] Clear LD_PRELOAD when forking an external symbolizer.Sergey Matveev2013-04-261-0/+1
| | | | llvm-svn: 180599
* Revert r180082 and add a test for SetEnv functionAlexey Samsonov2013-04-231-0/+1
| | | | llvm-svn: 180098
* [Sanitizer] Delete unused functionAlexey Samsonov2013-04-231-1/+0
| | | | llvm-svn: 180082
* [Sanitizer] Use a common mutex to prevent mixing reports from different ↵Alexey Samsonov2013-04-051-0/+3
| | | | | | sanitizers. This fixes PR15516 llvm-svn: 178853
* [libsanitizer] Added data() and capacity() getters to InternalVector.Alexander Potapenko2013-04-011-0/+6
| | | | | | | | Same interface as in STL. Needed for LSan. Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 178463
* [Sanitizer] Follow-up for r178238 - replace DCHECKs with regular CHECKsAlexey Samsonov2013-03-291-2/+2
| | | | llvm-svn: 178336
* [Sanitizer] Minor enhancements in InternalVector containerAlexey Samsonov2013-03-281-2/+6
| | | | llvm-svn: 178238
* tsan: add SetEnv() function that can be used in frontendsDmitry Vyukov2013-03-251-0/+1
| | | | llvm-svn: 177857
* tsan: use a single background thread for memory profiler and memory flush ↵Dmitry Vyukov2013-03-211-0/+1
| | | | | | (and later for symbolizer flush) llvm-svn: 177627
* [sanitizer] Replace more platform checks with SANITIZER_ constants.Evgeniy Stepanov2013-03-191-3/+3
| | | | llvm-svn: 177400
* [libsanitizer] StopTheWorld in sanitizer_commonAlexander Potapenko2013-03-151-0/+1
| | | | | | | | | | | StopTheWorld puts the process in a suspended state before running the user-supplied callback. To be used in TSan and in leak checking code. Linux implementation provided. Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 177156
* [sanitizer] Move GetTlsSize code from TSan to sanitizer_common.Evgeniy Stepanov2013-03-131-0/+3
| | | | llvm-svn: 176938
* [Sanitizer] Add methods back() and pop_back() to InternalVector. Patch by ↵Alexey Samsonov2013-03-051-0/+8
| | | | | | Sergey Matveev llvm-svn: 176478
* [sanitizer] A low-level vector implementation to be used in leak checking ↵Kostya Serebryany2013-02-261-0/+52
| | | | | | code. Patch by Sergey Matveev llvm-svn: 176089
* [asan] a bit stricter lint for CHECK vs CHECK_XX (these CHECK_XX really help ↵Kostya Serebryany2013-02-261-1/+1
| | | | | | debugging!) llvm-svn: 176085
* [Sanitizer] use raw syscall instead of _exit() function on LinuxAlexey Samsonov2013-02-201-1/+0
| | | | llvm-svn: 175622
* [Sanitizer] Make temporary filename depend on user IDAlexey Samsonov2013-02-181-0/+1
| | | | llvm-svn: 175424
* [ASan] Move functions using BitScan/clzl to sanitizer_commonTimur Iskhodzhanov2013-02-081-0/+53
| | | | llvm-svn: 174706
* [asan] print a short one-line report summary after the full report. ↵Kostya Serebryany2013-02-061-0/+7
| | | | | | Currently, works only if symbolization happens in-process. llvm-svn: 174501
* [Sanitizer] make internal_open have the same interface as libc versionAlexey Samsonov2013-02-011-0/+1
| | | | llvm-svn: 174187
* [sanitizer] make the error messages from sanitizer_common contain the actual ↵Kostya Serebryany2013-01-311-0/+2
| | | | | | tool name llvm-svn: 174059
* [asan/tsan] when unmapping a chunk of user memory, apply ↵Kostya Serebryany2012-12-271-0/+1
| | | | | | madvise(MADV_DONTNEED) to the corresponding chunk of shadow memory. Also update sanitizer_allocator64_testlib.cc llvm-svn: 171144
* [asan] more asan_allocator2 code: actually un/poison shadow on malloc/free Kostya Serebryany2012-12-141-0/+3
| | | | llvm-svn: 170190
* [sanitizer] introduce MmapFixedOrDie and use it in SizeClassAllocator64Kostya Serebryany2012-12-131-0/+1
| | | | llvm-svn: 170099
* [asan] more code for asan_allocator2: basic Allocate/Deallocate codeKostya Serebryany2012-12-111-0/+3
| | | | llvm-svn: 169864
* Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which ↵Alexander Potapenko2012-12-101-0/+1
| | | | | | | | should be used by the client programs to notify the tools that sandboxing is about to be turned on. llvm-svn: 169732
* [sanitizer] implement SanitizerSetThreadName/SanitizerGetThreadName. Just ↵Kostya Serebryany2012-12-071-0/+7
| | | | | | for linux so far (using prctl(PR_GET_NAME)) llvm-svn: 169598
* [tsan] add MmapAlignedOrDieKostya Serebryany2012-12-061-0/+2
| | | | llvm-svn: 169474
* [tsan] remove unused InternalAllocBlock as part of larger refactoringKostya Serebryany2012-12-031-3/+0
| | | | llvm-svn: 169123
* [asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). ↵Kostya Serebryany2012-11-241-13/+1
| | | | | | This makes the code friendly to more platforms llvm-svn: 168537
* [asan] get rid of some of the uses of kPageSize. The intent is to get rid of ↵Kostya Serebryany2012-11-231-0/+3
| | | | | | it completely to support platforms with multiple possible page sizes. llvm-svn: 168517
* [asan] get rid of kPageSizeBitsKostya Serebryany2012-11-211-6/+3
| | | | llvm-svn: 168426
* [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵Kostya Serebryany2012-11-211-2/+2
| | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424
* [asan] more support for powerpc, patch by Peter BergnerKostya Serebryany2012-11-201-1/+14
| | | | llvm-svn: 168356
* [Sanitizer] add sanity checks for communication with external symbolizerAlexey Samsonov2012-11-091-0/+1
| | | | llvm-svn: 167617
* [Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to ↵Alexey Samsonov2012-11-021-0/+1
| | | | | | determine whether error reports are printed to terminal llvm-svn: 167298
* tsan: fix mac buildDmitry Vyukov2012-10-021-1/+1
| | | | llvm-svn: 165004
* tsan: output tid's in reportsDmitry Vyukov2012-10-021-0/+1
| | | | llvm-svn: 164998
* [Sanitizer] Hoist functions to get/set stack size and re-exec from ↵Alexey Samsonov2012-09-171-2/+6
| | | | | | memory-sanitizer branch to sanitizer_common llvm-svn: 164020
* [Sanitizer] Get rid of dependency between sanitizer_common and asan/tsan ↵Alexey Samsonov2012-09-111-2/+14
| | | | | | runtimes: implement tool-specific Die and CheckFailed functions via callbacks llvm-svn: 163603
* [Sanitizer] Remove implicit conversion of InternalScopedBuffer<T> to T*Alexey Samsonov2012-09-051-1/+0
| | | | llvm-svn: 163197
OpenPOWER on IntegriCloud