<div><br></div><div><div><br></div>On Tue, May 13, 2014 at 1:15 PM, Ã¨Ñý <spcatman@qq.com> wrote:<br><br>   2. Problems in autoFDO:<br>  Actually the problem happened in using create_llvm_prof, transformation is<br>  failed.<br>  clang -O2 -g test.c -o a.out<br>  perf record -b ./a.out    (perf version is 0.0.2, "-b" option is not recognized, why?)<br><br>>>Hm, now I noticed the perf version you are using. That's too old. You<br>>>will need perf and kernel newer than 3.4. I'm currently using<br>>>3.8.13.13<br><br><br>>>Diego.<br></div><div><br></div><div><div> <span class="Apple-tab-span" style="white-space:pre">   </span>Yes, my perf is so old. It would bring errors like:Read wrong magic,(because </div><div>        "PERFFILE" has been changed to "PERFILE2") and others.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">  </span>And I have updated my perf to about version 3.4, which already support "-b" </div><div><span style="line-height: 1.5;">        option, but still convert failed. </span><span style="line-height: 1.5;"> (I didn't add "-b" option because my linux OS</span></div><div><span style="line-height: 1.5;">        is version2.6, lower than 3.4. Meaning no Last Branch Records samples.</span><span style="line-height: 1.5;">UserGuide</span></div><div><span style="line-height: 1.5;">        said LBR is not </span><span style="line-height: 1.5;">prerequisite.</span><span style="line-height: 1.5;"> </span><span style="line-height: 1.5;">I don't </span><span style="line-height: 1.5;">know whether it is the reason for convert failure,</span></div><div><span style="line-height: 1.5;">        or it is because of different perfdata format from different perf version. </span><span style="line-height: 1.5;">)</span></div><div><span style="line-height: 1.5;"><br></span></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>I will try the newest perf you recommended. </div></div><div><br></div>