public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Default implementation of __sanitizer_cov_trace_pc for sancov
@ 2021-09-22 15:37 Edgar Mobile
  0 siblings, 0 replies; only message in thread
From: Edgar Mobile @ 2021-09-22 15:37 UTC (permalink / raw)
  To: gcc-help

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-22 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 15:37 Default implementation of __sanitizer_cov_trace_pc for sancov Edgar Mobile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).