public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Edgar Mobile <heideggm@hotmail.com>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Default implementation of __sanitizer_cov_trace_pc for sancov
Date: Wed, 22 Sep 2021 15:37:26 +0000	[thread overview]
Message-ID: <BY5PR16MB316091CCB0BDCF84C607FA8AC7A29@BY5PR16MB3160.namprd16.prod.outlook.com> (raw)

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



                 reply	other threads:[~2021-09-22 15:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BY5PR16MB316091CCB0BDCF84C607FA8AC7A29@BY5PR16MB3160.namprd16.prod.outlook.com \
    --to=heideggm@hotmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).