This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

kernel panic when kretprobe all system calls


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]