summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_flags.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* [libsanitizer] Implement IntrusiveList<T>::Iterator, use IntrusiveList in ↵Alexander Potapenko2014-03-201-20/+14
| | | | | | sanitizer_flags.cc llvm-svn: 204342
* [libsanitizer] Introduce flag descriptions.Alexander Potapenko2014-03-201-28/+82
| | | | | | | | | Extend ParseFlag to accept the |description| parameter, add dummy values for all existing flags. As the flags are parsed their descriptions are stored in a global linked list. The tool can later call __sanitizer::PrintFlagDescriptions() to dump all the flag names and their descriptions. Add the 'help' flag and make ASan, TSan and MSan print the flags if 'help' is set to 1. llvm-svn: 204339
* tsan: yet another attempt to fix pthread_cond interceptorsDmitry Vyukov2014-03-171-0/+2
| | | | | | | | | | | Make behavior introduced in r202820 conditional (under legacy_pthread_cond flag). The new issue that we've hit with the satellite pthread_cond_t struct is that pthread_condattr_getpshared does not work (satellite data is not shared between processes). The idea is that most processes do not use pthread 2.2.5. The rare ones that use (2.2.5 is dated by 2002) must specify legacy_pthread_cond=1 on their own risk. llvm-svn: 204032
* [sanitizer] Add a flag to enable/disable report colorization.Evgeniy Stepanov2014-02-261-0/+2
| | | | llvm-svn: 202249
* [sanitizer] add iterators to bit vectors; make bit vector operations use ↵Kostya Serebryany2014-02-141-0/+2
| | | | | | little stack; add common flag 'detect_deadlocks' llvm-svn: 201405
* [sanitizer] Use mmap to zero-fill large shadow regions.Evgeniy Stepanov2014-02-141-0/+11
| | | | | | | | | | This is covered by existing ASan test. This does not change anything for TSan by default (but provides a flag to change the threshold size). Based on a patch by florent.bruneau here:   https://code.google.com/p/address-sanitizer/issues/detail?id=256 llvm-svn: 201400
* [Sanitizer] Teach external symbolizer to work with addr2line if ↵Alexey Samsonov2014-02-121-2/+2
| | | | | | llvm-symbolizer is unavailable. Allow this mode in TSan. llvm-svn: 201218
* tsan: fix Go buildDmitry Vyukov2014-01-311-0/+2
| | | | | | Go linker does not like function-static objects. llvm-svn: 200534
* [ASan] Move the signal handling-related flags to sanitizer_common.Alexander Potapenko2014-01-281-0/+7
| | | | | | This change is a part of refactoring intended to have common signal handling behavior in all tools. llvm-svn: 200295
* Sanitize printf functions.Alexey Samsonov2014-01-211-0/+2
| | | | | | | | | | Intercept and sanitize arguments passed to printf functions in ASan and TSan (don't do this in MSan for now). The checks are controlled by runtime flag (off by default for now). Patch http://llvm-reviews.chandlerc.com/D2480 by Yuri Gribov! llvm-svn: 199729
* [Sanitizer] Always initialize a Symbolizer (even if 'symbolize' is false).Alexey Samsonov2013-12-171-0/+2
| | | | | | | | | If 'symbolize' flag is not set, we still want to transform virtual address to module+offset pair in the call to Symbolizer::SymbolizeCode(). See https://code.google.com/p/address-sanitizer/issues/detail?id=251 for more details. llvm-svn: 197491
* tsan: fix flags parsingDmitry Vyukov2013-11-271-4/+2
| | | | | | | | - running_on_valgrind was not parsed in some contexts - refactor code a bit - add comprehensive tests for flags parsing llvm-svn: 195831
* [Sanitizer] Improve external symbolizer behavior.Alexey Samsonov2013-11-261-1/+1
| | | | | | | | | 1) Don't start external symbolizer subprocess until we actually try to symbolize anything. 2) Allow to turn off external symbolizer by providing empty ?SAN_SYMBOLIZER_PATH environment variable. llvm-svn: 195771
* [Sanitizer] Add print_summary runtime flag to disable error summaries (UBSan ↵Alexey Samsonov2013-11-141-0/+2
| | | | | | doesn't need them) llvm-svn: 194685
* [Sanitizer] Specify a default value for each common runtime flagAlexey Samsonov2013-11-121-2/+17
| | | | llvm-svn: 194479
* tsan: parse symbolize/external_symbolizer_path common flagsDmitry Vyukov2013-10-231-0/+2
| | | | llvm-svn: 193236
* tsan: actually parse verbofity flagDmitry Vyukov2013-10-151-0/+1
| | | | llvm-svn: 192704
* tsan: use sanitizer::CommonFlags in tsanDmitry Vyukov2013-10-151-2/+0
| | | | llvm-svn: 192692
* [Sanitizer] Simplify StackTrace::FastUnwindStack interface and fix a bug ↵Alexey Samsonov2013-10-111-0/+4
| | | | | | with one-frame stack traces llvm-svn: 192428
* [sanitizer] make the allocator crash instead of returning 0 on huge size ↵Kostya Serebryany2013-09-061-0/+1
| | | | | | (controlled by the allocator_may_return_null flag) llvm-svn: 190127
* [lsan] Add leak_check_at_exit flag.Sergey Matveev2013-08-011-0/+1
| | | | | | | | We needed a way to tell LSan to invoke leak checking only if __do_leak_check() is called explicitly. This can now be achieved by setting leak_check_at_exit=false. llvm-svn: 187578
* [lsan] Make __lsan_do_leak_check() honor the detect_leaks flag.Sergey Matveev2013-07-221-0/+1
| | | | | | Also move detect_leaks to common flags. llvm-svn: 186821
* [sanitizer] Move log_path to common flag and use it in MSan.Evgeniy Stepanov2013-06-251-0/+1
| | | | llvm-svn: 184836
* [sanitizer] ioctl interceptor.Evgeniy Stepanov2013-06-071-0/+1
| | | | | | | ASan: disabled by default MSan: enabled by default TSan: disabled llvm-svn: 183517
* Fix MSVC W3 compiler warningsTimur Iskhodzhanov2013-05-291-1/+1
| | | | llvm-svn: 182857
* [asan] Common flags in ASan.Sergey Matveev2013-05-061-0/+11
| | | | | | | Some flags that are common to ASan/MSan/TSan/LSan have been moved to sanitizer_common. llvm-svn: 181193
* tsan: better flag parsing: do not confuse flag that is a part of another flagDmitry Vyukov2013-03-271-4/+13
| | | | | | (e.g. suppressions and print_suppressions) llvm-svn: 178158
* [Sanitizer] Allow runtime flags be separated by colon as well as spaceAlexey Samsonov2013-02-191-1/+2
| | | | llvm-svn: 175511
* [Sanitizer] align allocation sizes in low level allocatorAlexey Samsonov2012-08-271-1/+2
| | | | llvm-svn: 162676
* [Sanitizer] Use low-level allocator in flag parsing to avoid calling ↵Alexey Samsonov2012-08-271-24/+38
| | | | | | malloc() before ASan/TSan initialization is done llvm-svn: 162673
* [Sanitizer] move flag parsing routines (and unit tests) from tsan runtime to ↵Alexey Samsonov2012-07-091-0/+82
common runtime. llvm-svn: 159928
OpenPOWER on IntegriCloud