diff options
| author | hunt <hunt> | 2005-06-18 07:06:38 +0000 |
|---|---|---|
| committer | hunt <hunt> | 2005-06-18 07:06:38 +0000 |
| commit | 22ccaa9985211ad13e8486bf2845114f409df55d (patch) | |
| tree | dc4c286990a692ef0b5991b81405bb7b10292392 /runtime/probes/agg/stp | |
| parent | b55bc428b7e03ce7bcf6ec1eb502f5f443fbd0b8 (diff) | |
| download | systemtap-steved-22ccaa9985211ad13e8486bf2845114f409df55d.tar.gz systemtap-steved-22ccaa9985211ad13e8486bf2845114f409df55d.tar.xz systemtap-steved-22ccaa9985211ad13e8486bf2845114f409df55d.zip | |
2005-06-18 Martin Hunt <hunt@redhat.com>
* build: Modified to use build_probe.
* build_probe: New file. This does the work of building
a single probe or set of probes in a directory.
* Makefile.template: New file. Template used by
build_probe to create Makefiles.
* agg: New set of probes to test/demonstrate
Counter and Stat aggregations.
* all probes modified for latest changes and new build
process.
Diffstat (limited to 'runtime/probes/agg/stp')
| -rwxr-xr-x | runtime/probes/agg/stp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/runtime/probes/agg/stp b/runtime/probes/agg/stp new file mode 100755 index 00000000..185a5905 --- /dev/null +++ b/runtime/probes/agg/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 |
