From: Maynard J. <may...@us...> - 2012-03-19 19:21:43
|
On 03/19/2012 09:01 AM, Bail, Eloi wrote: > 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 This error occurred when trying to do the "--init" part of the above command.. > > Kernel support not available, missing opcontrol --init as root ? This error occurred because you're trying to run the --vmlinux option without having successfully executed --init first (granted, the error message is not too clear). So just try the "--init" by itself and debug why the mount of /dev/oprofile is failing. Maybe something will show up in dmesg. -Maynard > > > > > > 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 pos...@nd... 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 > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > > _______________________________________________ > oprofile-list mailing list > opr...@li... > https://lists.sourceforge.net/lists/listinfo/oprofile-list |