mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Feng Tang <feng.tang@intel.com>
To: Arnaldo Carvalho de Melo <acme@redhat.com>,
	David Ahern <dsahern@gmail.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org
Cc: Robert Richter <robert.richter@amd.com>,
	Andi Kleen <andi@firstfloor.org>,
	Stephane Eranian <eranian@google.com>,
	Feng Tang <feng.tang@intel.com>
Subject: [PATCH v3 0/3] perf script: Add general event support to event handler of python script
Date: Mon, 18 Jun 2012 14:10:36 +0800	[thread overview]
Message-ID: <1339999839-14007-1-git-send-email-feng.tang@intel.com> (raw)

Current python script can only handle trace point type of events, this
patch serie try to follow Robert Richter's idea in commit 37a058ea0
	"perf script: Add generic perl handler to process events"
to similarly add a python handler for general events other than
tracepoints.

Please help to revew, thanks.

- Feng


Change logs:
	Since v2:
	* Correct some __unused usage
	* Add a new parameter: event name to event handler 

	Since v1:
	* Use dictory as the paramter passwd from c to python 
	* Use "process_event" name to comply with perl

----------------
Feng Tang (3):
  perf script: Add general python handler to process non-tracepoint
    events
  perf script: Replace "struct thread" with "struct addr_location" as a
    parameter for "process_event()"
  perf script/python: Pass event/thread/dso name and symbol info to
    event handler in python

 tools/perf/builtin-script.c                        |    5 +-
 .../perf/util/scripting-engines/trace-event-perl.c |   13 ++--
 .../util/scripting-engines/trace-event-python.c    |   81 +++++++++++++++++++-
 tools/perf/util/trace-event-scripting.c            |    2 +-
 tools/perf/util/trace-event.h                      |    4 +-
 5 files changed, 93 insertions(+), 12 deletions(-)


             reply	other threads:[~2012-06-18  6:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18  6:10 Feng Tang [this message]
2012-06-18  6:10 ` [PATCH v3 1/3] perf script: Add general python handler to process non-tracepoint events Feng Tang
2012-06-18  6:10 ` [PATCH v3 2/3] perf script: Replace "struct thread" with "struct addr_location" as a parameter for "process_event()" Feng Tang
2012-06-18  6:10 ` [PATCH v3 3/3] perf script/python: Pass event/thread/dso name and symbol info to event handler in python Feng Tang
2012-06-27 18:58   ` Arnaldo Carvalho de Melo
2012-06-28  8:50     ` Feng Tang
2012-06-28 17:29       ` Arnaldo Carvalho de Melo
2012-06-29  1:21         ` Feng Tang

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=1339999839-14007-1-git-send-email-feng.tang@intel.com \
    --to=feng.tang@intel.com \
    --cc=acme@redhat.com \
    --cc=andi@firstfloor.org \
    --cc=dsahern@gmail.com \
    --cc=eranian@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    --cc=robert.richter@amd.com \
    /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®