This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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`

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]