summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.exelib/uname.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.exelib/uname.stp')
-rw-r--r--testsuite/systemtap.exelib/uname.stp10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/systemtap.exelib/uname.stp b/testsuite/systemtap.exelib/uname.stp
new file mode 100644
index 00000000..aaf7ef1f
--- /dev/null
+++ b/testsuite/systemtap.exelib/uname.stp
@@ -0,0 +1,10 @@
+// Prints probefunc() and usymname(uaddr()) to check they are similar.
+// Arguments: @1 uprobes_exe, @2 libuprobes_lib.so
+
+probe process(@1).function("*") {
+ printf("exe: %s=%s\n",probefunc(), usymname(uaddr()));
+}
+
+probe process(@2).function("*") {
+ printf("lib: %s=%s\n",probefunc(), usymname(uaddr()));
+}