summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib/lib.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.exelib/lib.stp')
-rw-r--r--testsuite/systemtap.exelib/lib.stp18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/systemtap.exelib/lib.stp b/testsuite/systemtap.exelib/lib.stp
new file mode 100644
index 00000000..0151282e
--- /dev/null
+++ b/testsuite/systemtap.exelib/lib.stp
@@ -0,0 +1,18 @@
+// Plain function call probes in executable and shared library
+// Arguments: @1 uprobes_exe, @2 libuprobes_lib.so
+
+probe process(@1).function("main") {
+ printf("main\n");
+}
+
+probe process(@1).function("main_func") {
+ printf("main_func\n");
+}
+
+probe process(@2).function("lib_main") {
+ printf("lib_main\n");
+}
+
+probe process(@2).function("lib_func") {
+ printf("lib_func\n");
+}