Thanks Maynard
The write error is not after dump but is after I started the capture process (after opcontrol --start). Also when I ran the opreport on the device itself I could see samples of various components. So looks like the data was captured correctly.
Could it be because I have different versions of oprofile running on host and target (host one is 0.9.9 and is compiled for ubuntu x86) and target one is 0.9.3?

The other question I have is that when i am running this oprofile I am giving option as --no-vmlinux. Now after running the opreport one device I get 94% of samples in vmlinux. This file vmlinux is available to me on my host machine when I am doing the cross-compilation. Is there anyway for me to know what is causing within the kernel to have maximum number of samples? In other words can I still run with option as --no-vmlinux and get the details when I do the post analysis in host where I have this sample file?

Regards
Naveen


On Mon, May 19, 2014 at 6:38 AM, Maynard Johnson <maynardj@us.ibm.com> wrote:
On 05/17/2014 03:45 PM, Naveen Singh wrote:
> Hi,
> I have the need of profiling our system which is running Linux 2.6.37 on Arm processor. I did following to collect sample data and could get the data on the host system. But when I am running opimport script (provided here "http://oprofile.sourceforge.net/doc/opimport.html"), I get this error:
> caught abi exception: missing ABI key: sizeof_u64" and I do not see anything in the directory "current_imported/stats/cpu0".
Hi, Naveen,
It appears something happened on your target system to cause the abi file to get truncated, thus the missing ABI key message.  The "write failed" error you get when you did the 'opcontrol --dump' also points at a problem with writing sample data to disk.  Make sure the target has sufficient disk space.  If that's not the problem, try some other operations that would write data to disk and see whether or not they work.  If that doesn't seem to be the problem, then either try using operf on the target or run opcontrol with the "--verbose" option to try to collect debug info in the <session-dir>/samples/oprofiled.log.

-Maynard
>
> 1. On the target system I ran following commands:
>      a. #opcontrol --no-vmlinux
>      b. #opcontrol --start --session-dir=/tmp/xyz --no-vmlinux
>      c. #opcontrol --stop
>      d. #opcontrol --dump
>
> After step b I got an error saying "write failed" but I did not see anything fatal.
>
> 2. After collecting these data I ran oparchive on the target system:
>      #oparchive --session-dir=/tmp/xyz -o=/tmp/abc
>
> 3. This created a dir abc in /tmp folder on target system.
>
> 4. I created abc.tar and brought it onto host system.
>
> 5. My host system information : Linux ubuntu 3.8.0-39-generic #58~precise1-Ubuntu SMP Fri May 2 21:33:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
>
> 6. I installed oprofile by downloading codefrom following site: http://oprofile.sourceforge.net/download/. The release version is 0.9.9.
>
> 7. I untared the file that I generated on the target machine in following directory in my host machine: /home/naveen/opr/abc
>
> 8. I ran the script ./my-import.sh from /home/naveen/opr/abc/tmp/xyz/samples by giving following command:
>      ./my-import.sh `pwd`/../abi
>
> 9. This generated a directory current-imported but it has nothing in the "current-imported/stats/cpu0".
>
> Even after this I tried running opreport by running following command:
>
> Can you tell me from where I should be running opreport?
>
> Regards
> Naveen
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
>
>
>
> _______________________________________________
> oprofile-list mailing list
> oprofile-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
>