llvm-project/compiler-rt/lib/lsan
Kamil Rytarowski 983d7ddd0b Add NetBSD LSan support
Summary:
Combine few relatively small changes into one:

 - implement internal_ptrace() and internal_clone() for NetBSD
 - add support for stoptheworld based on the ptrace(2) API
 - define COMPILER_RT_HAS_LSAN for NetBSD
 - enable tests for NetBSD/amd64

Inspired by the original implementation by Christos Zoulas in netbsd/src for GCC.

The implementation is in theory CPU independent through well defined macros
across all NetBSD ports, however only the x86_64 version was tested.

Reviewers: mgorny, dvyukov, vitalybuka, joerg, jfb

Reviewed By: vitalybuka

Subscribers: dexonsmith, jfb, srhines, kubamracek, llvm-commits, christos

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64057

llvm-svn: 365735
2019-07-11 06:22:35 +00:00
..
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [CMake] Add compiler-rt header files to the list of sources for targets 2018-07-10 13:00:17 +00:00
lsan.cc Improve error message when '=' is missing in {ASAN,...}_OPTIONS. 2019-06-15 01:37:14 +00:00
lsan.h [NFC][Sanitizer] Add new BufferedStackTrace::Unwind API 2019-03-01 04:03:38 +00:00
lsan_allocator.cc [sanitizer] Implement reallocarray. 2019-05-01 17:33:01 +00:00
lsan_allocator.h [sanitizer][NFC] Set LargeMmapAllocator type from PrimaryAllocator 2019-05-01 19:41:54 +00:00
lsan_common.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lsan_common.h Add NetBSD LSan support 2019-07-11 06:22:35 +00:00
lsan_common_linux.cc Add NetBSD LSan support 2019-07-11 06:22:35 +00:00
lsan_common_mac.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lsan_flags.inc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lsan_interceptors.cc [sanitizer] Implement reallocarray. 2019-05-01 17:33:01 +00:00
lsan_linux.cc Add NetBSD LSan support 2019-07-11 06:22:35 +00:00
lsan_mac.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lsan_malloc_mac.cc On Darwin add allocator address and size fields to 2019-01-21 01:41:08 +00:00
lsan_preinit.cc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lsan_thread.cc sanitizers: Introduce ThreadType enum 2019-02-07 11:01:22 +00:00
lsan_thread.h sanitizers: Introduce ThreadType enum 2019-02-07 11:01:22 +00:00
weak_symbols.txt [lsan] Add __lsan_default_options 2017-09-22 23:49:49 +00:00