lkml.org 
[lkml]   [2012]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/3] perf script: Add general event support to event handler of python script
Date
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(-)



\
 
 \ /
  Last update: 2012-06-18 09:01    [W:0.063 / U:4.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site