/bin/opcontrol: line 1079: echo: write error: Invalid argument, oprofiled: no events specified.

View: New views
4 Messages — Rating Filter:   Alert me  

/bin/opcontrol: line 1079: echo: write error: Invalid argument, oprofiled: no events specified.

by Robert Berger-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have the following setup:

processor       : 0
cpu             : 405EX
clock           : 600.000000MHz
revision        : 20.127 (pvr 1291 147f)
bogomips        : 1200.00
timebase        : 600000000
platform        : PowerPC 40x Platform
model           : amcc,kilauea
Memory          : 256 MB

oprofiled: oprofile 0.9.5 compiled on Oct 11 2009 21:11:47

2.6.32-rc3-rber-latest-oprofile-2009_10_11--01613-gaa129fc-dirty

I try the following:

-bash-3.2# opcontrol --init
-bash-3.2# opcontrol --vmlinux=vmlinux
-bash-3.2# opcontrol --reset
-bash-3.2# opcontrol -l
Using timer interrupt.
-bash-3.2# opcontrol --start
backtrace_depth
/dev/oprofile
backtrace_depth
/bin/opcontrol: line 1079: echo: write error: Invalid argument
oprofiled: no events specified.
Usage: oprofiled [OPTION...]
  --session-dir=/var/lib/oprofile                      place sample database
                                                       in dir instead of
                                                       default location
  -r, --kernel-range=start-end                         Kernel VMA range
  -k, --vmlinux=file                                   vmlinux kernel image
  --no-vmlinux                                         vmlinux kernel image
                                                       file not available
  --xen-range=start-end                                Xen VMA range
  --xen-image=file                                     Xen image
  --image=profile these comma separated image          image name filter
  --separate-lib=[0|1]                                 separate library
                                                       samples for each
                                                       distinct application
  --separate-kernel=[0|1]                              separate kernel
samples
                                                       for each distinct
                                                       application
  --separate-thread=[0|1]                              thread-profiling mode
  --separate-cpu=[0|1]                                 separate samples for
                                                       each CPU
  -e, --events=[events]                                events list
  -v, --version                                        show version
  -V, --verbose=all,sfile,arcs,samples,module,misc     be verbose in log
file
  -x, --ext-feature=<extended-feature-name>:[args]     enable extended
feature

Help options:
  -?, --help                                           Show this help
message
  --usage                                              Display brief usage
                                                       message
Couldn't start oprofiled.
Check the log file "/var/lib/oprofile/samples/oprofiled.log" and kernel
syslog

dmesg doesn't show anything funny, so I don't put it here.

-bash-3.2# cat /var/lib/oprofile/samples/oprofiled.log
oprofiled started Thu Jan  1 01:03:27 1970
kernel pointer size: 4
Received SIGHUP.

Thu Jan  1 01:13:27 1970

Nr. sample dumps: 8
Nr. non-backtrace samples: 38366
Nr. kernel samples: 33871
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. incomplete code structs: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 1
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 28
Nr. backtraces skipped due to no file mapping: 0
Nr. samples lost due to no mm: 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 13319
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0

Thu Jan  1 01:23:27 1970

Nr. sample dumps: 9
Nr. non-backtrace samples: 38368
Nr. kernel samples: 33872
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. incomplete code structs: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 1
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 28
Nr. backtraces skipped due to no file mapping: 0
Nr. samples lost due to no mm: 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 13319
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0
oprofiled started Thu Jan  1 01:04:03 1970
kernel pointer size: 4

Thu Jan  1 01:14:03 1970

Nr. sample dumps: 4
Nr. non-backtrace samples: 11933
Nr. kernel samples: 6896
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. incomplete code structs: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 0
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 55
Nr. backtraces skipped due to no file mapping: 0
Nr. samples lost due to no mm: 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 23666
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0

Thu Jan  1 01:24:03 1970

Nr. sample dumps: 5
Nr. non-backtrace samples: 11934
Nr. kernel samples: 6897
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. incomplete code structs: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 0
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 55
Nr. backtraces skipped due to no file mapping: 0
Nr. samples lost due to no mm: 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 23666
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0

Thu Jan  1 01:34:03 1970

Nr. sample dumps: 6
Nr. non-backtrace samples: 11934
Nr. kernel samples: 6897
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. incomplete code structs: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 0
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 55
Nr. backtraces skipped due to no file mapping: 0
Nr. samples lost due to no mm: 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 23666
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0

Thu Jan  1 01:44:03 1970

Nr. sample dumps: 7
Nr. non-backtrace samples: 11934
Nr. kernel samples: 6897
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. incomplete code structs: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 0
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 55
Nr. backtraces skipped due to no file mapping: 0
Nr. samples lost due to no mm: 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 23666
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0


Please help.

Regards,

Robert
--
Robert Berger
Embedded Software Specialist

Reliable Embedded Systems
Consulting Training Engineering
Tel.: (+30) 697 593 3428
Fax.:(+30) 210 684 7881
email: robert.berger@...
<mailto:robert.berger@...?subject=inquiry>
URL: http://www.reliableembeddedsystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
..."I like having a machine called 'elvis' on the network because that
way,I can say 'ping elvis' and have it come back with 'elvis is alive'."
-- Carl Shipley

My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
 
The information contained in this e-mail and in any attachments is
confidential and is designated solely for the attention of the intended
recipient(s). If you are not an intended recipient, you must not use,
disclose, copy, distribute or retain this e-mail or any part thereof.
If you have received this e-mail in error, please notify the sender by
return e-mail and delete all copies of this e-mail from your computer
system(s).

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
oprofile-list mailing list
oprofile-list@...
https://lists.sourceforge.net/lists/listinfo/oprofile-list

Re: /bin/opcontrol: line 1079: echo: write error: Invalid argument, oprofiled: no events specified.

by Robert Berger-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Robert Berger wrote:

> Hi,
>
> I have the following setup:
>
> processor       : 0
> cpu             : 405EX
> clock           : 600.000000MHz
> revision        : 20.127 (pvr 1291 147f)
> bogomips        : 1200.00
> timebase        : 600000000
> platform        : PowerPC 40x Platform
> model           : amcc,kilauea
> Memory          : 256 MB
>
> oprofiled: oprofile 0.9.5 compiled on Oct 11 2009 21:11:47

It looks like there is a known bug with 0.9.5 and starting oprofiled in
timer mode

http://www.nabble.com/--oprofile-Bugs-2845063---opcontrol-cannot-start-daemon-in-timer-mode-td25157464.html

>
> 2.6.32-rc3-rber-latest-oprofile-2009_10_11--01613-gaa129fc-dirty
>
> I try the following:
>
> -bash-3.2# opcontrol --init
> -bash-3.2# opcontrol --vmlinux=vmlinux
> -bash-3.2# opcontrol --reset
> -bash-3.2# opcontrol -l
> Using timer interrupt.
> -bash-3.2# opcontrol --start
> backtrace_depth
> /dev/oprofile
> backtrace_depth
> /bin/opcontrol: line 1079: echo: write error: Invalid argument
> oprofiled: no events specified.
> Usage: oprofiled [OPTION...]
>   --session-dir=/var/lib/oprofile                      place sample database
>                                                        in dir instead of
>                                                        default location
>   -r, --kernel-range=start-end                         Kernel VMA range
>   -k, --vmlinux=file                                   vmlinux kernel image
>   --no-vmlinux                                         vmlinux kernel image
>                                                        file not available
>   --xen-range=start-end                                Xen VMA range
>   --xen-image=file                                     Xen image
>   --image=profile these comma separated image          image name filter
>   --separate-lib=[0|1]                                 separate library
>                                                        samples for each
>                                                        distinct application
>   --separate-kernel=[0|1]                              separate kernel
> samples
>                                                        for each distinct
>                                                        application
>   --separate-thread=[0|1]                              thread-profiling mode
>   --separate-cpu=[0|1]                                 separate samples for
>                                                        each CPU
>   -e, --events=[events]                                events list
>   -v, --version                                        show version
>   -V, --verbose=all,sfile,arcs,samples,module,misc     be verbose in log
> file
>   -x, --ext-feature=<extended-feature-name>:[args]     enable extended
> feature
>
> Help options:
>   -?, --help                                           Show this help
> message
>   --usage                                              Display brief usage
>                                                        message
> Couldn't start oprofiled.
> Check the log file "/var/lib/oprofile/samples/oprofiled.log" and kernel
> syslog
>
> dmesg doesn't show anything funny, so I don't put it here.
>
> -bash-3.2# cat /var/lib/oprofile/samples/oprofiled.log
> oprofiled started Thu Jan  1 01:03:27 1970
> kernel pointer size: 4
> Received SIGHUP.
>
> Thu Jan  1 01:13:27 1970
>
> Nr. sample dumps: 8
> Nr. non-backtrace samples: 38366
> Nr. kernel samples: 33871
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 1
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 28
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 13319
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:23:27 1970
>
> Nr. sample dumps: 9
> Nr. non-backtrace samples: 38368
> Nr. kernel samples: 33872
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 1
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 28
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 13319
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
> oprofiled started Thu Jan  1 01:04:03 1970
> kernel pointer size: 4
>
> Thu Jan  1 01:14:03 1970
>
> Nr. sample dumps: 4
> Nr. non-backtrace samples: 11933
> Nr. kernel samples: 6896
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:24:03 1970
>
> Nr. sample dumps: 5
> Nr. non-backtrace samples: 11934
> Nr. kernel samples: 6897
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:34:03 1970
>
> Nr. sample dumps: 6
> Nr. non-backtrace samples: 11934
> Nr. kernel samples: 6897
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:44:03 1970
>
> Nr. sample dumps: 7
> Nr. non-backtrace samples: 11934
> Nr. kernel samples: 6897
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
>
> Please help.
>
> Regards,
>
> Robert

..."C treats you like a consenting adult. Pascal treats you like a
naughty child. Ada treats you like a criminal." -- (Bruce Powel Douglass)

My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1

The information contained in this e-mail and in any attachments is
confidential and is designated solely for the attention of the intended
recipient(s). If you are not an intended recipient, you must not use,
disclose, copy, distribute or retain this e-mail or any part thereof.
If you have received this e-mail in error, please notify the sender by
return e-mail and delete all copies of this e-mail from your computer
system(s).


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
oprofile-list mailing list
oprofile-list@...
https://lists.sourceforge.net/lists/listinfo/oprofile-list

Re: /bin/opcontrol: line 1079: echo: write error: Invalid argument, oprofiled: no events specified.

by Maynard Johnson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Robert Berger wrote:

> Hi,
>
> I have the following setup:
>
> processor       : 0
> cpu             : 405EX
> clock           : 600.000000MHz
> revision        : 20.127 (pvr 1291 147f)
> bogomips        : 1200.00
> timebase        : 600000000
> platform        : PowerPC 40x Platform
> model           : amcc,kilauea
> Memory          : 256 MB
If only timer mode is supported for this processor, you'll need the patch I posted to this list on Sept 10, subject line "Re: [PATCH1/1] Fix Timer mode".  Please deinit oprofile, apply the patch from my Sept 10 posting, and rebuild/install oprofile.  Also be sure to remove cache file /root/.oprofile/daemonrc before restarting oprofile.

-Maynard

>
> oprofiled: oprofile 0.9.5 compiled on Oct 11 2009 21:11:47
>
> 2.6.32-rc3-rber-latest-oprofile-2009_10_11--01613-gaa129fc-dirty
>
> I try the following:
>
> -bash-3.2# opcontrol --init
> -bash-3.2# opcontrol --vmlinux=vmlinux
> -bash-3.2# opcontrol --reset
> -bash-3.2# opcontrol -l
> Using timer interrupt.
> -bash-3.2# opcontrol --start
> backtrace_depth
> /dev/oprofile
> backtrace_depth
> /bin/opcontrol: line 1079: echo: write error: Invalid argument
> oprofiled: no events specified.
> Usage: oprofiled [OPTION...]
>   --session-dir=/var/lib/oprofile                      place sample database
>                                                        in dir instead of
>                                                        default location
>   -r, --kernel-range=start-end                         Kernel VMA range
>   -k, --vmlinux=file                                   vmlinux kernel image
>   --no-vmlinux                                         vmlinux kernel image
>                                                        file not available
>   --xen-range=start-end                                Xen VMA range
>   --xen-image=file                                     Xen image
>   --image=profile these comma separated image          image name filter
>   --separate-lib=[0|1]                                 separate library
>                                                        samples for each
>                                                        distinct application
>   --separate-kernel=[0|1]                              separate kernel
> samples
>                                                        for each distinct
>                                                        application
>   --separate-thread=[0|1]                              thread-profiling mode
>   --separate-cpu=[0|1]                                 separate samples for
>                                                        each CPU
>   -e, --events=[events]                                events list
>   -v, --version                                        show version
>   -V, --verbose=all,sfile,arcs,samples,module,misc     be verbose in log
> file
>   -x, --ext-feature=<extended-feature-name>:[args]     enable extended
> feature
>
> Help options:
>   -?, --help                                           Show this help
> message
>   --usage                                              Display brief usage
>                                                        message
> Couldn't start oprofiled.
> Check the log file "/var/lib/oprofile/samples/oprofiled.log" and kernel
> syslog
>
> dmesg doesn't show anything funny, so I don't put it here.
>
> -bash-3.2# cat /var/lib/oprofile/samples/oprofiled.log
> oprofiled started Thu Jan  1 01:03:27 1970
> kernel pointer size: 4
> Received SIGHUP.
>
> Thu Jan  1 01:13:27 1970
>
> Nr. sample dumps: 8
> Nr. non-backtrace samples: 38366
> Nr. kernel samples: 33871
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 1
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 28
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 13319
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:23:27 1970
>
> Nr. sample dumps: 9
> Nr. non-backtrace samples: 38368
> Nr. kernel samples: 33872
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 1
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 28
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 13319
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
> oprofiled started Thu Jan  1 01:04:03 1970
> kernel pointer size: 4
>
> Thu Jan  1 01:14:03 1970
>
> Nr. sample dumps: 4
> Nr. non-backtrace samples: 11933
> Nr. kernel samples: 6896
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:24:03 1970
>
> Nr. sample dumps: 5
> Nr. non-backtrace samples: 11934
> Nr. kernel samples: 6897
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:34:03 1970
>
> Nr. sample dumps: 6
> Nr. non-backtrace samples: 11934
> Nr. kernel samples: 6897
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
> Thu Jan  1 01:44:03 1970
>
> Nr. sample dumps: 7
> Nr. non-backtrace samples: 11934
> Nr. kernel samples: 6897
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 55
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 23666
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 0
>
>
> Please help.
>
> Regards,
>
> Robert


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
oprofile-list mailing list
oprofile-list@...
https://lists.sourceforge.net/lists/listinfo/oprofile-list

Re: /bin/opcontrol: line 1079: echo: write error: Invalid argument, oprofiled: no events specified.

by Robert Berger-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maynard,

Thanks

I cooked a bit your patch (just the Changelog) and now it applies
cleanly on the 0.9.5 tarball and works as well.

here it is:

Index: oprofile-0.9.5/ChangeLog
===================================================================
--- oprofile-0.9.5.orig/ChangeLog
+++ oprofile-0.9.5/ChangeLog
@@ -1,3 +1,6 @@
+2009-09-10  Suravee Suthikulpanit <suravee.suthikulpanit@...>
+ * utils/opcontrol: Fix timer mode
+
 2009-07-31  Maynard Johnson  <maynardj@...>

  * configure.in: bump version in AM_INIT_AUTOMAKE to 0.9.5
Index: oprofile-0.9.5/utils/opcontrol
===================================================================
--- oprofile-0.9.5.orig/utils/opcontrol
+++ oprofile-0.9.5/utils/opcontrol
@@ -586,7 +586,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

@@ -1449,8 +1449,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




Regards,

Robert

--
Robert Berger
Embedded Software Specialist

Reliable Embedded Systems
Consulting Training Engineering
Tel.: (+30) 697 593 3428
Fax.:(+30) 210 684 7881
URL: http://www.reliableembeddedsystems.com..."What I look forward to is
continued immaturity followed by death." - Dave Barry

My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1

The information contained in this e-mail and in any attachments is
confidential and is designated solely for the attention of the intended
recipient(s). If you are not an intended recipient, you must not use,
disclose, copy, distribute or retain this e-mail or any part thereof.
If you have received this e-mail in error, please notify the sender by
return e-mail and delete all copies of this e-mail from your computer
system(s).


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
oprofile-list mailing list
oprofile-list@...
https://lists.sourceforge.net/lists/listinfo/oprofile-list