perf scripts python: Give field dict to unhandled callback
authorPierre Tardy <tardyp@gmail.com>
Mon, 31 May 2010 21:12:09 +0000 (23:12 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Jun 2010 09:12:35 +0000 (06:12 -0300)
commitc02514850d67be8db6b2b6658cbc23ac1fbf8bc7
tree309a7df9e2cb7ae681479ae36fd39e710721c472
parent75d9ef1707cf3db264a549142a1f54a5380d63dc
perf scripts python: Give field dict to unhandled callback

trace_unhandled() callback does not allow to access event fields, this patch
resolves the problem.

It can also been used as a more pythonic and flexible way for script writters
to demux event types

This will for example greatly simplify pytimechart event demux.

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <1275340329-2397-1-git-send-email-tardyp@gmail.com>
Signed-off-by: Pierre Tardy <tardyp@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/check-perf-trace.py
tools/perf/util/scripting-engines/trace-event-python.c