From: Philippe E. <ph...@us...> - 2002-07-29 23:40:25
|
Update of /cvsroot/oprofile/oprofile/gui In directory usw-pr-cvs1:/tmp/cvs-serv9138/gui Modified Files: oprof_start.cpp Log Message: gui/oprof_start.cpp: minor missing part fro a previous patch doc/* clarify than pgrp filter is the tty program group id regrads, Phil Index: oprof_start.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/gui/oprof_start.cpp,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- oprof_start.cpp 13 Jul 2002 09:24:14 -0000 1.59 +++ oprof_start.cpp 29 Jul 2002 23:40:22 -0000 1.60 @@ -55,7 +55,6 @@ event_count_validator(new QIntValidator(event_count_edit)), current_ctr(0), cpu_speed(get_cpu_speed()), - op_nr_counters(2), total_nr_interrupts(0) { for (uint i = 0; i < OP_MAX_COUNTERS; ++i) { @@ -70,11 +69,9 @@ exit(EXIT_FAILURE); cpu_type = op_get_cpu_type(); + op_nr_counters = op_get_nr_counters(cpu_type); - if (cpu_type == CPU_ATHLON) - op_nr_counters = 4; - else if (cpu_type == CPU_RTC) { - op_nr_counters = 1; + if (cpu_type == CPU_RTC) { current_ctr = 0; enabled_toggled(1); enabled->hide(); |