From: Philippe E. <ph...@us...> - 2002-07-04 23:24:12
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv14406/dae Modified Files: oprofiled.c Log Message: various minor cleanup removing a few FIXME pp: add --objdump-params to op_to_source See ChangeLog for further information regards, Phil Index: oprofiled.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/oprofiled.c,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- oprofiled.c 30 Jun 2002 20:09:20 -0000 1.87 +++ oprofiled.c 4 Jul 2002 23:23:39 -0000 1.88 @@ -27,7 +27,6 @@ #include "op_get_time.h" #include "op_sample_file.h" #include "op_events.h" -#include "op_events_desc.h" #include "op_libiberty.h" #include "op_interface.h" #include "op_hw_config.h" @@ -311,9 +310,10 @@ sprintf(filename, "/proc/sys/dev/oprofile/%d/enabled", i); ctr_enabled[i]= op_read_int_from_file(filename); - } - for (i = 0 ; i < op_nr_counters ; ++i) { + if (!ctr_enabled[i]) + continue; + ret = op_check_events(i, ctr_event[i], ctr_um[i], cpu_type); if (ret & OP_INVALID_EVENT) |