<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:10pt"><div style="font-family:times new roman, new york, times, serif;font-size:10pt">Hi All,<br><br>I use llvm version 2.9. llvm-prof does not support to read path profiling info. So could I use any way else to read path profiling info?<br><br>Thanks<br><br>Linh<br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Andreas Neustifter <andreas.neustifter@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Andrew Trick <atrick@apple.com><br><b><span style="font-weight: bold;">Cc:</span></b> Linh Ho Tran <hotranlinh@yahoo.com>; "llvmdev@cs.uiuc.edu Mailing List" <llvmdev@cs.uiuc.edu>; Bob Wilson <bob.wilson@apple.com>; Adam Preuss
 <apreuss@ualberta.ca>; Jeff Kunkel <jdkunk3@gmail.com>; J Nelson Amaral <amaral@cs.ualberta.ca><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, May 10, 2011 3:44:46 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] Path profiling command<br></font><br>
Hi All!<br><br>I was involved in the LLVM profiling business during late 2009 and<br>early 2010 but I was not working on the path profiling but the<br>"regular" profiling code. So I'm only guessing in case there is not<br>other answer.<br><br>On 9 May 2011 20:19, Andrew Trick <<a ymailto="mailto:atrick@apple.com" href="mailto:atrick@apple.com">atrick@apple.com</a>> wrote:<br>><br>> On May 9, 2011, at 3:36 AM, Linh Ho Tran wrote:<br>><br>> [...]<br>><br>> The error message from llvm-prof is:  llvm-prof: Unkknown packet #5<br>><br>> Could you explain me the error message?<br>><br>> Are there errors in the command chain?<br>><br>> What is the format of file  llvmprof.out? Is it possible to read<br>> llvmprof.out from command llvm-prof by ignoring step 5?<br>><br>> What is the purpose of command in step 5?<br><br>Most of the LLVM profiling uses a binary format to dump the data,
 this<br>dump consists of several blocks with block headers, those headers<br>define the content of the block. To me it seem (again speculating<br>here) that there is a block header in this dump that is not recognised<br>by llvm-prof.<br><br>Ensure that the version of llvm-prof is from the same build as the<br>version of opt that you are using to instrument the code. If those<br>versions match then code is most likely broken.<br><br>Cheers, Andi<br></div></div>



</div></body></html>