Re: SanitizerCoverage support

2021-01-20 Thread Martin Liška

On 1/19/21 12:11 PM, Roger Phillips wrote:

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.


I think we likely miss the functionality. I briefly looked at:
https://clang.llvm.org/docs/SanitizerCoverage.html and
as shown here:
https://clang.llvm.org/docs/SanitizerCoverage.html#default-implementation

On the other hand, the functionality should be in sanitizer so we may use it.

Martin


Re: SanitizerCoverage support

2021-01-20 Thread Roger Phillips via Gcc
Would it be possible to replicate the sancov functionality on gcc just through 
special trace functions?


From: Martin Liška 
Sent: Wednesday, January 20, 2021 11:40 AM
To: Roger Phillips ; gcc@gcc.gnu.org 
Cc: weixi@antfin.com 
Subject: Re: SanitizerCoverage support

On 1/19/21 12:11 PM, Roger Phillips wrote:
> 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.

I think we likely miss the functionality. I briefly looked at:
https://clang.llvm.org/docs/SanitizerCoverage.html and
as shown here:
https://clang.llvm.org/docs/SanitizerCoverage.html#default-implementation

On the other hand, the functionality should be in sanitizer so we may use it.

Martin