[llvm-dev] Is there a way to trace what code block in a bitcode file is run?

张雨姗(ZHANG Yushan)-11310380 via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 24 03:33:10 PST 2019


Hi Peng,


Do you require basic block coverage? As far as I know, there is no such trace provided in LLVM. 



If  you just want simple basic block trace (without overhead), you could  try instrument all basic blocks and print information you want.



If you have higher expectations and care about performance overhead, it's better to check academic paper for existing solutions.


BTW, Clang 9 has a new feature (with coverage):
https://clang.llvm.org/docs/SanitizerCoverage.html


Cheers,
Yushan
 
------------------ Original ------------------
From:  "Peng Yu via llvm-dev"<llvm-dev at lists.llvm.org>;
Date:  Tue, Jan 22, 2019 01:10 AM
To:  "llvm-dev"<llvm-dev at lists.llvm.org>; 
Subject:  [llvm-dev] Is there a way to trace what code block in a bitcode file is run?

 
Hi,

The cfg pass is only a static analysis of a bitcode file. Is there a
way to trace what code blocks in a bitcode file actually run? Thanks.

-- 
Regards,
Peng
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190124/bae8bf3c/attachment.html>


More information about the llvm-dev mailing list