Oh btw: Does any of these two modes allow me to generate sancov files on function level? My intent is to record program flow, then visualize the diff between the runs. Most examples I see use edge,bb,func modes so I'm not sure trace-pc and trace-pc-cmp are enough.
________________________________ From: Martin Liška <mli...@suse.cz> Sent: Tuesday, January 19, 2021 10:40 AM To: Roger Phillips <heid...@hotmail.com>; gcc@gcc.gnu.org <gcc@gcc.gnu.org> Subject: Re: SanitizerCoverage support On 1/19/21 11:33 AM, Roger Phillips wrote: > Excellent! Since which version is this available? Hello. The option -fsanitize-coverage=trace-pc is available since 6.1.0 and -fsanitize-coverage=trace-cmp since 8.1.0. Martin > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > *From:* Martin Liška <mli...@suse.cz> > *Sent:* Tuesday, January 19, 2021 10:23 AM > *To:* Roger Phillips <heid...@hotmail.com>; gcc@gcc.gnu.org <gcc@gcc.gnu.org> > *Subject:* Re: SanitizerCoverage support > On 1/19/21 10:07 AM, Roger Phillips via Gcc wrote: >> Greetings, >> >> can you tell me if support of SanitizerCoverage is planned for gcc in the >> foreseeable future? >> >> Regards >> > > Hello. > > We do support it, please see 'man gcc': > > -fsanitize-coverage=trace-pc > -fsanitize-coverage=trace-cmp > > Martin