[PATCH] D14572: sanitizer: add support for trace coverage

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 06:21:39 PST 2015


dvyukov created this revision.
dvyukov added a reviewer: kcc.
dvyukov added a subscriber: llvm-commits.

Trace coverage mode collects all covered PCs into a per-thread, in-memory buffer. This mode replaces experimental and unused basic block tracing.
No logic is inlined into instrumented code, compiler only inserts callbacks into runtime.
This mode is meant to be used at least for Linux kernel, but can be useful for user-space as well.


http://reviews.llvm.org/D14572

Files:
  include/clang/Driver/CC1Options.td
  include/clang/Frontend/CodeGenOptions.def
  include/llvm/Transforms/Instrumentation.h
  include/sanitizer/coverage_interface.h
  lib/CodeGen/BackendUtil.cpp
  lib/Driver/SanitizerArgs.cpp
  lib/Frontend/CompilerInvocation.cpp
  lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  lib/sanitizer_common/sanitizer_coverage_libcdep.cc
  test/Driver/fsanitize-coverage.c
  test/Instrumentation/SanitizerCoverage/tracing.ll
  test/asan/TestCases/coverage-tracing.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14572.39910.patch
Type: text/x-patch
Size: 24486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151111/d0565b40/attachment-0001.bin>


More information about the llvm-commits mailing list