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