Re: [PATCH] perf sched replay: fix event lookup

2012-06-27 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 27, 2012 at 01:18:17PM +0400, Dmitry Antipov escreveu: > On 06/26/2012 03:20 AM, Arnaldo Carvalho de Melo wrote: > > > >>Fair enough. The method should be a simple wrapper to libtraceevent APIs > >>like this patch. > > > >The pevent thing is per perf.data file, so I made it stop being s

Re: [PATCH] perf sched replay: fix event lookup

2012-06-27 Thread Dmitry Antipov
On 06/26/2012 03:20 AM, Arnaldo Carvalho de Melo wrote: Fair enough. The method should be a simple wrapper to libtraceevent APIs like this patch. The pevent thing is per perf.data file, so I made it stop being static and become a perf_session member, so tools processing perf.data files use pe

Re: [PATCH] perf sched replay: fix event lookup

2012-06-26 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 12, 2012 at 03:01:26PM +0900, Namhyung Kim escreveu: > On Mon, 11 Jun 2012 11:08:52 -0300, Arnaldo Carvalho de Melo wrote: > > So I think we should have a per perf.data (perf_session) method that > > knows that it shouldn't look _at all_ to /sys, but just at what came in > > the perf.da

Re: [PATCH] perf sched replay: fix event lookup

2012-06-25 Thread Arnaldo Carvalho de Melo
Em Sat, Jun 09, 2012 at 01:05:58PM +0400, Dmitry Antipov escreveu: > Use new function trace_find_event_by_name to lookup events before > looking through /sys files. This helps 'perf sched replay' to map > event names to IDs correctly when processing perf.data recorded > on another machine. > > Sig

Re: [PATCH] perf sched replay: fix event lookup

2012-06-12 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 12, 2012 at 03:01:26PM +0900, Namhyung Kim escreveu: > Hi, > > On Mon, 11 Jun 2012 11:08:52 -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jun 11, 2012 at 02:46:02PM +0900, Namhyung Kim escreveu: > >> On Sat, 9 Jun 2012 13:05:58 +0400, Dmitry Antipov wrote: > >> > Use new function

Re: [PATCH] perf sched replay: fix event lookup

2012-06-11 Thread Namhyung Kim
Hi, On Mon, 11 Jun 2012 11:08:52 -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Jun 11, 2012 at 02:46:02PM +0900, Namhyung Kim escreveu: >> On Sat, 9 Jun 2012 13:05:58 +0400, Dmitry Antipov wrote: >> > Use new function trace_find_event_by_name to lookup events before >> > looking through /sys f

Re: [PATCH] perf sched replay: fix event lookup

2012-06-11 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 11, 2012 at 02:46:02PM +0900, Namhyung Kim escreveu: > On Sat, 9 Jun 2012 13:05:58 +0400, Dmitry Antipov wrote: > > Use new function trace_find_event_by_name to lookup events before > > looking through /sys files. This helps 'perf sched replay' to map > > event names to IDs correctly w

Re: [PATCH] perf sched replay: fix event lookup

2012-06-11 Thread Namhyung Kim
Hi, On Sat, 9 Jun 2012 13:05:58 +0400, Dmitry Antipov wrote: > Use new function trace_find_event_by_name to lookup events before > looking through /sys files. This helps 'perf sched replay' to map > event names to IDs correctly when processing perf.data recorded > on another machine. > Basically

[PATCH] perf sched replay: fix event lookup

2012-06-09 Thread Dmitry Antipov
Use new function trace_find_event_by_name to lookup events before looking through /sys files. This helps 'perf sched replay' to map event names to IDs correctly when processing perf.data recorded on another machine. Signed-off-by: Dmitry Antipov --- tools/perf/util/evlist.c| 18 +++