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