Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] AutoFDO
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Sun Dec 15, 2024 5:35 pm    Post subject: [Solved] AutoFDO Reply with quote

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
Code:
perf list
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
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Mon Dec 16, 2024 2:19 pm    Post subject: Reply with quote

I solved it by compiling perf in
/usr/src/linux/tools/perf
Back to top
View user's profile Send private message
inkflaw
n00b
n00b


Joined: 07 Jun 2023
Posts: 3

PostPosted: Sun Dec 29, 2024 4:22 am    Post subject: Reply with quote

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
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Sun Dec 29, 2024 4:50 am    Post subject: Reply with quote

Code:
cd /usr/src/linux/tools/perf
make



check the available commands:

Code:
./perf list


or

Code:
./perf list --details
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum