Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-25 Thread Jiri Olsa
On Sat, Nov 23, 2013 at 03:12:19AM -0500, Steven Rostedt wrote: SNIP > > > + if (!handle) { > > > + warning("could not load plugin '%s'\n%s\n", > > > + plugin, dlerror()); > > > + goto out_free; > > > + } > > > + > > > + alias = dlsym(handle,

Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-25 Thread Jiri Olsa
On Sat, Nov 23, 2013 at 03:12:19AM -0500, Steven Rostedt wrote: SNIP + if (!handle) { + warning(could not load plugin '%s'\n%s\n, + plugin, dlerror()); + goto out_free; + } + + alias = dlsym(handle, PEVENT_PLUGIN_ALIAS_NAME); + if (!alias)

Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-24 Thread Namhyung Kim
On Sat, 23 Nov 2013 03:12:19 -0500, Steven Rostedt wrote: > On Fri, 22 Nov 2013 23:17:06 +0900 > Namhyung Kim wrote: > >> > >> [SNIP[ >> > +static void >> > +load_plugin(struct pevent *pevent, const char *path, >> > + const char *file, void *data) >> > +{ >> > + struct plugin_list

Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-24 Thread Namhyung Kim
On Sat, 23 Nov 2013 03:12:19 -0500, Steven Rostedt wrote: On Fri, 22 Nov 2013 23:17:06 +0900 Namhyung Kim namhy...@kernel.org wrote: [SNIP[ +static void +load_plugin(struct pevent *pevent, const char *path, + const char *file, void *data) +{ + struct plugin_list

Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-23 Thread Steven Rostedt
On Fri, 22 Nov 2013 23:17:06 +0900 Namhyung Kim wrote: > > > [SNIP[ > > +static void > > +load_plugin(struct pevent *pevent, const char *path, > > + const char *file, void *data) > > +{ > > + struct plugin_list **plugin_list = data; > > + pevent_plugin_load_func func; > > + struct

Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-23 Thread Steven Rostedt
On Fri, 22 Nov 2013 23:17:06 +0900 Namhyung Kim namhy...@kernel.org wrote: [SNIP[ +static void +load_plugin(struct pevent *pevent, const char *path, + const char *file, void *data) +{ + struct plugin_list **plugin_list = data; + pevent_plugin_load_func func; + struct

Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-22 Thread Namhyung Kim
Hi Jiri, 2013-11-21 (목), 12:00 +0100, Jiri Olsa: > Backporting plugin support for traceevent lib. > > Backported from Steven Rostedt's trace-cmd repo (HEAD 0f2c2fb): > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git > > It's now possible to use following interface to load

Re: [PATCH 01/22] tools lib traceevent: Add plugin support

2013-11-22 Thread Namhyung Kim
Hi Jiri, 2013-11-21 (목), 12:00 +0100, Jiri Olsa: Backporting plugin support for traceevent lib. Backported from Steven Rostedt's trace-cmd repo (HEAD 0f2c2fb): git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git It's now possible to use following interface to load plugins