summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/systemtap.context/uprobe_backtrace.stp31
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/systemtap.context/uprobe_backtrace.stp b/testsuite/systemtap.context/uprobe_backtrace.stp
new file mode 100644
index 00000000..6d6fe3f7
--- /dev/null
+++ b/testsuite/systemtap.context/uprobe_backtrace.stp
@@ -0,0 +1,31 @@
+probe process("uprobe_uaddr").function("main").call {
+ print_ubacktrace()
+ printf("\n")
+}
+
+probe process("uprobe_uaddr").function("main").return {
+ print_ubacktrace()
+ printf("\n")
+}
+
+probe process("uprobe_uaddr").function("func").call {
+ print_ubacktrace()
+ printf("\n")
+}
+
+probe process("uprobe_uaddr").function("func").return {
+ print_ubacktrace()
+ printf("\n")
+}
+
+
+probe process("uprobe_uaddr").function("func2").call {
+ print_ubacktrace()
+ printf("\n")
+}
+
+
+probe process("uprobe_uaddr").function("func2").return {
+ print_ubacktrace()
+ printf("\n")
+}