04bfb0
/*
04bfb0
    Example of the perl systemtap tapset shows a nested view of perl subroutine
04bfb0
    calls and returns across the whole system.
04bfb0
04bfb0
    To run:
04bfb0
        stap perl-example.stp (for all perl processes)
04bfb0
    For specific perl process:
04bfb0
        stap perl-example.stp -c COMMAND
04bfb0
*/
04bfb0
04bfb0
probe perl.sub.call
04bfb0
{
04bfb0
    printf("%s => sub: %s, filename: %s, line: %d, package: %s\n",
04bfb0
        thread_indent(1), sub, filename, lineno, package)
04bfb0
}
04bfb0
04bfb0
probe perl.sub.return
04bfb0
{
04bfb0
    printf("%s <= sub: %s, filename: %s, line: %d, package: %s\n",
04bfb0
        thread_indent(-1), sub, filename, lineno, package)
04bfb0
}