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

List:       oprofile-commits
Subject:    [oprof-cvs] CVS: oprofile-tests/testsuite/config unix.exp, 1.1.1.1,
From:       "Maynard Johnson" <maynardj () users ! sourceforge ! net>
Date:       2010-01-19 15:06:18
Message-ID: E1NXFes-0006Gi-3j () sfp-cvsdas-1 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/oprofile/oprofile-tests/testsuite/config
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24019/testsuite/config

Modified Files:
	unix.exp 
Log Message:
Fix to support built-in oprofile kernel driver

Index: unix.exp
===================================================================
RCS file: /cvsroot/oprofile/oprofile-tests/testsuite/config/unix.exp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -p -d -r1.1.1.1 -r1.2
--- unix.exp	23 Oct 2006 19:24:48 -0000	1.1.1.1
+++ unix.exp	19 Jan 2010 15:06:12 -0000	1.2
@@ -89,23 +89,16 @@ proc oprofile_start {} {
 	fail $test
     }
 
-    set test "check module presence"
-    if {[regexp oprofile [exec /sbin/lsmod]] == 1} {
-	verbose "oprofile module successfully inserted"
-	pass $test
-	set op_module_active 1
-    } else {
-	verbose "oprofile module not inserted"
-	fail $test
-	set op_module_active 0
-    }
-
     set test "check /dev/oprofile filesystem presence"
     if {[file exists /dev/oprofile/cpu_type] == 1} {
 	verbose "oprofile filesystem mounted"
+	set op_module_active 1
 	pass $test
     } else {
 	verbose "oprofile filesystem not mounted"
+	if {[regexp oprofile [exec /sbin/lsmod]] != 1} {
+		verbose "oprofile module may not have loaded/initialized properly.  See system log."
+	}
 	fail $test
     }
 


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
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