500a208fa3
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/perl#f36ef6bc94783b6bfd8b4017d7c2a7b66ef15460
22 lines
576 B
Plaintext
22 lines
576 B
Plaintext
/*
|
|
Example of the perl systemtap tapset shows a nested view of perl subroutine
|
|
calls and returns across the whole system.
|
|
|
|
To run:
|
|
stap perl-example.stp (for all perl processes)
|
|
For specific perl process:
|
|
stap perl-example.stp -c COMMAND
|
|
*/
|
|
|
|
probe perl.sub.call
|
|
{
|
|
printf("%s => sub: %s, filename: %s, line: %d, package: %s\n",
|
|
thread_indent(1), sub, filename, lineno, package)
|
|
}
|
|
|
|
probe perl.sub.return
|
|
{
|
|
printf("%s <= sub: %s, filename: %s, line: %d, package: %s\n",
|
|
thread_indent(-1), sub, filename, lineno, package)
|
|
}
|