perf script python: Removing event cache as it's no longer needed
authorJiri Olsa <jolsa@kernel.org>
Sun, 26 Oct 2014 22:44:05 +0000 (23:44 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Nov 2014 20:44:06 +0000 (17:44 -0300)
commitadf5bcf39583c4db1bf30069f8957400e61ccb18
treeecebfc2cdf1d556df36dbe87662b96e56d001dd7
parentcdae2d1e936457bf72673cb77e7f5f4b9d4c451e
perf script python: Removing event cache as it's no longer needed

We don't need to maintain cache of 'struct event_format' objects.
Currently the 'struct perf_evsel' holds this reference already.

Adding events_defined bitmap to keep track of defined events, which is
much cheaper than array of pointers.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1414363445-22370-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/scripting-engines/trace-event-python.c