|
From: Mano_ <r.m...@sa...> - 2009-07-23 09:28:30
|
Hi Manoj,
Please do the following steps....
mkdir /dev/oprofile
mkdir /root/.oprofile
mkdir /var/lib/oprofile
In case your filesystem is a Read only filesystem... then during compile
time before you create your rootfilesystem image, create /dev/oprofile,
/root/.oprofile and /var/lib/oprofile as a soft link (ln -s) to some
directories in a read and write filesystem...
Say for an example... in your environment /dev/, /root/ and /var/lib all
belongs to a read only environment and let us say in your environment /tmp
is mounted on a read and write filesystem...
then In your host system (i.e.,) the build system...
cd <path where your rootfilesytem files are stored before
made to a rootfs>
ln -s /tmp/oprofile_dev ./dev/oprofile
ln -s /tmp/oprofile_samples ./var/lib/oprofile
ln -s /tmp/.oprofile ./root/.oprofile
Now build your images again... put it in to your target....
step 1) create /tmp/oprofile_dev /tmp/oprofile_samples
/tmp/.oprofile
2) insmod <path to your oprofile.ko>
3) mount -t oprofilefs nodev /dev/oprofile
4) now do a ls /dev/oprofile/
This should show some files such as cpu_type,
buffer, buffer_size etc...
5) now do oprofile --init
6) Now you can start profiling by using
oprofile --start --no-vmlinux
--> I suppose you don't have vmlinux
image in your target, that is why I have given --no-vmlinux if you have then
give the path using --vmlinux option....
with thanks,
V.Manoharan
manoj reddy wrote:
>
> Hi Sir
> Iam working on cross compiling oprofile to arm target device.
> Iam able to compile without ant issues with configure options
> ./configure --host=$(TGT_CPU) --prefix=$(CUR_DIR)/lib/oprofile
> --with-kernel-support
> Iam using 2.6 kernel changes profiling flags to y on kernel.config.
> After comipiling i copied binaries to target device .
> When run
> opcontrol --no-vmlinux
> Iam getting this
> mount: mounting nodev on /dev/oprofile failed: Device or resource busy
> Kernel support not available, missing opcontrol --init as root ?
>
> Kindly help wat else i have to do for oprofile to run without any issues
>
> Thanks in advance
> Manoj
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> oprofile-list mailing list
> opr...@li...
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
>
>
--
View this message in context: http://www.nabble.com/Reg%3AOprofile-%3AKernel-support-not-available%2C-missing-opcontrol---init--as-root---tp24621340p24622271.html
Sent from the oprofile-list mailing list archive at Nabble.com.
|