diff options
author | hunt <hunt> | 2005-08-03 20:32:01 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-08-03 20:32:01 +0000 |
commit | 2205d1152e6e9ff34908bf83c3964fb5883adff1 (patch) | |
tree | 237ce2147ef3c562af1c526bc4108213f257f2d5 /stp_check | |
parent | 085efacada12da5f795db776c59af1874e9ee440 (diff) | |
download | systemtap-steved-2205d1152e6e9ff34908bf83c3964fb5883adff1.tar.gz systemtap-steved-2205d1152e6e9ff34908bf83c3964fb5883adff1.tar.xz systemtap-steved-2205d1152e6e9ff34908bf83c3964fb5883adff1.zip |
2005-08-03 Martin Hunt <hunt@redhat.com>
* stp_check.in : Copy sources to /var/cache/systemtap.
* systemtap.spec.in: Install stp_check. Create /var/cache/systemtap
* Makefile.am (install-exec-local): Install stp_check.
* configure.ac, systemtap.spec.in: Version 0.2.2.
* Makefile.in, aclocal.m4, configure: Regenerated.
Diffstat (limited to 'stp_check')
-rw-r--r-- | stp_check | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -12,6 +12,8 @@ load_module() if [ "$ret" -ne 0 ] then echo "$MODULE_NAME not in kernel and not built. Compiling..." + mkdir -p $MODULE_DIR + cp -dpr $SRC_DIR/* $MODULE_DIR make -w -C $MODULE_DIR if [ "$?" -ne 0 ] then @@ -28,9 +30,7 @@ load_module() fi } -VAR_DIR=${prefix}/var/lib/systemtap -RELAYFS_DIR=$VAR_DIR/relayfs -STP_CONTROL_DIR=$VAR_DIR/transport +VAR_DIR=${prefix}/var/cache/systemtap RELAYFS=`grep " relayfs_poll" /boot/System.map-\`uname -r\`` if [ -z "$RELAYFS" ] @@ -39,8 +39,9 @@ then if [ -z "$RELAYFS" ] then MODULE_NAME=relayfs - MODULE_DIR=$RELAYFS_DIR + MODULE_DIR=$VAR_DIR/relayfs MODULE=$MODULE_DIR/relayfs.ko + SRC_DIR=${prefix}/share/systemtap/runtime/relayfs load_module fi fi @@ -60,8 +61,9 @@ STP_CONTROL=`lsmod | grep stp_control |awk '{print $1}'` if [ "$STP_CONTROL" != "stp_control" ] then MODULE_NAME=stp-control - MODULE_DIR=$STP_CONTROL_DIR + MODULE_DIR=$VAR_DIR/transport MODULE=$MODULE_DIR/stp-control.ko + SRC_DIR=${prefix}/share/systemtap/runtime/transport load_module fi |