Default implementation of __sanitizer_cov_trace_pc for sancov

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On clang, when using -fsanitize-coverage=trace-pc-guard default implementations for the callback functions are provided that produce sancov data:
https://clang.llvm.org/docs/SanitizerCoverage.html#default-implementation
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
Are there such default implementations for gcc 9.3 and -fsanitize-coverage=trace-pc? If no, would it be easy to introduce them by another way?

Regards






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux