summaryrefslogtreecommitdiffstats
path: root/stp_check.in
diff options
context:
space:
mode:
authortrz <trz>2006-09-22 14:48:41 +0000
committertrz <trz>2006-09-22 14:48:41 +0000
commitcb35348ce58d44c8a68ed889412a39dab1bc8292 (patch)
tree57dca737472fe4c3592966a8c7a4983e266e71d0 /stp_check.in
parent52631162d5f249c88ec5fd0feafbaa88b66747ff (diff)
downloadsystemtap-steved-cb35348ce58d44c8a68ed889412a39dab1bc8292.tar.gz
systemtap-steved-cb35348ce58d44c8a68ed889412a39dab1bc8292.tar.xz
systemtap-steved-cb35348ce58d44c8a68ed889412a39dab1bc8292.zip
have stp_check mount debugfs
Diffstat (limited to 'stp_check.in')
-rwxr-xr-xstp_check.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/stp_check.in b/stp_check.in
index 91f641dc..66a47feb 100755
--- a/stp_check.in
+++ b/stp_check.in
@@ -4,6 +4,16 @@ RELAYFS_FS=`grep relayfs_create_dir /proc/kallsyms`
RELAY=`grep relay_open /proc/kallsyms`
if [ -n "$RELAY" -a -z "$RELAYFS_FS" ]
then
+ MOUNT=`mount | grep debugfs |awk '{print $1}'`
+ if [ "$MOUNT" != "debugfs" ]
+ then
+ mount -t debugfs debugfs /sys/kernel/debug
+ fi
+ MOUNT=`mount | grep debugfs |awk '{print $1}'`
+ if [ "$MOUNT" != "debugfs" ]
+ then
+ exit 1
+ fi
exit 0
fi