码迷,mamicode.com
首页 > 其他好文 > 详细

SYSTEMTAP安装

时间:2015-06-17 18:19:36      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

install systemtap under centos

1 安装systemtap

yum install systemtap systemtap-runtime
yum install kernel-devel kernel-debug 
##下载对应kernel的debuginfo
debuginfo-install kernel-2.6.32-504.12.2.el6

下载比较久。可以选择到其他网站上先把那个rpm下载下来
oss.oracle.com/el6/debuginfo
http://debuginfo.centos.org/6/x86_64/

2 开启debuginfo的repo

vim /etc/yum.repos.d/CentOS-Debuginfo.repo

enabled=1

3 测试

stap -v -e ‘probe vfs.read {printf("read performed\n"); exit()}‘

SYSTEMTAP安装

标签:

原文地址:http://blog.csdn.net/aca_jingru/article/details/46535635

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!