1.安装
sudo apt-get install linux-tools-common
sudo apt-get install linux-tools
或者
2.教程
http://www.ibm.com/developerworks/cn/linux/l-cn-perf1/?ca=drs-
3.内核支持PERF
make menuconfig
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_USE_VMALLOC=y
#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
CONFIG_PERF_COUNTERS=y
阅读(2659) | 评论(0) | 转发(0) |