Displaying 2 results from an estimated 2 matches for "trace_pc".
Did you mean:
trace_fp
2016 Oct 28
2
Basic block execution over time
Hello All,
How can I keep track of the different basic blocks of a program executed over time?
Or in other words, how can I annotate the block name (block_a) and the time/cycle at which that blocs (block_a) was executed, and do this for all the blocks on a reasonable simple program?
Regards, Raul.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Oct 29
0
Basic block execution over time
Hi,
I believe the easiest way to do this is using the new `trace_pc`
functionality from SanitizerCoverage. See
http://clang.llvm.org/docs/SanitizerCoverage.html#tracing-pcs for some
documentation about that.
In short:
- Compile your program with the `-fsanitize-coverage=trace-pc` flag.
- This adds a call to a function called `__sanitizer_cov_trace_pc` to every
ed...