summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_common.h
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan/tsan] use InternalScopedBuffer instead of stack arrays. Use mmap ↵Kostya Serebryany2012-08-291-2/+4
| | | | | | inseted of InternalAlloc in InternalScopedBuffer llvm-svn: 162834
* [asan] get rid of AsanPrintf in favor of Printf from sanitizer_commonKostya Serebryany2012-08-281-0/+1
| | | | llvm-svn: 162746
* [Sanitizer] align allocation sizes in low level allocatorAlexey Samsonov2012-08-271-2/+4
| | | | llvm-svn: 162676
* [Sanitizer] Use low-level allocator in flag parsing to avoid calling ↵Alexey Samsonov2012-08-271-1/+0
| | | | | | malloc() before ASan/TSan initialization is done llvm-svn: 162673
* [Sanitizer] move low-level (mmap-based) allocator to sanitizer_commonAlexey Samsonov2012-08-271-0/+15
| | | | llvm-svn: 162663
* [TSan] switch tsan to using InternalScopedBuffer from sanitizer_commonAlexey Samsonov2012-08-221-0/+1
| | | | llvm-svn: 162351
* [Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It ↵Alexey Samsonov2012-08-211-0/+24
| | | | | | is defined analogous to similar class in tsan and should replace it. llvm-svn: 162262
* [Sanitizer] implement straightforward nlogn sorting, as qsort() may call ↵Alexey Samsonov2012-07-161-1/+7
| | | | | | malloc, which leads to deadlock in ASan allocator llvm-svn: 160262
* tsan: Go language supportDmitry Vyukov2012-07-051-5/+5
| | | | llvm-svn: 159754
* [Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use ↵Alexey Samsonov2012-07-031-0/+5
| | | | | | dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib. llvm-svn: 159652
* tsan/asan: unify atomics (move atomics from tsan to sanitizer_common)Dmitry Vyukov2012-06-291-5/+0
| | | | llvm-svn: 159437
* tsan: remove internal allocator, switch to sanitizer_common one.Dmitry Vyukov2012-06-251-1/+4
| | | | llvm-svn: 159142
* [tsan] more code for a specialized tsan allocatorKostya Serebryany2012-06-221-0/+1
| | | | llvm-svn: 158991
* [Sanitizer] Renaming: SNPrintf -> internal_snprintf (and move it to ↵Alexey Samsonov2012-06-191-1/+0
| | | | | | sanitizer libc) llvm-svn: 158710
* [Sanitizer] move different wrappers from TSan to common sanitizer runtimeAlexey Samsonov2012-06-181-0/+2
| | | | llvm-svn: 158655
* [Sanitizer] move all the rest re-implementations of libc functions from ASan ↵Alexey Samsonov2012-06-151-0/+12
| | | | | | runtime to common sanitizer runtime llvm-svn: 158519
* [Sanitizer] move ShadowRangeIsAvailable and several defines to common runtimeAlexey Samsonov2012-06-151-0/+7
| | | | llvm-svn: 158499
* [Sanitizer] move atomic ops, min/max and sort to commnon runtimeAlexey Samsonov2012-06-151-3/+11
| | | | llvm-svn: 158496
* [Sanitizer] move more portability wrappers to common runtime: sleep, _exit, ↵Alexey Samsonov2012-06-151-0/+5
| | | | | | abort, atexit, pthread_self llvm-svn: 158493
* [Sanitizer] move DumpProcessMap and DisableCoreDumper to common runtimeAlexey Samsonov2012-06-151-0/+4
| | | | llvm-svn: 158490
* [Sanitizer] move rest of mmap routines to common sanitizer runtimeAlexey Samsonov2012-06-141-0/+5
| | | | llvm-svn: 158452
* [Sanitizer] move portable GetEnv to common sanitizer runtimeAlexey Samsonov2012-06-141-0/+1
| | | | llvm-svn: 158451
* [Sanitizer] Allocator for internal runtime purposes. Currently it calls ↵Alexey Samsonov2012-06-071-0/+2
| | | | | | libcmalloc, but we might have to make it more low-level in future llvm-svn: 158142
* [Sanitizer] Fix mac build.Alexey Samsonov2012-06-071-1/+1
| | | | llvm-svn: 158141
* [Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.Alexey Samsonov2012-06-071-1/+4
| | | | llvm-svn: 158140
* [Sanitizer] Move ReadFileToBuffer to sanitizer_common.Alexey Samsonov2012-06-071-0/+7
| | | | llvm-svn: 158138
* [asan] more allocator compactionKostya Serebryany2012-06-061-0/+6
| | | | llvm-svn: 158082
* [Sanitizer] Switch to common mmap/munmap routines in ASan run-time.Alexey Samsonov2012-06-061-1/+3
| | | | llvm-svn: 158078
* [Sanitizer] Use common CHECK machinery. Currently each tool has to define ↵Alexey Samsonov2012-06-061-4/+0
| | | | | | its own CheckFailed function. llvm-svn: 158075
* [Sanitizer] Remove __attribute__((format))Alexey Samsonov2012-06-061-3/+3
| | | | llvm-svn: 158070
* [Sanitizer]: Introduce a common internal printf function. For now, also use ↵Alexey Samsonov2012-06-061-0/+4
| | | | | | 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). llvm-svn: 158065
* [Sanitizer] Move more functions/constants to sanitizer_common.Alexey Samsonov2012-06-061-2/+24
| | | | llvm-svn: 158056
* [Sanitizer] add sanitizer_common.h for routines shared between TSan and ASan ↵Alexey Samsonov2012-06-061-0/+28
runtimes. Use __sanitizer::Die() in TSan. llvm-svn: 158050
OpenPOWER on IntegriCloud