Analysis2012. 2. 12. 16:31
[systemtap]

명령어 :
# stap


정상여부 확인 방법 :
# stap -ve 'probe begin { log("hello world") exit () }'
# stap -c df -e 'probe syscall.* { if (target()==pid()) log(name." ".argstr) }'
위의 두가지 명령어 실행시 정상적으로 결과 나오면 OK


공식 홈페이지(영문) : 
http://sources.redhat.com/systemtap/index.html
-> redhap 에서 운영하다 GPL로 넘긴 공식 홈페이지
-> Wiki, Documentation 페이지에 가보면... 데이타 수집을 위한 다양한 스크립트 가이드 문서 존재 함.


IBM developerWorks 기술자료 (한글) :
http://www.ibm.com/developerworks/kr/library/l-systemtap/index.html
-> 전반적인 stap 에대한 설명.. 한글로 되어 있어 초기 접근자에게 유용함.


IBM infocenter 기술자료 (영문) :
http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=%2Fliaai%2FsystemTap%2Fliaaisystapinstallrhel.htm
-> install 방법, stap script 예제, SystemTap GUI 소개


설치방법 :
1. 
# yum install systemtap kernel-devel yum-utils

2. 
# debuginfo-install kernel
-> 안된다면 아래의 방법 으로

2-1.
사용중인 리눅스의 커널버젼과 같은 kernel-debuginfo ~.rpm을 다운 받아 설치
# rpm -ivh --nodeps kernel-debuginfo-2.6.18-194.el5.i686.rpm 

아래의 주소또는 구글링하여 찾는다. 
http://debuginfo.centos.org/5/i386/
ftp://ftp.pbone.net/mirror/ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/i686/Debuginfo/
http://rpm.pbone.net/

'Analysis' 카테고리의 다른 글

latencytop  (0) 2012.07.27
STREAM benchmark tool  (0) 2012.01.17
byte-unixbench  (0) 2012.01.13
LLCbench  (0) 2012.01.13
LMbench  (0) 2012.01.13
Posted by JINSAN CHOI