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