Hi all,

 

 

I want to use Oprofile on an embedded environment within a ST40 chipset.

 

ST already ported Oprofile on their platform (see link : http://www.stlinux.com/devel/traceprofile/profiling)

 

I successfully recompiled the kernel (version 2.6.XX) enabling Oprofiling and Kernel debugging information.

 

 

I used Oprofile binaries compiled on the correct target & kernel.

 

 

Whereas I am trying to execute opcontrol, I have got the following errors :

 

 

# ./opcontrol --init --vmlinux=vmlinux_custom00200832

mount: mounting nodev on /dev/oprofile failed: Device or resource busy

Kernel support not available, missing opcontrol --init as root ?

 

 

Device oprofile seems to be correctly mounted :

 

# ls -lrt /dev/oprofile/

drwxr-xr-x    1 root     root            0 Dec 31 17:07 stats

-rw-r--r--    1 root     root            0 Dec 31 17:07 pointer_size

-rw-r--r--    1 root     root            0 Dec 31 17:07 enable

-rw-rw-rw-    1 root     root            0 Dec 31 17:07 dump

-rw-r--r--    1 root     root            0 Dec 31 17:07 cpu_type

-rw-r--r--    1 root     root            0 Dec 31 17:07 cpu_buffer_size

-rw-r--r--    1 root     root            0 Dec 31 17:07 buffer_watershed

-rw-r--r--    1 root     root            0 Dec 31 17:07 buffer_size

-rw-r--r--    1 root     root            0 Dec 31 17:07 buffer

-rw-r--r--    1 root     root            0 Dec 31 17:07 backtrace_depth

#

 

 

Could you explain me why this error regarding oprofile device occured ?

 

 

Regarding the second error (Kernel support not available, missing opcontrol --init as root ?)

 

Could you help me to figure out the issue :

 

-          Did I add correct option in the kernel ?

-          Do I have permission issue (notice that I am root on my machine) ?

-          Is opcontrol not correctly compiled ?

 

 

Thanks for your advice,

 

 

Eloi

 



This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.

An NDS Group Limited company. www.nds.com