Hi All ,

I am trying to cross compile the oprofile 0.9.6 for ARMv7 for cortex A9 and it is success.
I am facing issue while generating the report

I am running the oprofile on the target on timer mode with the following command.

# insmod oprofile.ko timer=1

Insmod is success and it gives the following output

oprofile: using arm/armv7-ca9
oprofile: using timer interrupt.


I am running the following command in the target for the oprofile.

# opcontrol --start --no-vmlinux
/usr/bin/opcontrol: line 2071: id: not found
sh: 0: unknown operand
/usr/bin/opcontrol: line 2100: id: not found
sh: 0: unknown operand
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.

ps commad will display the daemon.

I ran my simple application and after that I dumped .

#opcontrol --dump
#opcontrol --stop


After stoppping the profiler, I am generating the opreport with following command its failing.

# opreport -l

I am getting the following error.

opreport error: Invalid sample file, bad magic number: /var/lib/oprofile/samples/current/{kern}/no-v
mlinux/{dep}/{kern}/no-vmlinux/TIMER.0.0.all.all.all


when I used oparchive also I am getting the same error.

# oparchive -o /home/durga/
oparchive error: Invalid sample file, bad magic number: /var/lib/oprofile/samples/current/{kern}/no-
vmlinux/{dep}/{kern}/no-vmlinux/TIMER.0.0.all.all.all


Also I want to analyze the opreport on the host PC by transferring the files from the target to host. how can I do that?
Is there any application to analyze the file generated by the oprofiler on the host PC ?

It would be great if somebody suggests me the reason behind the above error.


Thanks in Advance,
Durga Prasad