<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63077>63077</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
BOLT and LBR collection on AMD Epyc Milan (zen3)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ss7pro
</td>
</tr>
</table>
<pre>
I am trying to get BOLT running on zen3 but I'm running into the issues while collecting performance profile. I'm unable to collect data using -e events and needs to revert to -e cpu/branch/brs.
```
tomasz@m1:~$ sudo perf record -b -e cycles:u -a sleep 1
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cycles:u).
/bin/dmesg | grep -i perf may provide additional information.
tomasz@m1:~$ sudo perf record -b -e cpu/branch-brs/ -c 1000037 -a sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 1.898 MB perf.data (518 samples) ]
tomasz@m1:~$
```
@aaupov
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVE2L5DYQ_TXypbCRJbttH3zo2VnDwA6BsJDjIEs1thJZMvroofeQ3x7k7uzOkgwhYGR9PD2VXtWTCEEvFnEk7QNpHwuR4ur8GEK3e1fMTl3HJxAbRH_VdoHoYMEID798-Qo-WZvnnIVvaDnMKcITYd32fUXb6CCuCDqEhAHeVm0QpDMGZcyAHf2r85uwEmH37lUbrO4cyYrZYD7wjgclooAU8r4SAS9oYwBhFVhEFTLS4wV9zL0SQe6JsGn2wsr16ISK0EdCz_f2RO_fMYxuE-EbaehWE37-k7AGQlLuiBA8SucVlPPBe5UGA-HnBFAKCAZxh_o99WfvnSf8_H7u64oQruEl870csb-4HS1hPWFDXpHCGPAYk7eo4E3HFRgDwvonexFGKxB-SRvamPGvzt8EyIAfARE2_HxHNs3aEjapDcMCpPsEi8cdSn271yauWfaLVghCKR21s8KAtkdS8ugnuv-h0Tvty9kHwiaAUkJNKaW8-0g40j68JyP8DL-5P9BC2qGGqDc80vzmdcRbOZD28T8IPok9Jo_qqJQ37yJCXfVDD883aHXjYX1b9xDEtmct2fAP5o8U-NdqurcNFSLt7gKFGrka-CAKHOtT33asZj0t1nFgolG8roWQJ4m1arhi9StXDBntZdsWemSUcXqirG7bhg8VFx3Hk5LzMJyaumakobgJbSpjLlvl_FIcZhtPnHZdYcSMJvxtbj9mUDmnJZCGGh1i-LEt6mhwPJydpfry8Ot3pzqbTX5-foTP-1XCszbCZsmy7QkbiuTNuMa45yIkbCJsWnRc01xJtxE25SPuv3L37neUkbDp9iYQNh2R_hUAAP__nRdn6w">