lkml.org 
[lkml]   [2021]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf record: Set timestamp boundary for AUX area events
On Mon, May 03, 2021 at 06:06:38PM +0300, Adrian Hunter wrote:
> On 3/05/21 5:56 pm, Andi Kleen wrote:
> > On Mon, May 03, 2021 at 09:42:22AM +0300, Adrian Hunter wrote:
> >> AUX area data is not processed by 'perf record' and consequently the
> >> --timestamp-boundary option may result in no values for "time of first
> >> sample" and "time of last sample". However there are non-sample events
> >> that can be used instead, namely 'itrace_start' and 'aux'.
>
> "instead" -> "as well"
>
> >> 'itrace_start' is issued before tracing starts, and 'aux' is issued
> >> every time data is ready.
> >
> > Hmm, what happens when some other non PT events are in the same perf record?
>
> The sample timestamps are still processed, so the lowest sample timestamp or
> 'itrace_start' timestamp or 'aux' timestamp is the start. Similarly for the end.
>
> > And those maybe run at different times than PT (e.g. due to some PT specific
> > filter). Does this all work correctly then?
>
> The broadest range is used

Ok makes sense.

Acked-by: Andi Kleen <ak@linux.intel.com>

-Andi

\
 
 \ /
  Last update: 2021-05-03 18:13    [W:0.075 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site