kernel panic when kretprobe all system calls

lglyahoo-news@yahoo.com.cn lglyahoo-news@yahoo.com.cn
Sat Sep 24 18:05:00 GMT 2005


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



More information about the Systemtap mailing list