Jiri Olsa 85e37de3a9 perf python: Put perf.event objects into dictionary
Make perf.event object parts of the perf module dictionary so we can
address them by name.

The following objects/names are added:

  mmap_event
  lost_event
  comm_event
  task_event
  throttle_event
  task_event
  read_event
  sample_event
  switch_event

We can now use it in python script like:
  ...
  event = evlist.read_on_cpu(cpu)
  ...
  if not isinstance(event, perf.sample_event):

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1468148882-10362-6-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-07-12 16:17:14 -03:00
..
2016-07-12 15:19:47 -03:00
2016-07-12 16:12:38 -03:00
2016-07-01 11:34:57 -03:00
2015-05-27 12:21:43 -03:00
2016-06-28 10:54:56 -03:00
2016-07-12 15:19:47 -03:00
2016-07-12 15:19:47 -03:00
2016-07-12 15:19:47 -03:00
2016-07-12 16:13:58 -03:00
2016-07-12 16:13:58 -03:00
2015-08-21 11:34:10 -03:00
2016-06-15 10:35:27 -03:00
2016-06-15 10:35:27 -03:00
2015-08-06 16:49:01 -03:00
2016-07-12 15:19:47 -03:00
2016-07-12 15:19:47 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2016-07-12 15:19:55 -03:00
2016-07-12 15:19:55 -03:00
2016-07-12 00:00:39 -03:00
2016-07-12 15:19:55 -03:00
2016-07-12 15:19:55 -03:00
2016-07-12 16:12:38 -03:00
2016-07-04 19:38:59 -03:00
2016-03-31 10:52:24 -03:00
2016-04-28 09:58:58 -03:00
2016-03-23 12:32:31 -03:00
2016-07-04 19:39:01 -03:00
2014-05-01 21:22:39 +02:00
2015-05-29 12:43:44 -03:00