[all-commits] [llvm/llvm-project] ae6648: [dfsan] Expose dfsan_get_track_origins to get orig...

Z via All-commits all-commits at lists.llvm.org
Tue Jun 29 13:33:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae6648cee01bc5c390b74dacd1851cf5df74599b
      https://github.com/llvm/llvm-project/commit/ae6648cee01bc5c390b74dacd1851cf5df74599b
  Author: Jianzhou Zhao <jianzhouzh at google.com>
  Date:   2021-06-29 (Tue, 29 Jun 2021)

  Changed paths:
    M compiler-rt/include/sanitizer/dfsan_interface.h
    M compiler-rt/lib/dfsan/dfsan.cpp
    M compiler-rt/lib/dfsan/done_abilist.txt
    A compiler-rt/test/dfsan/dfsan_get_track_origins.c
    M llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
    M llvm/test/Instrumentation/DataFlowSanitizer/basic.ll

  Log Message:
  -----------
  [dfsan] Expose dfsan_get_track_origins to get origin tracking status

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.

Reviewed By: browneee

Differential Revision: https://reviews.llvm.org/D105128




More information about the All-commits mailing list