diff options
author | hunt <hunt> | 2005-06-28 18:04:07 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-06-28 18:04:07 +0000 |
commit | 4d9dc675488169e9605222f969a32108df8f29b8 (patch) | |
tree | 69d6c2b71dffca6290ab6715d9290a4c901e191f /runtime/probes/bench/check_modules | |
parent | 8a32c18d30dcd9dd664df74cd0c647ddfc060171 (diff) | |
download | systemtap-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-x | runtime/probes/bench/check_modules | 24 |
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 |