View previous topic :: View next topic |
Author |
Message |
antonellocaroli Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Aug 2016 Posts: 513
|
Posted: Sun Dec 15, 2024 5:35 pm Post subject: [Solved] AutoFDO |
|
|
Hi,
I came across this article:
https://docs.kernel.org/dev-tools/autofdo.html
I installed cachy-sources 6.12.4
intrigued and did a few tests, but I'll stop at this point:
perf record --pfm-events RETIRED_TAKEN_BRANCH_INSTRUCTIONS:k -a -N -b -c 500009 -o kernel.data
Code: | failed to parse event RETIRED_TAKEN_BRANCH_INSTRUCTIONS:k : event not found |
in fact does not list this event...
am I missing something on the system?
Code: | emerge -pv perf
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 0.89 s (backtrack: 0/20).
[ebuild R ] dev-util/perf-6.12.5::antonellocaroli USE="bpf crypt doc libpfm libtraceevent libtracefs unwind -audit* -babeltrace* (-big-endian) -caps -capstone -debug* -gtk -java -lzma -numa -perl -python -slang* -systemtap* -tcmalloc* -zstd" LLVM_SLOT="19 -16 -17 -18" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13 -python3_13t" 0 KiB |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
antonellocaroli Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Aug 2016 Posts: 513
|
Posted: Mon Dec 16, 2024 2:19 pm Post subject: |
|
|
I solved it by compiling perf in
/usr/src/linux/tools/perf |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
inkflaw n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Jun 2023 Posts: 3
|
Posted: Sun Dec 29, 2024 4:22 am Post subject: |
|
|
antonellocaroli wrote: | I solved it by compiling perf in
/usr/src/linux/tools/perf |
I still hanging here, can you tell me which command did you use? Thanks |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
antonellocaroli Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Aug 2016 Posts: 513
|
Posted: Sun Dec 29, 2024 4:50 am Post subject: |
|
|
Code: | cd /usr/src/linux/tools/perf
make |
check the available commands:
or
Code: | ./perf list --details |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sam_ Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/7738740495f7d1acc45bdb.jpg)
Joined: 14 Aug 2020 Posts: 2135
|
Posted: Sun Dec 29, 2024 9:43 am Post subject: |
|
|
It needs CONFIG_PERF_EVENTS_AMD_BRS. Some investigation would be needed to see why dev-utli/perf can't seem to pick that up, if that's what was happening (I would find this surprising). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
L1NTHALO n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 27 Aug 2024 Posts: 38
|
Posted: Thu Feb 06, 2025 12:12 pm Post subject: |
|
|
Is there any news as to why this is happening? I have the same issue and I can't compile perf in /usr/src/linux/tools because it gets a compilation error with USE=perl enabled. However why should perl be responsible for the event? I have enabled CONFIG_PERF_EVENTS_AMD_BRS even though I have a Zen 4 CPU. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|