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