Hi,

I believe the daemon is running - ps shows the following process:
        329 root       2312 R   /mnt/bin/oprofiled --session-dir=/var/lib/oprofile --

Does this daemon create the file:
        /var/lib/oprofile/samples/oprofiled.log

If so this is the file that is filled with the message:
        oprofiled: open of /var/lib/oprofile/samples//current/{root}//mnt/spa-terminal-test-stripped/CPU_CYCLES.10000.0.all.all.all failed: Invalid argument

If I look inside /var/lib/oprofile/samples the following driectory structure exists:
        /var/lib/oprofile/samples/current/{root}/mnt/spa-terminal-test-stripped/{dep}/{root}/mnt/spa-terminal-test-stripped

This directory contains the file CPU_CYCLES.10000.0.all.all.all, which is filld with NULLs

Regards

Mark.




Richard Purdie <rpurdie@rpsys.net>

06/10/2009 13:56

To
Mark.Pashley@selex-comms.com
cc
oprofile-list@lists.sourceforge.net
Subject
Re: Problems running oprofiled on embedded arm - Invalid        Argument        in oprofiled





Hi,

On Tue, 2009-10-06 at 13:17 +0100, Mark.Pashley@selex-comms.com wrote:
> I have now upgraded the kernel to version 2.6.30.  Unfortunately it
> has not made any difference and I still get the same problem, namely
> all of my samples being lost. Have you got any suggestions where to
> start looking for why these samples are being lost?

Ok, the next step is to figure out whether anything is getting to
userspace. When oprofile is running there should be a daemon taking
kernel buffers and emptying them into userspace. Is that daemon running
and does it notice data is there for collection?

My memory is fuzzy but there should be some way to make the output from
oprofiled more verbose so you can see what its doing...

Cheers,

Richard



------------------------------------------------------------
This email and any attached files contains company confidential information which may be legally privileged. It is intended only for the person(s) or entity to which it is addressed and solely for the purposes set forth therein. If you are not the intended recipient or have received this email in error please notify the sender by return, delete it from your system and destroy any local copies. It is strictly forbidden to use the information in this email including any attachment or part thereof including copying, disclosing, distributing, amending or using for any other purpose.

In addition the sender excludes all liabilities (whether tortious or common law) for damage or breach arising or related to this email including but not limited to viruses and libel.
SELEX Communications Limited is a Private Limited Company registered in England and Wales under Company Number 964533 and whose Registered Office is Lambda House, Christopher Martin Rd, Basildon, SS14 3EL. England.