<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/114164>114164</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
How to optimize binary using bolt on Android system (arm64 architecture)?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lqwu
</td>
</tr>
</table>
<pre>
When I referred to this link: https://github.com/llvm/llvm-project/tree/main/bolt, I successfully tested performance optimization with the bolt tool on x86 architecture.
When I tested on the Android system (arm64 architecture), I found that the perf tool has been deprecated and only the simpleperf tool can be used for sampling. However, when I try to execute the "perf2bolt -p perf.data -o perf.fdata -nl ./executable" command with the sampled results from simpleperf, I encounter an error: perf2bolt: 'perf.data': The file was not recognized as a valid object file. How can this issue be resolved? Has anyone successfully applied BOLT on the Android system (arm64 architecture)?
I look forward to your reply, thank you.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU02PqzgQ_DXm0hoEBkJy4JC3T2hGWmkvI-3Z2E3wjnGz_kiG-fVPhszXcS6J2qK6q6q7hPf6YhE71vxize9MxDCR68z_t5gNpNbu3wktPIHDEZ1DBYEgTNqD0faFVWeYQlg8q86M94z3Fx2mOOSSZsZ7Y67vfw-Lo_9QBsb74BAZ72ehLeP9QCYw_hc8gY9SovdjNGaFgD6gggXdSG4WViLQEvSs30TQZOGmwwRhQkh4CEQGyMLr8QDCyUkHlCE6zFnxmxXn_fcu5N6Z7AY_W-VIK_CrDzgD40fh5kP9rQvjp53hSNEqCJMIGzaR20dPwsOAaEHh4lCKNEDYNCRJmRC8nheDnwApLAwI0aOCkRx4MS9G20sOj3TDK7o08HYn7NZkOr6ijAG3dozz1Itv4h-WjUmuRBDwQHsx7pU1kDPe71gxGGScg6R5Tuw-PNymowKHPprgYXQ0f6G8i0crKdqADoQFdI5c2v4HjVQw3n4wYbxNT88TwqgNwk14sBTAoaSL1W_JIQ8CrsJoBTSk49i-3CzYDNrOTHsfMXnl0JO5omJVD48Jaley-P1qxLIYjQp-_fP38083XPXw9VqewBC9pOXchNuufqXowOFi1mRImIR9SW95prpKnaqTyLAr26rgTVU1TTZ1LZdD2dRjWzZcleqIWElxqqQU5bFRxzbTHS94XRZVUZRN0zR52ZSqbqu2OeJBVUXD6gJnoU2eIpSTu2SbHV1Z1uWhzowY0Pj35LpuC9oQL57VhdE--E9c0MFgl5wN9J4khEFb4VaIXtvLniSyPzAsi850P87_JsEz3t9VXDv-JwAA__9dkYe1">