[cfe-dev] Sancov output for sanitizer coverage
Edgar Mobile via cfe-dev
cfe-dev at lists.llvm.org
Fri Sep 24 01:28:49 PDT 2021
Greetings,
according to https://clang.llvm.org/docs/SanitizerCoverage.html#default-implementation clang provides default implementations for the trace callback functions to create sancov files. Can you tell me where in the code these functions are defined and if there is a backport for gcc?
Regards
SanitizerCoverage — Clang 13 documentation<https://clang.llvm.org/docs/SanitizerCoverage.html#default-implementation>
extern "C" void __sanitizer_cov_pcs_init (const uintptr_t * pcs_beg, const uintptr_t * pcs_end) {// [pcs_beg,pcs_end) is the array of ptr-sized integers representing // pairs [PC,PCFlags] for every instrumented block in the current DSO. // Capture this array in order to read the PCs and their Flags. // The number of PCs and PCFlags for a given DSO is the same as the number // of 8-bit counters ...
clang.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210924/a612bfe6/attachment-0001.html>
More information about the cfe-dev
mailing list