[PATCH] D45701: Add Logging API Callback for All *SAN Passes

Ben Mehne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 16 14:22:03 PDT 2018


Ben0mega created this revision.
Ben0mega added a reviewer: abdulras.
Herald added subscribers: Sanitizers, llvm-commits, kubamracek.

Intercept all *SAN printf calls and provide the resulting string to a user-provided callback.  This can be used to extract error messages and log them appropriately.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D45701

Files:
  include/sanitizer/common_interface_defs.h
  lib/asan/asan_interface.inc
  lib/asan/asan_rtl.cc
  lib/sanitizer_common/sanitizer_common.cc
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_common_interface.inc
  lib/sanitizer_common/sanitizer_printf.cc
  test/asan/TestCases/error_report_callback.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45701.142697.patch
Type: text/x-patch
Size: 5552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180416/3ef55f2f/attachment.bin>


More information about the llvm-commits mailing list