llvm-project/compiler-rt/include/sanitizer
Teresa Johnson 3d4bba302d [MemProf] Memory profiling runtime support
See RFC for background:
http://lists.llvm.org/pipermail/llvm-dev/2020-June/142744.html

Follow on companion to the clang/llvm instrumentation support in D85948
and committed earlier.

This patch adds the compiler-rt runtime support for the memory
profiling.

Note that much of this support was cloned from asan (and then greatly
simplified and renamed). For example the interactions with the
sanitizer_common allocators, error handling, interception, etc.

The bulk of the memory profiling specific code can be found in the
MemInfoBlock, MemInfoBlockCache, and related classes defined and used
in memprof_allocator.cpp.

For now, the memory profile is dumped to text (stderr by default, but
honors the sanitizer_common log_path flag). It is dumped in either a
default verbose format, or an optional terse format.

This patch also adds a set of tests for the core functionality.

Differential Revision: https://reviews.llvm.org/D87120
2020-10-16 09:47:02 -07:00
..
allocator_interface.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
asan_interface.h [compiler-rt] Normalize some in/out doxygen parameter in interface 2020-08-05 10:17:25 +01:00
common_interface_defs.h [compiler-rt] Normalize some in/out doxygen parameter in interface 2020-08-05 10:17:25 +01:00
coverage_interface.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
dfsan_interface.h [DFSan] Don't unmap during dfsan_flush(). 2020-08-14 11:43:49 -07:00
hwasan_interface.h [sanitizer] Implement reallocarray. 2019-05-01 17:33:01 +00:00
linux_syscall_hooks.h [sanitizer] Add missing declarations for sigaltstack syscall wrappers. 2020-02-04 13:10:43 -08:00
lsan_interface.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
memprof_interface.h [MemProf] Memory profiling runtime support 2020-10-16 09:47:02 -07:00
msan_interface.h [MSAN] Add fiber switching APIs 2020-08-27 19:30:40 -07:00
netbsd_syscall_hooks.h [compiler-rt] [netbsd] Regenerate syscall hooks 2020-09-10 20:16:39 +02:00
scudo_interface.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
tsan_interface.h tsan: tsan_interface.h: make constants static 2020-03-10 09:13:41 +01:00
tsan_interface_atomic.h Remove NOLINTs from compiler-rt 2019-09-11 23:19:48 +00:00
ubsan_interface.h [compiler-rt] Add ubsan interface header. 2019-09-13 08:22:58 +00:00