This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
slightly better way to check to see if relayfs is available
- From: William Cohen <wcohen at redhat dot com>
- To: SystemTAP <systemtap at sources dot redhat dot com>
- Date: Thu, 18 Aug 2005 11:56:37 -0400
- Subject: slightly better way to check to see if relayfs is available
Rather than doing an indirect check for a symbol in the System.map, the
stp_check can directly check to see if the relayfs is available from
/proc/filesystems.
-Will
Index: stp_check.in
===================================================================
RCS file: /cvs/systemtap/src/stp_check.in,v
retrieving revision 1.4
diff -u -r1.4 stp_check.in
--- stp_check.in 9 Aug 2005 19:19:51 -0000 1.4
+++ stp_check.in 18 Aug 2005 15:54:44 -0000
@@ -33,7 +33,7 @@
prefix=@prefix@
VAR_DIR=@localstatedir@/cache/systemtap
-RELAYFS=`grep " relayfs_poll" /boot/System.map-\`uname -r\``
+RELAYFS=`grep "relayfs" /proc/filesystems`
if [ -z "$RELAYFS" ]
then
RELAYFS=`/sbin/lsmod | grep relayfs`