forked from OSchip/llvm-project
Currently we have a bit of a mess related to tids: - sanitizers re-declare kInvalidTid multiple times - some call it kUnknownTid - implicit assumptions that main tid is 0 - asan/memprof claim their tids need to fit into 24 bits, but this does not seem to be true anymore - inconsistent use of u32/int to store tids Introduce kInvalidTid/kMainTid in sanitizer_common and use them consistently. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D101428 |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| README.txt | ||
| memprof.syms.extra | ||
| memprof_allocator.cpp | ||
| memprof_allocator.h | ||
| memprof_descriptions.cpp | ||
| memprof_descriptions.h | ||
| memprof_flags.cpp | ||
| memprof_flags.h | ||
| memprof_flags.inc | ||
| memprof_init_version.h | ||
| memprof_interceptors.cpp | ||
| memprof_interceptors.h | ||
| memprof_interceptors_memintrinsics.cpp | ||
| memprof_interceptors_memintrinsics.h | ||
| memprof_interface_internal.h | ||
| memprof_internal.h | ||
| memprof_linux.cpp | ||
| memprof_malloc_linux.cpp | ||
| memprof_mapping.h | ||
| memprof_new_delete.cpp | ||
| memprof_posix.cpp | ||
| memprof_preinit.cpp | ||
| memprof_rtl.cpp | ||
| memprof_shadow_setup.cpp | ||
| memprof_stack.cpp | ||
| memprof_stack.h | ||
| memprof_stats.cpp | ||
| memprof_stats.h | ||
| memprof_thread.cpp | ||
| memprof_thread.h | ||
| weak_symbols.txt | ||
README.txt
MemProfiling RT
================================
This directory contains sources of the MemProfiling (MemProf) runtime library.
Directory structure:
README.txt : This file.
CMakeLists.txt : File for cmake-based build.
memprof_*.{cc,h} : Sources of the memprof runtime library.
Also MemProf runtime needs the following libraries:
lib/interception/ : Machinery used to intercept function calls.
lib/sanitizer_common/ : Code shared between various sanitizers.
MemProf runtime can only be built by CMake. You can run MemProf tests
from the root of your CMake build tree:
make check-memprof