systemtap을 이용한 시스템 검사

yum -y install systemtap kernel-devel

32bit
wget http://debuginfo.centos.org/5/i386/kern ··· %60uname -r`.i686.rpm
wget http://debuginfo.centos.org/5/i386/kern ··· %60uname -r`.i686.rpm

64bit
wget http://debuginfo.centos.org/5/x86_64/ke ··· %60uname -r`.x86_64.rpm
wget http://debuginfo.centos.org/5/x86_64/ke ··· %60uname -r`.x86_64.rpm


stap -e 'probe begin { log("stap test") exit() }'
stap -vvv -e 'probe kernel.function("sys_open") { log("hello world") exit() }'

begin 시작시
end 종료시
kernel.function("sys_sync")
kernel.syscal.* 시스콜이 호출되는 경우
kernel.function("*@kernel/fork.c:934") fork.c 의 934행에 도달했을때 실행된다.

module("ext3").function
("ext3_file_write") ext3write 함수가 호출되는 경우
timer.jiffies(1000) 1000개의 커널 지피마다 실행

크리에이티브 커먼즈 라이센스
Creative Commons License
Posted by 진님
<< PREV : [1] : [2] : [3] : [4] : [5] : ... [22] : NEXT >>

BLOG main image
잡다한 개인 일상사입니다. by 진님

공지사항

카테고리

전체 (22)
개인사 (2)
(5)

최근에 받은 트랙백

글 보관함

달력

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Total : 26536
Today : 18 Yesterday : 24