summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/crash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/crash.sh')
-rwxr-xr-xtestsuite/systemtap.samples/crash.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/systemtap.samples/crash.sh b/testsuite/systemtap.samples/crash.sh
new file mode 100755
index 00000000..06aa414e
--- /dev/null
+++ b/testsuite/systemtap.samples/crash.sh
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+crash --readnow << END
+mod -s testlog testlog.ko
+extend $1/staplog.so
+staplog testlog
+exit
+END