292b33
/*
292b33
   This probe will fire when the perl script enters a subroutine.
292b33
 */
292b33
292b33
probe perl.sub.call = process("LIBRARY_PATH").mark("sub__entry")
292b33
{
292b33
292b33
  sub = user_string($arg1)
292b33
  filename = user_string($arg2)
292b33
  lineno = $arg3
292b33
  package = user_string($arg4)
292b33
292b33
}
292b33
292b33
/* 
292b33
   This probe will fire when the return from a subroutine has been 
292b33
   hit.  
292b33
 */
292b33
292b33
probe perl.sub.return = process("LIBRARY_PATH").mark("sub__return")
292b33
{
292b33
292b33
  sub = user_string($arg1)
292b33
  filename = user_string($arg2)
292b33
  lineno = $arg3
292b33
  package = user_string($arg4)
292b33
292b33
}
292b33
292b33
/* 
292b33
   This probe will fire when the Perl interperter changes state.
292b33
 */
292b33
292b33
probe perl.phase.change = process("LIBRARY_PATH").mark("phase__change")
292b33
{
292b33
  newphase = user_string($arg1)
292b33
  oldphase = user_string($arg2)
292b33
  
292b33
}