[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-list
Subject:    Re: [PATCH] Have oprofile pp tools print messages about lost samples
From:       Maynard Johnson <maynardj () us ! ibm ! com>
Date:       2013-04-19 12:43:13
Message-ID: 51713BE1.60900 () us ! ibm ! com
[Download RAW message or body]

On 04/19/2013 07:35 AM, Mauricio Faria de Oliveira wrote:
> Hi Maynard,
> 
> Just tested this one.
> It worked fine on the ~20 times I tested
> (on a scenario known to lose more samples than the 0.01% threshold).
> 
> Both 'opreport' and 'opreport -l' printed a message about lost samples:
> WARNING: Lost samples detected! See ./samples/operf.log for details.
> 
> (the path for operf.log is correct -- I used 'opreport --session-dir .')
> 
> Thanks!

Thanks for testing it, Mauricio.  Patch committed.

-Maynard
> 
> --
> Mauricio Faria de Oliveira
> IBM Linux Technology Center
> 
> 
> 
> On 04/18/2013 07:59 PM, Maynard Johnson wrote:
>> Have oprofile pp tools print messages about lost samples
>>
>> When operf completes running, it collects statistics about
>> lost samples, records them in the operf.log, and prints
>> a warning message if the number of lost samples exceeds
>> a pre-defined percentage (.01%) of the total number of
>> samples.  However, when opreport or any of the other oprofile
>> post-processing tools are run, the statistics are not
>> readily available (only in the operf.log), so there is no
>> warning about lost samples. This patch persists those
>> statistics to files in the <session-dir>/samples/current/stats
>> dir, allowing the pp tools to access them later.  These
>> stats files are also copied by oparchive, so even archived
>> profile data will have the statistics available.
>>
>> Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
[snip]


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic