diff options
author | Kostya Serebryany <kcc@google.com> | 2012-09-14 04:35:14 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-09-14 04:35:14 +0000 |
commit | 81dfbb76f858fbc4084771fce4967ede04ed5f44 (patch) | |
tree | abb184ff829cf56b9ce130f5b22ee1cf9a0faf21 /include | |
parent | 484db99999ebadcc62bd5ac5a702d1fdad391111 (diff) |
[asan] add asan option log_path=PATH to let users redirect asan reports to a file PATH.PID instead of stderr
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/sanitizer/common_interface_defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index f76462c68..1aa4f0b76 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -53,4 +53,10 @@ typedef signed long long s64; // NOLINT } // namespace __sanitizer +extern "C" { + // Tell the tools to write their reports to "path.<pid>" instead of stderr. + void __sanitizer_set_report_path(const char *path) + SANITIZER_INTERFACE_ATTRIBUTE; +} // extern "C" + #endif // SANITIZER_COMMON_INTERFACE_DEFS_H |