path: root/tools/perf/scripts
diff options
authorPierre Tardy <>2010-05-31 23:12:09 +0200
committerArnaldo Carvalho de Melo <>2010-06-01 06:12:35 -0300
commitc02514850d67be8db6b2b6658cbc23ac1fbf8bc7 (patch)
tree309a7df9e2cb7ae681479ae36fd39e710721c472 /tools/perf/scripts
parent75d9ef1707cf3db264a549142a1f54a5380d63dc (diff)
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 <> Acked-by: Tom Zanussi <> Cc: Ingo Molnar <>, Cc: Frederic Weisbecker <> Cc: Tom Zanussi <> LKML-Reference: <> Signed-off-by: Pierre Tardy <> Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/scripts')
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/scripts/python/ b/tools/perf/scripts/python/
index 964d934395ff..d9f7893e315c 100644
--- a/tools/perf/scripts/python/
+++ b/tools/perf/scripts/python/
@@ -51,8 +51,7 @@ def kmem__kmalloc(event_name, context, common_cpu,
flag_str("kmem__kmalloc", "gfp_flags", gfp_flags)),
-def trace_unhandled(event_name, context, common_cpu, common_secs, common_nsecs,
- common_pid, common_comm):
+def trace_unhandled(event_name, context, event_fields_dict):
unhandled[event_name] += 1
except TypeError: