git clone --depth 1 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git cd linux/tools/perf make cp perf /usr/bin sudo apt-get install libpython3.11-dev perf -v perf version 6.7.rc1.gc42d9eeef8e5