diff options
author | hunt <hunt> | 2005-05-31 20:14:03 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-05-31 20:14:03 +0000 |
commit | a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f (patch) | |
tree | ba94a055804a57c4e1a6d3a629e1a88026933147 /runtime/probes/scf/stp | |
parent | 9c5d496e200d5476b126bc5ff9806365a77a2c7e (diff) | |
download | systemtap-steved-a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f.tar.gz systemtap-steved-a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f.tar.xz systemtap-steved-a7b49c5a613f185067ed07f7bfcbb02d14a5ed1f.zip |
New probe.
Diffstat (limited to 'runtime/probes/scf/stp')
-rwxr-xr-x | runtime/probes/scf/stp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/runtime/probes/scf/stp b/runtime/probes/scf/stp new file mode 100755 index 00000000..185a5905 --- /dev/null +++ b/runtime/probes/scf/stp @@ -0,0 +1,45 @@ +#!/bin/bash +if [ -n "$1" ] +then + modulename=$1 +else + echo "Usage: stp modulename" + exit +fi + +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 + +#/sbin/insmod $modulename + +# print to screen only, 4 8K buffers +#../../stpd/stpd -p -b 8192 -n 4 + +# print to screen and log to files, 4 8K buffers +../../stpd/stpd -b 8192 -n 4 $modulename + +# no screen or log +#../../stpd/stpd -q -b 8192 -n 4 + +# stpd will remove module when it exits +#/sbin/rmmod $modulename |