[sanitizer coverage] add a basic default implementation of callbacks for -fsanitize-coverage=inline-8bit-counters,pc-table
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp | ||
---|---|---|
172 | do you need to check that fd!=-1 here (not sure about the llvm convention). Similarly below | |
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc | ||
163 | are these flags generally documented somewhere? If so, consider updating documentation as well. |
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp | ||
---|---|---|
172 | Of OpenFile fails, it will write something like ==42028==SanitizerCoverage: failed to open /zz for writing (reason: 13) and nothing else will break, so a check would be redundant. | |
compiler-rt/lib/sanitizer_common/sanitizer_flags.inc | ||
163 | These are documented in https://clang.llvm.org/docs/SanitizerCoverage.html but for the time being I am hesitant to document it there. |
do you need to check that fd!=-1 here (not sure about the llvm convention). Similarly below