summaryrefslogtreecommitdiffstats
path: root/runtime/probes/bench/check_modules
diff options
context:
space:
mode:
authorhunt <hunt>2005-06-28 18:04:07 +0000
committerhunt <hunt>2005-06-28 18:04:07 +0000
commit4d9dc675488169e9605222f969a32108df8f29b8 (patch)
tree69d6c2b71dffca6290ab6715d9290a4c901e191f /runtime/probes/bench/check_modules
parent8a32c18d30dcd9dd664df74cd0c647ddfc060171 (diff)
downloadsystemtap-steved-4d9dc675488169e9605222f969a32108df8f29b8.tar.gz
systemtap-steved-4d9dc675488169e9605222f969a32108df8f29b8.tar.xz
systemtap-steved-4d9dc675488169e9605222f969a32108df8f29b8.zip
2005-06-28 Martin Hunt <hunt@redhat.com>
* bench: New probe to do benchmarks.
Diffstat (limited to 'runtime/probes/bench/check_modules')
-rwxr-xr-xruntime/probes/bench/check_modules24
1 files changed, 24 insertions, 0 deletions
diff --git a/runtime/probes/bench/check_modules b/runtime/probes/bench/check_modules
new file mode 100755
index 00000000..4450fe7a
--- /dev/null
+++ b/runtime/probes/bench/check_modules
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+RELAYFS=`lsmod | grep relayfs |awk '{print $1}'`
+if [ "$RELAYFS" != "relayfs" ]
+then
+ /sbin/insmod ../../relayfs/relayfs.ko
+fi
+
+if [ ! -d "/mnt/relay" ]
+then
+ mkdir /mnt/relay
+fi
+
+MOUNT=`mount | grep relayfs |awk '{print $1}'`
+if [ "$MOUNT" != "relayfs" ]
+then
+ mount -t relayfs relayfs /mnt/relay
+fi
+
+STP_CONTROL=`lsmod | grep stp_control |awk '{print $1}'`
+if [ "$STP_CONTROL" != "stp_control" ]
+then
+ /sbin/insmod ../../transport/stp-control.ko
+fi