[PATCH] D11435: [sanitizer] Implement logging to syslog
Evgeniy Stepanov
eugenis at google.com
Wed Jul 22 15:33:02 PDT 2015
eugenis created this revision.
eugenis added reviewers: samsonov, kcc.
eugenis added a subscriber: llvm-commits.
Herald added subscribers: srhines, danalbert, tberghammer.
Previously, Android target has logic of duplicating all sanitizer output to logcat.
This change extends it to all posix platforms via the use of syslog, controlled by log_to_syslog flag.
Enabled by default on Android, off everywhere else.
A bit of cmake magic is required to allow Printf() to call a libc function. I'm adding a stub implementation to support no-libc builds like dfsan and safestack.
http://reviews.llvm.org/D11435
Files:
lib/safestack/CMakeLists.txt
lib/sanitizer_common/CMakeLists.txt
lib/sanitizer_common/sanitizer_common.h
lib/sanitizer_common/sanitizer_common_nolibc.cc
lib/sanitizer_common/sanitizer_flags.inc
lib/sanitizer_common/sanitizer_linux.cc
lib/sanitizer_common/sanitizer_posix_libcdep.cc
lib/sanitizer_common/sanitizer_printf.cc
lib/sanitizer_common/tests/CMakeLists.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11435.30411.patch
Type: text/x-patch
Size: 9143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150722/ab768e60/attachment.bin>
More information about the llvm-commits
mailing list