summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/system_func.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/system_func.stp')
-rw-r--r--testsuite/systemtap.samples/system_func.stp35
1 files changed, 0 insertions, 35 deletions
diff --git a/testsuite/systemtap.samples/system_func.stp b/testsuite/systemtap.samples/system_func.stp
deleted file mode 100644
index d14fb25b..00000000
--- a/testsuite/systemtap.samples/system_func.stp
+++ /dev/null
@@ -1,35 +0,0 @@
-#! stap
-
-# test the system() function
-
-global saw_echo, did_cat
-
-probe kernel.function("sys_open") {
- if (!saw_echo) {
- # very inefficient. Testing only. DO NOT DO THIS
- msg="echo sys_open"
- system(msg)
- saw_echo = 1
- }
-}
-
-probe timer.ms(100) {
- # should fail
- system("cat __xyzzy123ABC__")
- did_cat = 1
-}
-
-probe timer.ms(150) {
- if (saw_echo && did_cat)
- exit()
-}
-
-probe begin {
- # should succeed
- system("whoami")
-}
-
-probe end {
- # should succeed
- system("echo DONE")
-}