[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-commits
Subject:    [oprof-cvs] CVS: oprofile/utils opcontrol,1.161,1.162
From:       "Maynard Johnson" <maynardj () users ! sourceforge ! net>
Date:       2009-09-04 19:41:07
Message-ID: E1Mjeei-0000Hr-03 () 23jxhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/oprofile/oprofile/utils
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv1030/utils

Modified Files:
	opcontrol 
Log Message:
Do stop only if enabled to prevent bogus stopping message

Index: opcontrol
===================================================================
RCS file: /cvsroot/oprofile/oprofile/utils/opcontrol,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -p -d -r1.161 -r1.162
--- opcontrol	10 Jul 2009 20:03:40 -0000	1.161
+++ opcontrol	4 Sep 2009 19:41:05 -0000	1.162
@@ -943,7 +943,8 @@ do_stop()
 		return
 	fi
 
-	if test $KERNEL_SUPPORT = "yes"; then
+	if test $KERNEL_SUPPORT = "yes" \
+	    && test 0 != $(cat /dev/oprofile/enable); then
 		echo "Stopping profiling."
 		echo 0 >/dev/oprofile/enable
 	fi


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Oprofile-commits mailing list
Oprofile-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic