a4ac56
/*
a4ac56
   This probe will fire when the perl script enters a subroutine.
a4ac56
 */
a4ac56
a4ac56
probe perl.sub.call = process("LIBRARY_PATH").mark("sub__entry")
a4ac56
{
a4ac56
a4ac56
  sub = user_string($arg1)
a4ac56
  filename = user_string($arg2)
a4ac56
  lineno = $arg3
a4ac56
  package = user_string($arg4)
a4ac56
a4ac56
}
a4ac56
a4ac56
/*
a4ac56
   This probe will fire when the return from a subroutine has been
a4ac56
   hit.
a4ac56
 */
a4ac56
a4ac56
probe perl.sub.return = process("LIBRARY_PATH").mark("sub__return")
a4ac56
{
a4ac56
a4ac56
  sub = user_string($arg1)
a4ac56
  filename = user_string($arg2)
a4ac56
  lineno = $arg3
a4ac56
  package = user_string($arg4)
a4ac56
a4ac56
}
a4ac56
a4ac56
/*
a4ac56
   This probe will fire when the Perl interperter changes state.
a4ac56
 */
a4ac56
a4ac56
probe perl.phase.change = process("LIBRARY_PATH").mark("phase__change")
a4ac56
{
a4ac56
  newphase = user_string($arg1)
a4ac56
  oldphase = user_string($arg2)
a4ac56
a4ac56
}
a4ac56
a4ac56
a4ac56
/*
a4ac56
   Fires when Perl has successfully loaded an individual file.
a4ac56
 */
a4ac56
a4ac56
probe perl.loaded.file = process("LIBRARY_PATH").mark("loaded__file")
a4ac56
{
a4ac56
  filename = user_string($arg1)
a4ac56
a4ac56
}
a4ac56
a4ac56
a4ac56
/*
a4ac56
   Fires when Perl is about to load an individual file.
a4ac56
 */
a4ac56
a4ac56
probe perl.loading.file = process("LIBRARY_PATH").mark("loading__file")
a4ac56
{
a4ac56
  filename = user_string($arg1)
a4ac56
a4ac56
}
a4ac56
a4ac56
a4ac56
/*
a4ac56
   Traces the execution of each opcode in the Perl runloop.
a4ac56
 */
a4ac56
a4ac56
probe perl.op.entry = process("LIBRARY_PATH").mark("op__entry")
a4ac56
{
a4ac56
  opname = user_string($arg1)
a4ac56
}