[all-commits] [llvm/llvm-project] 927af6: [SanitizerCoverage] Add an option to gate the invo...
thetruestblue via All-commits
all-commits at lists.llvm.org
Wed Oct 16 21:53:00 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 927af63fddb8e34f23b2974f812156767988ec5f
https://github.com/llvm/llvm-project/commit/927af63fddb8e34f23b2974f812156767988ec5f
Author: thetruestblue <92476612+thetruestblue at users.noreply.github.com>
Date: 2024-10-16 (Wed, 16 Oct 2024)
Changed paths:
A clang/test/CodeGen/sanitize-coverage-gated-callbacks.c
M llvm/include/llvm/Transforms/Utils/Instrumentation.h
M llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
Log Message:
-----------
[SanitizerCoverage] Add an option to gate the invocation of the tracing callbacks (#108328)
Implement -sanitizer-coverage-gated-trace-callbacks to gate the
invocation of the tracing callbacks based on the value of a global
variable, which is stored in a specific section.
When this option is enabled, the instrumentation will not call into the
runtime-provided callbacks for tracing, thus only incurring in a trivial
branch without going through a function call. It is up to the runtime to
toggle the value of the global variable in order to enable tracing.
This option is only supported for trace-pc-guard.
Note: will add additional support for trace-cmp in a follow up PR.
Patch by Filippo Bigarella
rdar://101626834
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list