NobinPegasus
Member
I have a custom built kernel. I want to build and install perf. How can I do it?
Code:
pegasus@pegasus:/usr/src/linux-headers-6.4.0-060400-generic/tools/perf$ make
BUILD: Doing 'make -j16' parallel build
Makefile.perf:8: ../scripts/utilities.mak: No such file or directory
make[1]: *** No rule to make target '../scripts/utilities.mak'. Stop.
make: *** [Makefile:70: all] Error 2
pegasus@pegasus:/usr/src/linux-headers-6.4.0-060400-generic/tools/perf$ uname -a
Linux pegasus 6.4.0-060400-generic #202306271339 SMP PREEMPT_DYNAMIC Tue Jun 27 14:26:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
pegasus@pegasus:/usr/src/linux-headers-6.4.0-060400-generic/tools/perf$ ls
arch check-headers.sh Documentation Makefile Makefile.config Makefile.perf perf-archive.sh perf-completion.sh perf-iostat.sh scripts tests trace util
Code:
pegasus@pegasus:/usr/src/linux-headers-6.4.0-060400-generic/tools/perf$ perf
WARNING: perf not found for kernel 6.4.0-060400
You may need to install the following packages for this specific kernel:
linux-tools-6.4.0-060400-generic
linux-cloud-tools-6.4.0-060400-generic
You may also want to install one of the following packages to keep up to date:
linux-tools-generic
linux-cloud-tools-generic