View previous topic :: View next topic |
Author |
Message |
antonellocaroli Guru
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 |
|
|
antonellocaroli Guru
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 |
|
|
inkflaw n00b
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 |
|
|
antonellocaroli Guru
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 |
|
|
|