Blame SOURCES/perl-example.stp

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