Oprofile not working with Linux 3.0.35_4.1.0 freescale release

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

Oprofile not working with Linux 3.0.35_4.1.0 freescale release

跳至解决方案
719 次查看
NithinkumarN
Contributor II

Hi All,

I'm using Linux 3.0.35_4.1.0 freescale package for my i.MX6q custom board project.

I'm able to build LTIB in Ubuntu 14.04 system and able to load the file system and Linux kernel image.

Now my task is to enable Oprofile and test the same.

I have followed steps given in "Chapter 44: Oprofile" of Linux reference manual to add Oprofile package.

I' m able to build and load image successfully,

But when I'm running "opcontrol --start" command I'm getting below error in platform Linux terminal.

/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

/usr/bin/opcontrol: line 1570: /op-check-perfevents: No such file or directory

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

Using default event:

/usr/bin/opcontrol: line 1628: /oprofiled: No such file or directory

Couldn't start oprofiled.

Check the log file "/var/lib/oprofile/samples/oprofiled.log" and kernel syslog

I have referred below link to resolve this issue,

oprofile on the iMX6 platform error

But still after doing changes mentioned in the link, I'm facing same problem.

Can any one help me to resolve this issue.

Thanks and Regards,

Nithin

标签 (2)
标记 (2)
1 解答
573 次查看
NithinkumarN
Contributor II

Hi,

Issue solved by soft linking this folders with folders present in /bin/ folder as below.

ln -s /bin/which/ /usr/bin/which

ln -s /bin/dirname /usr/bin/dirname

Thanks and Regards,

Nithin

在原帖中查看解决方案

1 回复
574 次查看
NithinkumarN
Contributor II

Hi,

Issue solved by soft linking this folders with folders present in /bin/ folder as below.

ln -s /bin/which/ /usr/bin/which

ln -s /bin/dirname /usr/bin/dirname

Thanks and Regards,

Nithin