I made that change and now I get an invalid sample file error and overflow stats not available warning rather than a no sample file error (see below).  Any suggestions?

Eclipse # ./opreport -c

Overflow stats not available

./opreport error: Invalid sample file, bad magic number: /var/lib/oprofile/samples/current/{root}/usr/bin/freescale_test/{dep}/{root}/usr/bin/freescale_test/TIMER.0.0.all.all.all



On Nov 2, 2009, at 4:43 AM, Robert Richter <robert.richter@amd.com> wrote:

On 31.10.09 14:02:23, jobhunts02@aol.com wrote:
CPUTYPE timer

There is a bug in oprofile 0.9.5 wrt timer mode. You may want to apply
the changes below to your opcontrol script. There will be a bug fix
release 0.9.6 available soon.

-Robert

commit 18352baa22cad98660dee481d05bf0e7d42d803c
Author: maynardj <maynardj>
Date:   Mon Sep 14 20:18:38 2009 +0000

   Fix timer mode regression

diff --git a/ChangeLog b/ChangeLog
index 9162deb..2538e7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-14  Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
+
+       * utils/opcontrol: Fix timer mode
+
2009-09-08  Robert Richter <robert.richter@amd.com>

       * utils/opcontrol: fix deinit; kill daemon only if running to prevent
diff --git a/utils/opcontrol b/utils/opcontrol
index 0317ecd..c438eca 100644
--- a/utils/opcontrol
+++ b/utils/opcontrol
@@ -587,7 +587,7 @@ verify_counters()
# setup any needed default value in chosen events
normalise_events()
{
-       if test "$NR_CHOSEN" -le 0; then
+       if test "$NR_CHOSEN" -le 0 || test "$IS_TIMER" = 1; then
               return
       fi

@@ -1453,8 +1453,12 @@ do_start_daemon()
               --separate-thread=$SEPARATE_THREAD \
               --separate-cpu=$SEPARATE_CPU"

-       if ! test -z "$OPROFILED_EVENTS"; then
-               OPD_ARGS="$OPD_ARGS --events=$OPROFILED_EVENTS"
+       if test "$IS_TIMER" = 1; then
+               OPD_ARGS="$OPD_ARGS --events="
+       else
+               if ! test -z "$OPROFILED_EVENTS"; then
+                       OPD_ARGS="$OPD_ARGS --events=$OPROFILED_EVENTS"
+               fi
       fi

       if test "$VMLINUX" = "none"; then

--
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com

=