summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context/uprobe_backtrace.stp
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-16 18:04:34 +0100
committerTim Moore <timoore@redhat.com>2009-12-17 16:10:14 +0100
commit4c5ce7a55108edb5203b3d69949f09c2284f1963 (patch)
tree5498ae9264990b49c6721141f2fa77bd140cb4d5 /testsuite/systemtap.context/uprobe_backtrace.stp
parent2e7f844220b9419b2f05234b07c56bcdedf7afb2 (diff)
downloadsystemtap-steved-4c5ce7a55108edb5203b3d69949f09c2284f1963.tar.gz
systemtap-steved-4c5ce7a55108edb5203b3d69949f09c2284f1963.tar.xz
systemtap-steved-4c5ce7a55108edb5203b3d69949f09c2284f1963.zip
backtrace through uprobes trampoline.
Only works in uretprobes for the moment. * runtime/stack-x86_64.c (__stp_stack_print): Rewrite trampoline PC addresses if necessary. * runtime/stack-i386.c (__stp_stack_print): ditto * runtime/stack-arm.c (__stp_stack_print): Add extra argument * runtime/stack-ppc.c (__stp_stack_print): ditto * runtime/stack-s390.c (__stp_stack_print): ditto * runtime/stack.c (_stap_stack_print): call __stp_stack_print with uretprobe_instance. * testsuite/systemtap.context/uprobe_backtrace.stp: new test
Diffstat (limited to 'testsuite/systemtap.context/uprobe_backtrace.stp')
-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")
+}