This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
kernel panic when kretprobe all system calls
- From: <lglyahoo-news at yahoo dot com dot cn>
- To: systemtap at sources dot redhat dot com
- Date: Sun, 25 Sep 2005 02:05:27 +0800 (CST)
- Subject: kernel panic when kretprobe all system calls
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.cn; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=aOl/N2P7kXMHJi2tTha0lgD/hiVeKMIq0dMXDrLV/EFDenMZsMk+3iMQ/UrnICuJvZA++R2TadT5O/mJheBOH4MvYXFKSMDwCWgXHxyGpyETel7ivkjUQkhXzFxdU6/UrGnYTyDQtoKA9sLXoOciWSogjQHe7tI5ZKHvJ8iCLg4= ;
- Reply-to: lglyahoo-news at yahoo dot com dot cn
Hi,
I wrote a very simple stp file:
#! stap -p4
probe begin
{
log("systemtap starting probe")
}
probe kernel.function("sys_*")
{
log("enter")
}
probe kernel.function("sys_*").return
{
log("leave")
}
probe end
{
log("Now end log")
}
After I ran this script, it will print out lots of
"enter" and "leave" as expected. But when I switched
to another console and tried to run any command(such
as ls), the kernel will panic.
I am using RHEL 4 Update 2. kernel is 2.6.9-17.EL
I tried to comment out the probe:
kernel.function("sys_*").return, it worked well, no
kernel panic again in spite of I was running some
commands in another console at the same time.
But if I commented out the probe:
kernel.function("sys_*"), still kernel panic.
So it seems that there is something wrong with
kretprobe.
I will try the latest kernel(2.6.13-2) tomorrow to
see if kretprobe still has this error.
___________________________________________________________
雅虎免费G邮箱-No.1的防毒防垃圾超大邮箱
http://cn.mail.yahoo.com