mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tom Zanussi <tzanussi@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, fweisbec@gmail.com,
	rostedt@goodmis.org, anton@samba.org, hch@infradead.org,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Arjan van de Ven <arjan@infradead.org>
Subject: Re: [PATCH 0/4] Fixes for perf/scripting
Date: Mon, 30 Nov 2009 23:30:38 -0600	[thread overview]
Message-ID: <1259645438.6053.7.camel@tropicana> (raw)
In-Reply-To: <20091130081951.GA20717@elte.hu>

On Mon, 2009-11-30 at 09:19 +0100, Ingo Molnar wrote:
> * Tom Zanussi <tzanussi@gmail.com> wrote:
> 
> > Tom Zanussi (4):
> >   perf trace/scripting: silence PERL_EMBED_* backtick errors
> >   perf trace/scripting: ignore shadowed variable warning for
> >     perf-trace-perl.c
> >   perf trace/scripting: fix Perl common_* access functions
> >   perf trace/scripting: Add Fedora libperl install note to doc
> > 
> >  tools/perf/Makefile                                |    6 ++--
> >  tools/perf/scripts/perl/Perf-Trace-Util/Context.c  |   30 ++++++++++----------
> >  tools/perf/scripts/perl/Perf-Trace-Util/Context.xs |    6 ++--
> >  tools/perf/scripts/perl/Perf-Trace-Util/README     |    4 +-
> >  tools/perf/util/trace-event-perl.c                 |   10 ++++--
> >  tools/perf/util/trace-event-perl.h                 |    6 ++--
> >  6 files changed, 32 insertions(+), 30 deletions(-)
> 
> Applied, thanks Tom!
> 
> I tried a few simple things and it worked fine, so i put it into the 
> permanent perf/scripting branch. I think this looks like a nice feature: 
> a perfect fit to do rapid prototyping of tracing applets. (or just to 
> use it for ad-hoc, programming based analysis of tracing data)
> 

Great, thanks!

I agree that usability is key and could use some more work - I'll submit
some more patches addressing that soon...

Thanks,

Tom

> There's a few odd ends to 'perf trace' usability we need to fix before 
> this can be merged into perf/core. For example if libperl isnt 
> installed, 'perf trace' emits this warning:
> 
>  Perl scripting not supported.  Install libperl and rebuild perf to 
>  enable it.  e.g. apt-get install libperl-dev (ubuntu), yum install 
>  perl-ExtUtils-Embed (Fedora), etc.
> 
> We should only emit that if -g or -s is used - it's a nuisance in the 
> other cases. Most distributions dont have libperl installed by default.
> 
> Also, a few simple examples and some heads-up about the power of 
> scripting should be put into Documentation/perf-trace.txt as well. 
> Something minimal - and it can include a Perl example as well. Some 
> practical version of perl/Perf-Trace-Util/README or so. We want curious 
> people who know Perl and try 'perf trace --help' to have some minimal 
> entry vector into this space.
> 
> A third question is - right now we install the sample Perl scripts on 
> 'make install', but there's no mechanism to see the scripts that are 
> available. 'perf trace -l/--list' might be useful?
> 
> I.e. the whole pathway of random perf users coming in and starting to 
> use the script engine 'spontaneusly' and 'intuitively' is not yet 
> thought through - the capabilities are hidden too much.
> 
> Thanks,
> 
> 	Ingo


      reply	other threads:[~2009-12-01  5:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  7:18 Tom Zanussi
2009-11-30  7:18 ` [PATCH 1/4] perf trace/scripting: silence PERL_EMBED_* backtick errors Tom Zanussi
2009-11-30  8:23   ` [tip:perf/scripting] perf trace/scripting: Silence " tip-bot for Tom Zanussi
2009-11-30  7:18 ` [PATCH 2/4] perf trace/scripting: ignore shadowed variable warning for perf-trace-perl.c Tom Zanussi
2009-11-30  8:23   ` [tip:perf/scripting] perf trace/scripting: Ignore " tip-bot for Tom Zanussi
2009-11-30  7:18 ` [PATCH 3/4] perf trace/scripting: fix Perl common_* access functions Tom Zanussi
2009-11-30  8:24   ` [tip:perf/scripting] perf trace/scripting: Fix " tip-bot for Tom Zanussi
2009-11-30  7:18 ` [PATCH 4/4] perf trace/scripting: Add Fedora libperl install note to doc Tom Zanussi
2009-11-30  8:24   ` [tip:perf/scripting] " tip-bot for Tom Zanussi
2009-11-30  8:19 ` [PATCH 0/4] Fixes for perf/scripting Ingo Molnar
2009-12-01  5:30   ` Tom Zanussi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1259645438.6053.7.camel@tropicana \
    --to=tzanussi@gmail.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@redhat.com \
    --cc=anton@samba.org \
    --cc=arjan@infradead.org \
    --cc=fweisbec@gmail.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®