summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r--testsuite/systemtap.samples/symbols.exp14
-rw-r--r--testsuite/systemtap.samples/symbols.stp11
-rw-r--r--testsuite/systemtap.samples/syscalls.stp7
-rw-r--r--testsuite/systemtap.samples/syscalls1.exp14
-rw-r--r--testsuite/systemtap.samples/syscalls2.exp15
5 files changed, 0 insertions, 61 deletions
diff --git a/testsuite/systemtap.samples/symbols.exp b/testsuite/systemtap.samples/symbols.exp
deleted file mode 100644
index 0c599b58..00000000
--- a/testsuite/systemtap.samples/symbols.exp
+++ /dev/null
@@ -1,14 +0,0 @@
-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.samples/symbols.stp b/testsuite/systemtap.samples/symbols.stp
deleted file mode 100644
index 040c3444..00000000
--- a/testsuite/systemtap.samples/symbols.stp
+++ /dev/null
@@ -1,11 +0,0 @@
-#! 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 ()
-}
diff --git a/testsuite/systemtap.samples/syscalls.stp b/testsuite/systemtap.samples/syscalls.stp
deleted file mode 100644
index 3ccfb8e5..00000000
--- a/testsuite/systemtap.samples/syscalls.stp
+++ /dev/null
@@ -1,7 +0,0 @@
-#! stap
-
-global count
-probe kernel.function("sys_*").call {
- printf("%d %s\n", pid(), pp())
- if (++count > 100) exit()
-}
diff --git a/testsuite/systemtap.samples/syscalls1.exp b/testsuite/systemtap.samples/syscalls1.exp
deleted file mode 100644
index eb8a0c6d..00000000
--- a/testsuite/systemtap.samples/syscalls1.exp
+++ /dev/null
@@ -1,14 +0,0 @@
-set test "syscalls-count"
-if {![installtest_p]} { untested $test; return }
-
-spawn stap -p2 $srcdir/$subdir/syscalls.stp
-set ok 0
-expect {
- -timeout 180
- -re {kernel.function[^\r]*sys_[^\r]*\r} { incr ok; exp_continue }
- timeout { fail "$test (timeout)" }
- eof { }
-}
-#FIXME does not handle case of hanging psyscalls.stp correctly
-wait
-if {$ok > 200 && $ok < 350} { pass "$test ($ok)" } { fail "$test ($ok)" }
diff --git a/testsuite/systemtap.samples/syscalls2.exp b/testsuite/systemtap.samples/syscalls2.exp
deleted file mode 100644
index 7bbd9a51..00000000
--- a/testsuite/systemtap.samples/syscalls2.exp
+++ /dev/null
@@ -1,15 +0,0 @@
-set test "syscalls-run"
-if {![installtest_p]} { untested $test; return }
-spawn stap $srcdir/$subdir/syscalls.stp
-set ok 0
-expect {
- -timeout 240
- -re {[0-9]* kernel.function[^\r]*\r} { incr ok; exp_continue }
- timeout { fail "$test (timeout)" }
- eof { }
-}
-#FIXME does not handle case of hanging psyscalls.stp correctly
-wait
-# 150 is conservative - it's larger than 100 to allow a bit of slop
-# between the exit() call and the actual shutdown
-if {$ok >= 100 && $ok < 150} { pass "$test ($ok)" } { fail "$test ($ok)" }