Martin Martin | 10 Jul 2012 19:39

No samples

Hi,


I've compiled oprofile 0.9.7 from source and tried to run it, but get the dreaded:

error: no sample files found: profile specification too strict ?

Here's how I start it:

    sudo opcontrol --reset
    sudo opcontrol --shutdown
    sudo opcontrol --deinit
    sudo opcontorl --init
    sudo opcontrol --no-vmlinux 
    sudo opcontrol --start-daemon
    sudo opcontrol --start

Then I run my command, a CPU intensive task that takes 1 second.

Then I do:

sudo opcontrol --stop
sudo opcontrol --dump
opreport --symbols

ls -l /var/lib/oprofile/samples/
total 12
drwxr-xr-x 3 root root 4096 Jul 10 13:31 current
-rw-r--r-- 1 root root 5244 Jul 10 13:32 oprofiled.log

Note: I'm doing this on a virtual machine running Ubuntu 12.04.

What should I try next?

Thanks,
Martin
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
oprofile-list mailing list
oprofile-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list
Maynard Johnson | 10 Jul 2012 20:45
Picon
Favicon

Re: No samples

On 07/10/2012 12:39 PM, Martin Martin wrote:
> Hi,
> 
> I've compiled oprofile 0.9.7 from source and tried to run it, but get the dreaded:
> 
> error: no sample files found: profile specification too strict ?
> 
> Here's how I start it:
> 
>     sudo opcontrol --reset
>     sudo opcontrol --shutdown
>     sudo opcontrol --deinit
>     sudo opcontorl --init
>     sudo opcontrol --no-vmlinux 
>     sudo opcontrol --start-daemon
>     sudo opcontrol --start
> 
> Then I run my command, a CPU intensive task that takes 1 second.
> 
> Then I do:
> 
> sudo opcontrol --stop
> sudo opcontrol --dump
> opreport --symbols
> 
> ls -l /var/lib/oprofile/samples/
> total 12
> drwxr-xr-x 3 root root 4096 Jul 10 13:31 current
> -rw-r--r-- 1 root root 5244 Jul 10 13:32 oprofiled.log
> 
> Note: I'm doing this on a virtual machine running Ubuntu 12.04.
Sorry, oprofile does not support event-based profiling on VM guests.  Coincidentally, I just recently
committed an update to the oprofile user manual documenting this.  See
http://oprofile.git.sourceforge.net/git/gitweb.cgi?p=oprofile/oprofile;a=commitdiff;h=6bc5781406b7b46f9eadb23fc57b3fbc1ca2fbb7.
 The upshot is that you have to force oprofile to use timer mode in order to get profile data.

The perf_events port of OProfile (via a new oprofile program called 'operf') is mostly complete and is
available to be downloaded from our SourceForge git repo.  The operf program currently does not support
profiling VM guests either, but it probably would not take much to add that support.  Contributions would
be most welcome, and I'd be happy to advise where code updates would be needed to add such support.

-Maynard
> 
> What should I try next?
> 
> Thanks,
> Martin
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> 
> 
> 
> _______________________________________________
> oprofile-list mailing list
> oprofile-list <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oprofile-list

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane