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