Hi William,
I'd really appreciate your help here. I'v tried this multiple times -

Created a clean RHEL4 Update 6 x86_64 machine (on VMWare) - installed the oprofile rpm and then tried
opcontrol --no-vmlinux
opcontrol --start

and no matter what I do, opreport just says this -

[root@localhost ~]# opreport
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files

Regards,
Kashyap

On Tue, Aug 10, 2010 at 11:49 PM, William Cohen <wcohen@redhat.com> wrote:
On 08/10/2010 12:53 PM, C K Kashyap wrote:
> Hi,
>
> Can you please tell me if I'm doing something wrong -
>
>
> [root@localhost ~]# opcontrol --start
> Using default event: CPU_CLK_UNHALTED:100000:0:1:1
> Using 2.6+ OProfile kernel interface.
> Using log file /var/lib/oprofile/samples/oprofiled.log
> Daemon started.
> Profiler running.
> [root@localhost ~]# opcontrol --event=CPU_CLK_UNHALTED:400000 --event=DATA_MEM_REFS:10000
> [root@localhost ~]# opcontrol --no-vmlinux
> [root@localhost ~]# opcontrol --image=/bin/ls
> [root@localhost ~]# ls
> anaconda-ks.cfg  install.log  install.log.syslog  yinst
> [root@localhost ~]# opcontrol --dump
> [root@localhost ~]# opreport
> error: no sample files found: profile specification too strict ?
> [root@localhost ~]# ls -l /var/lib/oprofile/
> total 20
> -rw-r--r--  1 root root  724 Aug 10 09:50 abi
> -rw-r--r--  1 root root    2 Aug 10 09:52 complete_dump
> drwxrwxrwx  2 root root 4096 Aug 10 09:46 jitdump
> -rw-r--r--  1 root root    5 Aug 10 09:50 lock
> prw-rw-rw-  1 root root    0 Aug 10 09:52 opd_pipe
> drwxr-xr-x  3 root root 4096 Aug 10 09:46 samples
> [root@localhost ~]#
>
>

Hi Kashyap,

It helps to start oprofile running with:

opcontrol --start


There is a cheat sheet at:

http://oprofile.sourceforge.net/docs/

Given the short duration of  /bin/ls, you might not get samples. You might try --image on something more substantial. You might also want to use --separate=library to associate library samples with the executable. Many programs in linux are making heavy use of shared libraries.


-Will

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list



--
Regards,
Kashyap