llvm-project/compiler-rt/test/memprof/TestCases
Enna1 9e80add2cf [memprof] dump memprof profile when receive deadly signals
Currently memprof profile is dumped when program exits (call `FinishAndWrite()` in ~Allocator) or `__memprof_profile_dump` is manually called.
For programs that never exit (e.g. server-side application), it will be useful to dump memprof profile when specific signal is received.
This patch installs a signal handler for deadly signals(SIGSEGV, SIGBUS, SIGABRT, SIGILL, SIGTRAP, SIGFPE) like we do in other sanitizers. In the signal handler `__memprof_profile_dump` is called to dump memprof profile.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D134795
2022-10-08 10:08:23 +08:00
..
atexit_stats.cpp [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00
default_options.cpp
dump_process_map.cpp [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00
free_hook_realloc.cpp [asan][test] Additional test requiring weak symbol for dyld64. 2022-07-25 13:56:02 -07:00
interface_test.cpp [NFC] Update the test compiler to use clangxx. 2021-11-08 13:57:32 -08:00
log_path_test.cpp [sanitizer] Check if directory exists before trying to create 2022-02-13 06:59:32 -08:00
malloc-size-too-big.cpp [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00
malloc_hook.cpp
memprof_merge_mib.cpp [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00
memprof_options-help.cpp
memprof_profile_dump.cpp [memprof] Remove the "Live on exit:" print for text format. 2021-11-22 13:30:48 -08:00
memprof_profile_dump_on_abort.cpp [memprof] dump memprof profile when receive deadly signals 2022-10-08 10:08:23 +08:00
realloc.cpp
stress_dtls.c [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00
test_malloc_load_store.c [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00
test_memintrin.cpp [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00
test_merge_mib.cpp [memprof] Correct max size and access count computations 2022-08-23 16:53:46 -07:00
test_new_load_store.cpp [memprof][NFC] Fix mismatched-new-delete in memprof tests 2021-12-20 18:43:21 -08:00
test_terse.cpp [memprof][NFC] Fix mismatched-new-delete in memprof tests 2021-12-20 18:43:21 -08:00
unaligned_loads_and_stores.cpp [memprof] Make the raw binary format the default. 2021-11-11 11:29:36 -08:00