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