[LLVMdev] Path profiling command

Andrew Trick atrick at apple.com
Mon May 9 11:19:40 PDT 2011


On May 9, 2011, at 3:36 AM, Linh Ho Tran wrote:
> 1. Compile to LLVM Bitcode
>      llvm-gcc –emit-llvm foo.c –c –o foo.bc
> 2. Insert Path Instruments
>      opt –insert-path-profiling foo.bc –o foo_path.bc
> 3. Link with profile runtime library and make machine code
>      llvm-ld –lprofile_rt –native foo_path.bc –o foo_path
> 4. Run program to get profile info
>      ./foo_path –llvmprof-out
> 5. Create path count map from raw data
>     opt –path-profile-loader-file =llvmprof.out –path-profile-loader foo_path.bc –o path.out
> 6. Load Profile info: 
>     llvm-prof path.out
> The error message from llvm-prof is:  llvm-prof: Unkknown packet #5
> 
> Could you explain me the error message? 
> Are there errors in the command chain?
> What is the format of file  llvmprof.out? Is it possible to read llvmprof.out from command llvm-prof by ignoring step 5?
> What is the purpose of command in step 5?

Hi Linh,

We had considerable interest in path profiling several months ago, but it was purely an experimental feature and I'm not sure if anyone is committed to maintaining the code base. I'm copying some of the interested parties to find out the current level of interest and activity. If you find the time to fix any issues, please send a patch. If the code isn't being maintained it will eventually be pruned from the source tree.

-Andy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110509/ecd8ff97/attachment.html>


More information about the llvm-dev mailing list