Opcontrol not working on i.Mx6 sololite

cancel
Showing results for 
Search instead for 
Did you mean: 

Opcontrol not working on i.Mx6 sololite

547 Views
vinayaktv
Contributor I

Hi,

I have downloaded Oprofile onto ltib and tried to use the profiling tool. But I observe the following error message.

root@freescale /home/user/video_test$ opcontrol --deinit

/usr/bin/opcontrol: line 1: /usr/bin/which: No such file or directory

/usr/bin/opcontrol: line 1: /usr/bin/dirname: No such file or directory

/usr/bin/opcontrol: line 1: /ophelp: No such file or directory

I have enabled profiling support in Kernel Menu Config.

Also, I have tried downloading the source code of oprofile and compiled and attempted to use it but it still depicts the same error.

Thanks for your consideration and any help you could provide.

Regards,

Vinayak


0 Kudos
5 Replies

59 Views
LeonardoSandova
Specialist I

Not sure if this works, but locate those missing files using command which then create soft links on the folders oprofile is looking for.

Leo

0 Kudos

59 Views
vinayaktv
Contributor I

Hi Leo,

Thanks for your suggestion. I have copied the missing files at the locations opcontrol was looking for.

But now I observe the following message on using any opcontrol command:

root@freescale ~$ opcontrol --deinit  

cpu_type 'unset' is not valid

you should upgrade oprofile or force the use of timer mode


Also, is there a way of using operf command instead of legacy opcontrol command.


Please advise.


Regards,

Vinayak

0 Kudos

59 Views
LeonardoSandova
Specialist I

According to http://oprofile.sourceforge.net/faq/ , user-space tools are not up to date. As I can see, the latest oprofile version is 0.9.8 and what you have is 0.9.6, so you may try upgrading this package. Just download tarball and change version on the spec.

Leo

0 Kudos

59 Views
vinayaktv
Contributor I

Hi,

I have installed the latest version of oprofile. Can't I use operf on this. When I attempted to use operf it gives me the following error asking me to use opcontrol instead. I have used operf on my laptop but I am not sure if it is supported on imx6.

Error:

hw perfevents: unable to reserve pmu
Unexpected error running operf: No such device

Please use the opcontrol command instead of operf

Please advise.

Regards,

Vinayak

0 Kudos

59 Views
Tarek
Senior Contributor I

Hi Vinayak

Try janhorbach suggestion in this post.

I did this change and opcontrol seams working!

0 Kudos