<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello everyone.</div><div>Our project needs a tool to gather path profiling information of a program, so I turn to LLVM for help.</div><div>However, it seems the function we need is removed since version 3.4. I try the version 3.3 instead, and I find that edge profiling, optimal edge profiling works well. When it comes to path profiling, it simply doesn't work.</div><div>And I can't find libprofile_rt.so in version 3.3 build, I download one from <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__rpmfind.net_&d=AwMGbg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=61eyc4zTVokoU8MuxDsDi-GzHvK2DzLS9DtHBTAHSh4&s=9yauHutrPEHzcEiwlMgSD8x9Pp8mQfznOQu3yqhuuJM&e=" _src="http://rpmfind.net/">http://rpmfind.net/</a> instead.</div><div>The command I use:</div><div><pre style="line-height: normal;">opt -insert-path-profiling -o example.pp.bc example.bc
lli -load WHERE_YOUR_LIBPROFILE_RE_SO_LIES/libprofile_rt.so example.pp.bc
#it produces llvmprof.out successfully
llvm-prof example.pp.bc
#then following error occurs : llvm-prof: Unknown packet type #5!</pre><pre style="line-height: normal;"><br></pre><pre style="line-height: normal;">So, my question is :</pre><pre style="line-height: normal;">1.Is there a new version that support PathProfiling again?</pre><pre style="line-height: normal;">2.Any historical version of LLVM support PathProfiling well? If any, please tell me the version number ...</pre><pre style="line-height: normal;"><br></pre><pre style="line-height: normal;"><pre>I've checked some old mails. The answer to my questions seems to be "NO". But the newest mails were written 2 years ago. Since LLVM is pretty hot these years and a long time passed, I want to make sure the questions above again and get the up-to-date answer.</pre><pre> I hope I make the problem I met clear. Your comments are very welcome.</pre><pre>Thanks,</pre><pre>Raymond.</pre></pre><pre style="line-height: normal;"><br></pre></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>