Re: [PATCH 02/15] perf util: Use evsel->name to get tracepoint_paths

2013-05-15 Thread Namhyung Kim
Hi Jiri, On Wed, 15 May 2013 16:59:10 +0200, Jiri Olsa wrote: > On Tue, May 14, 2013 at 07:13:46PM +0900, Namhyung Kim wrote: >> diff --git a/tools/perf/util/trace-event-info.c >> b/tools/perf/util/trace-event-info.c >> index ab18bf12d54a..bfcaeac7ef9d 100644 >> --- a/tools/perf/util/trace-event-

Re: [PATCH 02/15] perf util: Use evsel->name to get tracepoint_paths

2013-05-15 Thread Jiri Olsa
On Tue, May 14, 2013 at 07:13:46PM +0900, Namhyung Kim wrote: > From: Namhyung Kim SNIP > }; > > extern struct tracepoint_path *tracepoint_id_to_path(u64 config); > +extern struct tracepoint_path *tracepoint_name_to_path(const char *name); > extern bool have_tracepoints(struct list_head *ev

[PATCH 02/15] perf util: Use evsel->name to get tracepoint_paths

2013-05-14 Thread Namhyung Kim
From: Namhyung Kim Most tracepoint events already have their system and event name in ->name field so that searching whole event tracing directory for each evsel to match given id is suboptimal. Factor out this routine into tracepoint_name_to_path(). Cc: Jiri Olsa Cc: Frederic Weisbecker Sign