[PATCH] D64057: Add NetBSD/amd64 LSan support

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 19:21:06 PDT 2019


krytarowski created this revision.
krytarowski added reviewers: mgorny, dvyukov, vitalybuka.
Herald added subscribers: llvm-commits, kubamracek, srhines.
Herald added a project: LLVM.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D64057

Files:
  cmake/config-ix.cmake
  lib/lsan/lsan_common.h
  lib/lsan/lsan_common_linux.cc
  lib/lsan/lsan_linux.cc
  lib/sanitizer_common/sanitizer_linux.h
  lib/sanitizer_common/sanitizer_netbsd.cc
  lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
  test/lsan/lit.common.cfg.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64057.207463.patch
Type: text/x-patch
Size: 14502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190702/d55a2c90/attachment.bin>


More information about the llvm-commits mailing list