[PATCH v3 0/3] perf script: Add general event support to event handler of python script

From: Feng Tang
Date: Mon Jun 18 2012 - 02:14:31 EST


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(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/