环境:Qemu + ARMv8
perf是一款综合性分析工具,大到系统全局性性能,再小到进程线程级别,甚至到函数及汇编级别。
在内核源码目录下执行编译脚本:
#!/bin/bash cross_compile=aarch64-linux-gnu- make CROSS_COMPILE=$cross_compile ARCH=arm64 defconfig
make CROSS_COMPILE=$cross_compile ARCH=arm64 menuconfig
make CROSS_COMPILE=$cross_compile ARCH=arm64 Image -j4
make CROSS_COMPILE=$cross_compile ARCH=arm64 tools/perf_clean V=
make CROSS_COMPILE=$cross_compile ARCH=arm64 tools/perf V=