<div style="font-family:SimSun,STSong;font-size:large;;"><div><span style="font-family: Arial Black;"><font size="2">Hi all,</font></span></div><div><span style="font-family: Arial Black;"><font size="2"><br></font></span></div><div><span style="font-family: Arial Black;"><font size="2">I want to test X-ray performance and compare it with other research tools, so I use Clang 7.0.0 to compile and instrument GNU binutils-2.3.1 with the following commands:</font></span></div><div><span style="font-family: Arial Black;"><font size="2"><br></font></span></div><div><span style="font-family: Arial Black;"><font size="2">cd binutils-2.31/</font></span></div><div><span style="font-family: Arial Black;"><font size="2"> mkdir build<br>cd build/<br>CC=$local/clang CXX=$local/clang++ CFLAGS=-fxray-instrument CXXFLAGS=-fxray-instrument ../configure --prefix=/home/zhangysh1995/local</font></span></div><div><span style="font-family: Arial Black;"><font size="2">make</font></span></div><div><span style="font-family: Arial Black;"><font size="2"><br></font></span></div><div><span style="font-family: Arial Black;"><font size="2">Then I extract instrumentation map with llvm-xray extract addr2line and it returns:</font></span></div><div><span style="font-family: Arial Black;"><font size="2">---<br>- { id: 1, address: 0x000000000041CD70, function: 0x000000000041CD70, kind: function-enter, always-instrument: false, function-name: '' }<br>- { id: 1, address: 0x000000000041D026, function: 0x000000000041CD70, kind: function-exit, always-instrument: false, function-name: '' }<br>- { id: 2, address: 0x000000000041D4F0, function: 0x000000000041D4F0, kind: function-enter, always-instrument: false, function-name: '' }<br>- { id: 2, address: 0x000000000041DAFA, function: 0x000000000041D4F0, kind: function-exit, always-instrument: false, function-name: '' }<br>- { id: 3, address: 0x000000000041E570, function: 0x000000000041E570, kind: function-enter, always-in</font></span></div><div><span style="font-family: Arial Black;"><font size="2">......</font></span></div><div><span style="font-family: Arial Black;"><font size="2">......<br></font></span></div><div><span style="font-family: Arial Black;"><font size="2"><br></font></span></div><div><span style="font-family: Arial Black;"><font size="2">Does the map mean that no function is instrumented? Should I change my commands?</font></span></div><div><span style="font-family: Arial Black;"><font size="2">BTW, after instrumentation could I run the binary and get trace directly?</font></span></div><div><span style="font-family: Arial Black;"><font size="2"><br></font></span></div><div><span style="font-family: Arial Black;"><font size="2">Here is the link to current documentation: https://llvm.org/docs/XRay.html</font></span></div><div><span style="font-family: Arial Black;"><font size="2"><br></font></span></div><div><span style="font-family: Arial Black;"><font size="2">Thank you all,</font></span></div><div><span style="font-family: Arial Black;"><font size="2">Yushan<br></font></span></div><div><span style="font-family: Arial Black;"><font size="2"><sign signid="-1"></sign></font></span></div><div><span style="font-family: Arial Black;"><font size="2"><qzone></qzone></font></span></div><div><span style="font-family: Arial Black;"><font size="2"><includetail><!--<![endif]--></includetail></font></span></div></div>