From: Philippe E. <ph...@us...> - 2003-07-21 14:16:16
|
Update of /cvsroot/oprofile/oprofile/gui In directory sc8-pr-cvs1:/tmp/cvs-serv20522/gui Modified Files: oprof_start.cpp Log Message: thinko in has_unique_event(), don't warn for no counter with CPU_TIMER_INT Index: oprof_start.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/gui/oprof_start.cpp,v retrieving revision 1.94 retrieving revision 1.95 diff -u -p -d -r1.94 -r1.95 --- oprof_start.cpp 21 Jul 2003 11:15:49 -0000 1.94 +++ oprof_start.cpp 21 Jul 2003 14:16:12 -0000 1.95 @@ -45,7 +45,8 @@ using namespace std; static bool has_unique_event(op_cpu cpu_type) { - return op_get_interface() == OP_INTERFACE_25 || cpu_type == CPU_RTC; + return cpu_type == CPU_TIMER_INT == OP_INTERFACE_25 + || cpu_type == CPU_RTC; } op_event_descr::op_event_descr() @@ -755,7 +756,7 @@ void oprof_start::on_start_profiler() } } - if (one_enable == false) { + if (one_enable == false && cpu_type != CPU_TIMER_INT) { QMessageBox::warning(this, 0, "No counters enabled.\n"); return; } |