TBA
The default Debian kernel does not have the perf tool enabled. We need to compile it in order to use the perf tool like in a stock OS.
- Clone the custom kernel repo into the VM:
git clone /path/to/custom/kernel/repo kernel
cd kernel
- Install dependencies:
sudo apt install libelf-dev libdw-dev libunwind-dev- Compile
cd tools/perf && make -j16After the compilation succeeds, you will see the perf executable in the directory. And you can use the sudo ./perf ... command.
[1] https://eastrivervillage.com/Custom-perf-with-custom-kernel