lkml.org 
[lkml]   [2009]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 5/9] perf trace: Add Perl scripting support
From
Date
On Wed, 2009-10-07 at 10:13 -0400, Christoph Hellwig wrote:
> On Tue, Oct 06, 2009 at 11:09:25PM -0500, Tom Zanussi wrote:
> > > I think we also want to have a 'perf -s *' kind of thing to get a list
> > > of all available language modules.
> > >
> >
> > I knew somebody would point that out (and suggest a better way ;-) That
> > all makes sense - I'll make these changes in the next version.
>
> I'm a bit worried about linking two million scripting language into the
> main perf binary. Can't we just have seaprate perlperf / pythonperf,
> rubyperf, awkperf binaries that only contain the scripting support?
>

Yeah, that's a good point. Maybe support for each language should be
implemented as shared library 'plugins', where the right one gets loaded
dynamically using dlopen/dlsym based on the type of script invoked or
command-line option used. I'll try something like that for the next
version.

Tom



\
 
 \ /
  Last update: 2009-10-08 06:07    [W:0.068 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site