summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
committerMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
commit02615365a92ca2570c1f96abc8a97674aa2ccae1 (patch)
treeebedfd91a0f6d299b39e84295e091e12c0767dc8 /testsuite/systemtap.context
parentc3bad3042df505a3470f1e20b09822a9df1d4761 (diff)
parentadc67597f327cd43d58b1d0cb740dab14a75a058 (diff)
downloadsystemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.gz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.xz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.zip
Merge branch 'master' into pr6866
Conflicts: ChangeLog: Removed runtime/ChangeLog: Removed runtime/sym.c: Merged runtime/task_finder.c: Merged tapset/ChangeLog: Removed testsuite/ChangeLog: Removed
Diffstat (limited to 'testsuite/systemtap.context')
-rw-r--r--testsuite/systemtap.context/symbols.exp14
-rw-r--r--testsuite/systemtap.context/symbols.stp11
2 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/systemtap.context/symbols.exp b/testsuite/systemtap.context/symbols.exp
new file mode 100644
index 00000000..0c599b58
--- /dev/null
+++ b/testsuite/systemtap.context/symbols.exp
@@ -0,0 +1,14 @@
+set test "symbols"
+if {![installtest_p]} { untested $test; return }
+
+spawn stap -g $srcdir/$subdir/symbols.stp
+set ok 0
+expect {
+ -timeout 120
+ -re { 0x[a-f0-9]+[^\r]*\r} { incr ok; exp_continue }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+#FIXME does not handle case of hanging symbols.stp correctly
+wait
+if {$ok == 11} { pass "$test ($ok)" } { fail "$test ($ok)" }
diff --git a/testsuite/systemtap.context/symbols.stp b/testsuite/systemtap.context/symbols.stp
new file mode 100644
index 00000000..040c3444
--- /dev/null
+++ b/testsuite/systemtap.context/symbols.stp
@@ -0,0 +1,11 @@
+#! stap
+
+probe begin {
+ # a spectrum of figures for 32-bit x86
+ print_stack ("0x0 0x80000000 0xc0000000 0xe0000000 0xf0000000 0xffffffff")
+ # for x86_64
+ print_stack ("0xffffffff00000000 0xffffffff80000000 0xffffffff80120000")
+ print_stack ("0xffffffff88000000 0xffffffffffffffff")
+ # ... for a total of 11 lines, which symbols.exp counts
+ exit ()
+}