LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ca-fix-oprofile-ibs-check.patch of Package CodeAnalyst (Project openSUSE:12.1)

Fix BUG163976: Cannot profile IBS when build with OProfile-0.9.5 with option --with-oprofile

---

Index: src/ca/gui/oprofile_interface.cpp
===================================================================
--- src/ca/gui/oprofile_interface.cpp.orig	2010-12-15 03:12:10.000000000 +0100
+++ src/ca/gui/oprofile_interface.cpp	2011-04-04 11:41:40.458352230 +0200
@@ -1050,7 +1050,7 @@ bool oprofile_interface::checkMuxSupport
 	// NOTE: This check allows only the CodeAnalyst Oprofile
 	//       to use MUX.
 	QString command = QString(OP_BINDIR) +
-			"opcontrol --help 2>&1 " +
+			"/opcontrol --help 2>&1 " +
 			"| grep multiplexing 2> /dev/null > /dev/null";
 	return ((system(command.ascii()) == 0)? true: false);
 }