Opcontrol not working on i.Mx6 sololite

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Opcontrol not working on i.Mx6 sololite

1,279 次查看
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 项奖励
5 回复数

791 次查看
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 项奖励

790 次查看
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 项奖励

790 次查看
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 项奖励

791 次查看
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 项奖励

790 次查看
Tarek
Senior Contributor I

Hi Vinayak

Try janhorbach suggestion in this post.

I did this change and opcontrol seams working!

0 项奖励