From 70f3cb80856ae207f50e5278ac69cee5692b555c Mon Sep 17 00:00:00 2001 From: basebuilder_pel7ppc64bebuilder0 Date: Wed, 6 Jun 2018 10:03:25 +0200 Subject: [PATCH] perl add missing stp source Signed-off-by: basebuilder_pel7ppc64bebuilder0 --- SOURCES/perl-example.stp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SOURCES/perl-example.stp diff --git a/SOURCES/perl-example.stp b/SOURCES/perl-example.stp new file mode 100644 index 00000000..040f8e3d --- /dev/null +++ b/SOURCES/perl-example.stp @@ -0,0 +1,21 @@ +/* + 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) +}