perf script python: Correct handler check and spelling errors
authorFeng Tang <feng.tang@intel.com>
Thu, 9 Aug 2012 05:46:13 +0000 (13:46 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Aug 2012 16:26:19 +0000 (13:26 -0300)
commit87b6a3ad40ba304ec468b972e979e7e410852476
treebcd273478dd47106378b429e85a28d438d82a7e8
parent0076d546b4f9b5c15121c6959d108a83fe43fa9a
perf script python: Correct handler check and spelling errors

Correct the checking for handler returned by PyDict_GetItemString(),
also fix some spelling error and remove some data code in
event_analyzing_sample.py, as suggested by Namhyung Kim.

v2: restore back the wrongly removed trace_unhandled() func

Signed-off-by: Feng Tang <feng.tang@intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20120809134613.067104c4@feng-i7
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
tools/perf/scripts/python/event_analyzing_sample.py
tools/perf/util/scripting-engines/trace-event-python.c