lkml.org 
[lkml]   [2015]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 10/38] perf tools: Pass session arg to perf_event__preprocess_sample()
On Tue, Mar 03, 2015 at 10:59:30AM -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, Mar 03, 2015 at 12:07:22PM +0900, Namhyung Kim escreveu:
> > The perf_event__preprocess_sample() translates a given ip into a
> > matching symbol. To do that, it first finds a corresponding thread
> > and map in the current thread tree. But for indexed data files, it
> > needs to find a thread (and map) with slightly different APIs using
> > timestamp. So it needs a way to know whether this session deals with
> > an indexed data file or not.
>
> I need to look into this, but in general, I'm trying to _remove_
> accesses to perf_session :-)

The reason is that it needs to know whether the current session has
index so that it's accessing the samples in sequence or in random
order. If we can save that info at some other place (like a global
variable?) it doesn't need to pass session.

Thanks,
Namhyung


\
 
 \ /
  Last update: 2015-03-03 15:41    [W:0.072 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site