[PATCH] D105128: [dfsan] Expose dfsan_get_track_origins to get origin tracking status

stephan.yichao.zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 29 08:35:36 PDT 2021


stephan.yichao.zhao created this revision.
stephan.yichao.zhao added a reviewer: browneee.
Herald added a subscriber: hiraditya.
stephan.yichao.zhao requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

This allows application code checks if origin tracking is on before
printing out traces.

-dfsan-track-origins can be 0,1,2.
The current code only distinguishes 1 and 2 in compile time, but not at runtime.
Made runtime distinguish 1 and 2 too.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105128

Files:
  compiler-rt/lib/dfsan/dfsan.cpp
  compiler-rt/lib/dfsan/done_abilist.txt
  compiler-rt/test/dfsan/dfsan_get_track_origins.c
  llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  llvm/test/Instrumentation/DataFlowSanitizer/basic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105128.355258.patch
Type: text/x-patch
Size: 7270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210629/abeed033/attachment.bin>


More information about the llvm-commits mailing list