summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Move some POSIX-specific functions from sanitizer_libc.h to a new ↵Timur Iskhodzhanov2015-04-081-0/+4
| | | | | | sanitizer_posix.h llvm-svn: 234418
* [ASan/Win] Minor improvements towards enabling coverageTimur Iskhodzhanov2015-04-021-1/+2
| | | | llvm-svn: 233918
* Improve SUMMARY reporting in sanitizers.Alexey Samsonov2015-03-171-1/+3
| | | | | | | | | Make sure SUMMARY is always reported unless print_summary flag is set to false, even if symbolizer is unavailable or report stack trace is empty. If file/line info for PC can't be evaluated, print module name/offset like we do in stack trace. llvm-svn: 232567
* [Sanitizer] Print column number in SUMMARY line if it's available.Alexey Samsonov2015-02-271-14/+8
| | | | llvm-svn: 230721
* Silence an MSVC warning about testing a function for truth without calling itReid Kleckner2015-02-171-1/+1
| | | | | | | | | In general, this is a reasonable warning, except real_pthread_create is weak and can be null. The existing usage is correct as it the function is declared with SANITIZER_WEAK, but MSVC can't know that because it is defined to nothing on Windows. llvm-svn: 229562
* [asan] Allow changing verbosity in activation flags.Evgeniy Stepanov2015-01-201-1/+1
| | | | | | | This change removes some debug output in asan_flags.cc that was reading the verbosity level before all the flags were parsed. llvm-svn: 226566
* [asan] add a flag soft_rss_limit_mbKostya Serebryany2015-01-061-2/+25
| | | | llvm-svn: 225323
* [asan] new flag: hard_rss_limit_mbKostya Serebryany2014-12-161-0/+43
| | | | llvm-svn: 224353
* [Sanitizer] Fix report_path functionality:Alexey Samsonov2014-12-111-16/+7
| | | | | | | | | | | | | | | | | | | | | | | Summary: - Make sure mmap() is never called inside RawWrite function. - Wrap a bunch of standalone globals in a ReportFile object. - Make sure accesses to these globals are thread-safe. - Fix report_path functionality on Windows, where __sanitizer_set_report_path() would break program. I've started this yak shaving in order to make "CommonFlags::mmap_limit_mb" immutable. Currently we drop this flag to zero before printing an error message. Test Plan: regression test suite Reviewers: kcc, glider Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6595 llvm-svn: 224031
* Simplify Symbolizer::SymbolizePC() interface.Alexey Samsonov2014-12-021-3/+7
| | | | | | | | | | | Return a linked list of AddressInfo objects, instead of using an array of these objects as an output parameter. This simplifies the code in callers of this function (especially TSan). Fix a few memory leaks from internal allocator, when the returned AddressInfo objects were not properly cleared. llvm-svn: 223145
* [Sanitizer] Get rid of Symbolizer::Get() and Symbolizer::GetOrNull().Alexey Samsonov2014-09-101-0/+17
| | | | | | | | | We may as well just use Symbolizer::GetOrInit() in all the cases. Don't call Symbolizer::Get() early in tools initialization: these days it doesn't do any important setup work, and we may as well create the symbolizer the first time it's actually needed. llvm-svn: 217558
* [asancov] Write coverage directly to a memory-mapped file.Evgeniy Stepanov2014-05-271-0/+13
| | | | | | | | | | | This way does not require a __sanitizer_cov_dump() call. That's important on Android, where apps can be killed at arbitrary time. We write raw PCs to disk instead of module offsets; we also write memory layout to a separate file. This increases dump size by the factor of 2 on 64-bit systems. llvm-svn: 209653
* [sanitizer] Add a flag to enable/disable report colorization.Evgeniy Stepanov2014-02-261-0/+7
| | | | llvm-svn: 202249
* [lsan] Colorize LSan reports.Sergey Matveev2013-09-031-0/+14
| | | | llvm-svn: 189804
* Fix MSVC W3 compiler warningsTimur Iskhodzhanov2013-05-291-1/+1
| | | | llvm-svn: 182857
* [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate ↵Peter Collingbourne2013-05-171-0/+23
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
OpenPOWER on IntegriCloud